|
|
|
@ -21,11 +21,11 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="flex justify-between margin-top-sm"> |
|
|
|
<lf-price :price="orderDetails.goods.specs[0].selling_price" /> |
|
|
|
<lf-price :price="orderDetails.goods.specs[choose_tag].selling_price" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="text-red text-price lf-font-42 lf-font-bold" style="margin-top: 12rpx;"> |
|
|
|
{{Number(orderDetails.goods.specs[0].selling_price || 0)}} |
|
|
|
{{Number(orderDetails.goods.specs[choose_tag].selling_price || 0)}} |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -61,9 +61,9 @@ |
|
|
|
<view class="flex align-center"> |
|
|
|
<text class="lf-font-28 text-gray">应付款:</text> |
|
|
|
|
|
|
|
<lf-price :price="total(num, orderDetails.goods.specs[0].selling_price)" /> |
|
|
|
<lf-price :price="total(num, orderDetails.goods.specs[choose_tag].selling_price)" /> |
|
|
|
<!-- <view class="text-red text-price lf-font-42 lf-font-bold"> |
|
|
|
{{ total(num, orderDetails.goods.specs[0].selling_price) }} |
|
|
|
{{ total(num, orderDetails.goods.specs[choose_tag].selling_price) }} |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -102,7 +102,8 @@ |
|
|
|
ifPay: true, |
|
|
|
limit: 1, |
|
|
|
pt: 1, |
|
|
|
share_id: 1 |
|
|
|
share_id: 1, |
|
|
|
choose_tag: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -130,6 +131,8 @@ |
|
|
|
this.order_id = e.order_id; |
|
|
|
this.goods_specs_id = e.goods_specs_id |
|
|
|
this.share_id = e.share_id |
|
|
|
this.choose_tag = e.choose_tag |
|
|
|
console.log('xuanze',this.choose_tag) |
|
|
|
if(this.goods_id && this.goods_specs_id) { |
|
|
|
this.getConfirmOrder() |
|
|
|
} |
|
|
|
@ -151,7 +154,7 @@ |
|
|
|
getConfirmOrder() { |
|
|
|
this.$http(this.API.API_COFIRMORDER_DETAILS, {goods_id: this.goods_id,goods_specs_id: this.goods_specs_id}).then(res => { |
|
|
|
this.orderDetails = res.data |
|
|
|
this.limit = res.data.goods.specs[0].limit |
|
|
|
this.limit = res.data.goods.specs[this.choose_tag].limit |
|
|
|
// this.limit = 10 |
|
|
|
this.skeletonLoading = false |
|
|
|
}) |
|
|
|
@ -186,7 +189,7 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
submit(){ |
|
|
|
if(this.total(this.num,this.orderDetails.goods.specs[0].selling_price) == 0) { |
|
|
|
if(this.total(this.num,this.orderDetails.goods.specs[this.choose_tag].selling_price) == 0) { |
|
|
|
this.num = 1 |
|
|
|
return this.$msg('商品数量格式不对!'); |
|
|
|
} |
|
|
|
|