修复订单数据

This commit is contained in:
TOP糯米 2023-03-26 22:11:01 +08:00
parent 466a803253
commit 3a8b106f90
1 changed files with 9 additions and 1 deletions
src/core/models

View File

@ -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,