Fix:收礼相关逻辑补充

This commit is contained in:
modendeveloper
2025-02-27 12:39:36 +08:00
parent e56dca5b92
commit e257419351
3 changed files with 21 additions and 11 deletions
+8 -3
View File
@@ -1,12 +1,12 @@
<template>
<view>
<GiftCard v-if="!giftCard.expireTime" :card="giftCard" :addr="giftChooseAddress" @receive="getGiftCard($event)" />
<GiftCard v-if="!giftCard.isExpire" :card="giftCard" :addr="giftChooseAddress" @receive="getGiftCard($event)" />
<view v-else>
<view class="no-img-wrap">
<view class="wrap-box">
<view class="wrap-box" >
<image :src="webUrl + '/icon/no-gift.png'" mode="widthFix"></image>
<view class="v12-font-28 v12-dark1-text v12-mt-8">礼包超过24小时未领取,订单已取消</view>
<view class="v12-font-28 v12-primary-text v12-primary-border go-btn">去商城看看</view>
<view @click="toHome" class="v12-font-28 v12-primary-text v12-primary-border go-btn">去商城看看</view>
</view>
</view>
</view>
@@ -41,6 +41,11 @@ export default {
}
},
methods: {
toHome() {
uni.switchTab({
url: '/pages/home/index'
})
},
getGiftCard(code) {
getGiftCardDetail({
code: code