修复订单数据
This commit is contained in:
parent
466a803253
commit
3a8b106f90
src/core/models
|
@ -195,10 +195,18 @@ export default {
|
|||
orderType: data.types,
|
||||
state: data.status,
|
||||
retainageMoney: data.moneyb,
|
||||
images: prototype.$utils.isType(data.img, "array") ? data.img : [],
|
||||
worker: {},
|
||||
workerList: [],
|
||||
};
|
||||
if (options.listType == 't1') {
|
||||
order.images = [];
|
||||
data.goods.forEach(item => {
|
||||
order.images.push(item.thumbnail);
|
||||
});
|
||||
}
|
||||
if (options.listType == 't2') {
|
||||
order.images = prototype.$utils.isType(data.img, "array") ? data.img : [];
|
||||
}
|
||||
// 地址
|
||||
order.address = {
|
||||
id: data.address.id,
|
||||
|
|
Loading…
Reference in New Issue