Fix:4066 【商城小程序】提交订单付款后,页面内容短暂闪现显示“undefined”文字
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="gift-page">
|
||||
<view class="top-card" v-if="!isPayOk">
|
||||
<view class="gift-page" v-if="goodsInfo.productInfo.storeName">
|
||||
<view class="top-card" v-if="!isPayOk ">
|
||||
<view class="v12-justify-between v12-pa-2">
|
||||
<view>
|
||||
<view></view>
|
||||
@@ -79,7 +79,7 @@
|
||||
</view>
|
||||
</template>
|
||||
</u-number-box>
|
||||
<view v-else> x{{ goodsInfo['cartNum'] }} </view>
|
||||
<view v-else> x{{ goodsInfo['cartNum'] }} </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -226,6 +226,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||
loading: true,
|
||||
isBlind: false,
|
||||
canTransfer: false,
|
||||
message: '',
|
||||
@@ -396,6 +397,7 @@ export default {
|
||||
const params = {
|
||||
cartId: this.cartId,
|
||||
}
|
||||
this.loading = true
|
||||
getGiftCardSendOrderConfirm(params).then(res => {
|
||||
this.coverList = res.data.giftCardTemplates.map(e => e.id).includes(res.data.specialGiftCardTemplate.id) ? [...res.data.giftCardTemplates] : [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate]
|
||||
this.giftNotice = res.data.giftCardGiftNotice
|
||||
@@ -409,6 +411,8 @@ export default {
|
||||
// this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || ''
|
||||
// }
|
||||
this.computedPrice(this.goodsInfo.cartNum)
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user