Feat:礼品折扣计算
This commit is contained in:
@@ -99,7 +99,34 @@
|
||||
<view class="v12-font-28 v12-dark-text v12-font-bold">价格明细</view>
|
||||
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1">
|
||||
<view>商品总价:</view>
|
||||
<view>1224</view>
|
||||
<view>
|
||||
<text class="v12-dark-text v12-font-22">¥</text>
|
||||
<text class="v12-dark-text v12-font-30">{{ computedResult.totalPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1">
|
||||
<view>平台折扣:</view>
|
||||
<view>
|
||||
-
|
||||
<text class="v12-dark-text v12-font-22">¥</text>
|
||||
<text class="v12-dark-text v12-font-30">{{ computedResult.discountPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1">
|
||||
<view>优惠券:</view>
|
||||
<view>
|
||||
-
|
||||
<text class="v12-dark-text v12-font-22">¥</text>
|
||||
<text class="v12-dark-text v12-font-30">{{ computedResult.couponPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<u-divider></u-divider>
|
||||
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1">
|
||||
<view class="v12-font-bold">合计:</view>
|
||||
<view class="">
|
||||
<text class="v12-primary-text v12-font-bold v12-font-22">¥</text>
|
||||
<text class="v12-primary-text v12-font-bold v12-font-28">{{ computedResult.payPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<button v-if="isPayOk" open-type="share" class="share-btn" >
|
||||
@@ -189,7 +216,8 @@ export default {
|
||||
payPrice: 0,
|
||||
orderId: '',
|
||||
defaultIndex:0,
|
||||
discount: null
|
||||
discount: null,
|
||||
computedResult: {},
|
||||
}
|
||||
},
|
||||
onLoad(opts) {
|
||||
@@ -264,6 +292,7 @@ export default {
|
||||
}
|
||||
getGiftCardSendOrderAmount(this.orderKey, params).then(res => {
|
||||
this.payPrice = res.data.result.payPrice
|
||||
this.computedResult = res.data.result
|
||||
this.$forceUpdate()
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user