Fix:订单列表分享错误
This commit is contained in:
@@ -158,14 +158,14 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bottom" v-else>
|
<view class="bottom" v-else>
|
||||||
<view class="v12-font-24 v12-grey tips-text" >
|
<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>
|
||||||
<view class="flex jc-between ai-center">
|
<view class="flex jc-between ai-center">
|
||||||
<view class="bnt btn-service flex jc-center ai-center v12-font-24" @click="goRoom(order)"
|
<view class="bnt btn-service flex jc-center ai-center v12-font-24" @click="goRoom(order)"
|
||||||
v-if="order.merName">联系商家
|
v-if="order.merName">联系商家
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-align-center">
|
<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>
|
<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>
|
<view class="bnt service v12-primary-text v12-primary-border" @click="goOrderDetails(order)">查看详情</view>
|
||||||
@@ -326,7 +326,7 @@ export default {
|
|||||||
})
|
})
|
||||||
return {
|
return {
|
||||||
title: this.giftItem.message || '礼笺轻启,礼藏心意',
|
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
|
imageUrl: this.giftItem.cartInfo[0].productInfo.image
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -352,6 +352,8 @@ export default {
|
|||||||
return giftCardInfo.giftNum === giftCardInfo.receiveNum ? '礼品已全部被好友领取,不支持取消哦!' : '礼品已领取' + giftCardInfo.receiveNum + '/' + giftCardInfo.giftNum + '份,不支持取消哦!'
|
return giftCardInfo.giftNum === giftCardInfo.receiveNum ? '礼品已全部被好友领取,不支持取消哦!' : '礼品已领取' + giftCardInfo.receiveNum + '/' + giftCardInfo.giftNum + '份,不支持取消哦!'
|
||||||
} else if (giftCardInfo.giftCardStatus === 2) {
|
} else if (giftCardInfo.giftCardStatus === 2) {
|
||||||
return '该礼包已退款'
|
return '该礼包已退款'
|
||||||
|
} else {
|
||||||
|
return '已取消'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleBody() {
|
handleBody() {
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-if="orderInfo.cartInfo &&( d === orderInfo.cartInfo.length - 1)">
|
<view class="" v-if="orderInfo.cartInfo &&( d === orderInfo.cartInfo.length - 1)">
|
||||||
<view class="v12-justify-between v12-mt-3 v12-dark-text">
|
<view class="v12-justify-between v12-align-center v12-mt-3 v12-dark-text">
|
||||||
<view class="v12-font-24 v12-dark-text">
|
<view class="v12-font-24 v12-dark-text">
|
||||||
商品总价
|
商品总价
|
||||||
</view>
|
</view>
|
||||||
@@ -148,7 +148,7 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between v12-mt-3" v-if="orderInfo.payPostage > 0">
|
<view class="v12-justify-between v12-align-center v12-mt-3" v-if="orderInfo.payPostage > 0">
|
||||||
<view class="v12-font-24 v12-dark-text">
|
<view class="v12-font-24 v12-dark-text">
|
||||||
运费
|
运费
|
||||||
</view>
|
</view>
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between v12-mt-3" v-if="orderInfo.couponPrice > 0">
|
<view class="v12-justify-between v12-align-center v12-mt-3" v-if="orderInfo.couponPrice > 0">
|
||||||
<view class="v12-font-24 v12-dark-text">
|
<view class="v12-font-24 v12-dark-text">
|
||||||
满减优惠
|
满减优惠
|
||||||
</view>
|
</view>
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between v12-mt-3" v-if="orderInfo.discountPrice > 0">
|
<view class="v12-justify-between v12-align-center v12-mt-3" v-if="orderInfo.discountPrice > 0">
|
||||||
<view class="v12-font-24 v12-dark-text">
|
<view class="v12-font-24 v12-dark-text">
|
||||||
商品折扣
|
商品折扣
|
||||||
</view>
|
</view>
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between v12-mt-3" v-if="orderInfo.useIntegral > 0">
|
<view class="v12-justify-between v12-align-center v12-mt-3" v-if="orderInfo.useIntegral > 0">
|
||||||
<view class="v12-font-24 v12-dark-text">
|
<view class="v12-font-24 v12-dark-text">
|
||||||
积分抵扣
|
积分抵扣
|
||||||
</view>
|
</view>
|
||||||
@@ -196,7 +196,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-divider></u-divider>
|
<u-divider></u-divider>
|
||||||
<view class="v12-justify-between v12-mt-3">
|
<view class="v12-justify-between v12-align-center v12-mt-3">
|
||||||
<view class="v12-font-28 v12-font-bold v12-dark-text">
|
<view class="v12-font-28 v12-font-bold v12-dark-text">
|
||||||
实付款
|
实付款
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -2184,7 +2184,7 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.ll-text{
|
.ll-text{
|
||||||
margin-left: 280rpx;
|
margin-left: 250rpx;
|
||||||
word-break: keep-all;
|
word-break: keep-all;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user