|
|
@@ -309,6 +309,19 @@ export default {
|
|
|
}
|
|
|
const { data } = await getPurchaseDetailApi(orderSn);
|
|
|
this.detailInfo = data;
|
|
|
+ if (this.detailInfo.itemInfo && !this.$util.isEmpty(this.detailInfo.itemInfo)){
|
|
|
+ const itemInfo = this.detailInfo.itemInfo.map(ele => {
|
|
|
+ return {
|
|
|
+ classId: 0,
|
|
|
+ productId: ele.productId,
|
|
|
+ bigNum: ele.itemNum,
|
|
|
+ smallNum: 0,
|
|
|
+ itemId:ele.itemId,
|
|
|
+ itemPrice: ele.cost
|
|
|
+ }
|
|
|
+ })
|
|
|
+ uni.setStorageSync('flowersItemInfo', itemInfo)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|