Commit 2e32d9a8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 添加初始值

parent a6993ecf
......@@ -2,9 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-10-19 16:02:53
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-09 18:30:30
* @LastEditTime: 2021-08-10 17:24:28
* @Description:
*/
import { normalizeFiledata } from '@/utils';
// 初始化待评价列表
export const normalizeUnevaluatedList = (arr: {[key: string]: any}[]) => {
......@@ -23,12 +24,13 @@ export const normalizeUnevaluatedList = (arr: {[key: string]: any}[]) => {
unit: item.unit,
price: item.price,
purchaseCount: item.quantity, // 采购数量
totalPrice: item.amount,
totalPrice: item.amount,
orderProductId: item.orderProductId,
},
star: undefined, // 评分星星
comment: undefined, // 评价
picture: [],
smile: undefined, // 笑脸
star: item.star || undefined, // 评分星星
comment: item.star || undefined, // 评价
picture: item.pics ? item.pics.map((item) => normalizeFiledata(item)) : [],
smile: item.star || undefined, // 笑脸
commentStatus: item.commentStatus,
};
ret.push(atom);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment