shish 3 лет назад
Родитель
Сommit
38be91b0a4
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      ghsApp/src/pagesPurchase/info.vue

+ 13 - 0
ghsApp/src/pagesPurchase/info.vue

@@ -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)
+			}
 		}
 	}
 };