diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 39b89ad..d741d7a 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -1,6 +1,6 @@ - x{{ goodsInfo['cartNum'] }} + x{{ goodsInfo['cartNum'] }} @@ -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 }) }, /**