Fix:订单列表分享错误

This commit is contained in:
LinCyJang
2025-07-09 01:00:50 +08:00
parent 8ded90e60d
commit 933bd0d64e
3 changed files with 12 additions and 10 deletions
+5 -3
View File
@@ -158,14 +158,14 @@
</view>
<view class="bottom" v-else>
<view class="v12-font-24 v12-grey tips-text" >
{{ Number(order.status) === 0 ? '待支付' : Number(order.status) === 9 ? '已取消' : getGiftTips(order.giftCardInfo) }}
{{ Number(order.status) === 0 ? '待支付' : getGiftTips(order.giftCardInfo) }}
</view>
<view class="flex jc-between ai-center">
<view class="bnt btn-service flex jc-center ai-center v12-font-24" @click="goRoom(order)"
v-if="order.merName">联系商家
</view>
<view class="v12-align-center">
<button v-if="Number(order.status) !== 0 && getGiftTips(order.giftCardInfo) && order.giftCardInfo.giftCardStatus !== 2 && order.giftCardInfo.giftNum !== order.giftCardInfo.receiveNum" open-type="share" @click="shareGift(order)" class="gift-btn service v12-primary-text v12-primary-border" >送给朋友</button>
<button v-if="Number(order.status) !== 0 && order.giftCardInfo.giftCardStatus !== 9 && getGiftTips(order.giftCardInfo) && order.giftCardInfo.giftCardStatus !== 2 && order.giftCardInfo.giftNum !== order.giftCardInfo.receiveNum" open-type="share" @click="shareGift(order)" class="gift-btn service v12-primary-text v12-primary-border" >送给朋友</button>
<button v-if="Number(order.status) === 0 " @click="subscribePay(order)" class="gift-btn service v12-primary-text v12-primary-border" >立即支付</button>
<!-- 查看详情 -->
<view class="bnt service v12-primary-text v12-primary-border" @click="goOrderDetails(order)">查看详情</view>
@@ -326,7 +326,7 @@ export default {
})
return {
title: this.giftItem.message || '礼笺轻启,礼藏心意',
path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`,
path: `/pkg_user/views/gift/receive?code=${this.giftItem.giftCardInfo.code}`,
imageUrl: this.giftItem.cartInfo[0].productInfo.image
}
},
@@ -352,6 +352,8 @@ export default {
return giftCardInfo.giftNum === giftCardInfo.receiveNum ? '礼品已全部被好友领取,不支持取消哦!' : '礼品已领取' + giftCardInfo.receiveNum + '/' + giftCardInfo.giftNum + '份,不支持取消哦!'
} else if (giftCardInfo.giftCardStatus === 2) {
return '该礼包已退款'
} else {
return '已取消'
}
},
handleBody() {