Commit 4c871587 by hxx

支付有礼 bug 修复

parent f9535b9b
......@@ -28,7 +28,7 @@
</div>
</template>
</template>
<div class="points-wrapper flex" v-if="!isShowIntegral">
<div class="points-wrapper flex" v-if="isShowIntegral">
<image class="image" src="http://cdn.mayi888.com/public/png/4eef96f4-a6be-4d13-9b5e-60577d289e08.png"></image>
<div class="flex center">
<div class="points-content">+ {{ giftsInfo.integral }}积分</div>
......@@ -74,9 +74,14 @@
}
},
watch: {
orderDetail(val) {
this._orderDetail = val;
this.getPayWithCourtesyInfoForShop();
orderDetail: {
handler(val) {
if (val && Object.keys(val).length > 0) {
this._orderDetail = val;
this.getPayWithCourtesyInfoForShop();
}
},
immediate: true
}
},
computed: {
......@@ -125,7 +130,8 @@
if (this.giftsInfo.integral && this.giftsInfo.integral > 0) {
this.isShowIntegral = true;
}
if (this.giftsInfo.getPayWithCourtesyInfoForShopRespDTO) {
const info = this.giftsInfo.getPayWithCourtesyInfoForShopRespDTO;
if (info && (info.payWithCourtesyIntegralRedemptionPageRespDTO || info.detailCouponInfoResponseDTO)) {
this.isShowGifts = true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment