Fix:收礼相关逻辑补充
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user