Explorar o código

修复兑换详情盲豆显示

hwb0 %!s(int64=3) %!d(string=hai) anos
pai
achega
84bb6d123e
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      pages/goods/detail.vue

+ 5 - 5
pages/goods/detail.vue

@@ -61,7 +61,7 @@
 						<view class="title">应付:</view>
 						<view class="flex coin">
 							<image src="../../static/icon/bean.png" mode=""></image>
-							<view>x {{ payInfo.value }}</view>
+							<view>x {{ payInfo.exchangePrice }}</view>
 						</view>
 					</view>
 					<view class="btn-right">
@@ -147,14 +147,14 @@
 							})
 							this.payInfo = {
 								...sku,
-								exValue: sku.value,
+								exValue: sku.exchangePrice,
 								picUrl: env.filePublic + sku.picUrl
 							}
 							this.skuList = skuProp
 						} else {
 							this.payInfo = {
 								...res.data,
-								exValue: this.info.value,
+								exValue: this.info.exchangePrice,
 								picUrl: this.picUrlArr[0]
 							}
 						}
@@ -188,7 +188,7 @@
 
 			valChange(e, item) {
 				let value = e.value
-				this.$set(item, 'value', value * item.exValue)
+				this.$set(item, 'exchangePrice', value * item.exValue)
 				if(this.payInfo.quantity < value){
 					uni.$u.toast('库存不足');
 				}
@@ -206,7 +206,7 @@
 				})
 				this.payInfo = {
 					...sku,
-					exValue: sku.value,
+					exValue: sku.exchangePrice,
 					picUrl: env.filePublic + sku.picUrl
 				}
 			},