Fix:3987 【商城小程序】礼包订单分享链接错误
This commit is contained in:
@@ -165,7 +165,7 @@
|
||||
v-if="order.merName">联系商家
|
||||
</view>
|
||||
<view class="v12-align-center">
|
||||
<button v-if="Number(order._status._type) !== 0 && Number(order._status._type) !== 9 && getGiftTips(order.giftCardInfo) && order.giftCardInfo.giftCardStatus !== 2 && order.giftCardInfo.giftNum !== order.giftCardInfo.receiveNum" open-type="share" @click="shareGift(item)" class="gift-btn service v12-primary-text v12-primary-border" >送给朋友</button>
|
||||
<button v-if="Number(order._status._type) !== 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>
|
||||
<!-- 查看详情 -->
|
||||
<view class="bnt service v12-primary-text v12-primary-border" @click="goOrderDetails(order)">查看详情</view>
|
||||
</view>
|
||||
@@ -326,11 +326,13 @@ export default {
|
||||
return {
|
||||
title: this.giftItem.message || '礼笺轻启,礼藏心意',
|
||||
path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`,
|
||||
imageUrl: this.giftItem.templateInfo.image
|
||||
imageUrl: this.giftItem.cartInfo[0].productInfo.image
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
shareGift(item) {
|
||||
console.log(item);
|
||||
|
||||
this.giftItem = item
|
||||
},
|
||||
getGiftTips(giftCardInfo) {
|
||||
|
||||
Reference in New Issue
Block a user