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