@@ -32,9 +32,9 @@
|
||||
<image :src="webUrl+'/20210806121714655368.png'" mode="" style="width: 36rpx;height: 36rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="couponListLimit2ToShow.length > 0 || attr.productSelect.earnPoints" class="v12-mt-1 v12-mb-1">
|
||||
<view v-if="(!isCountyLotteryGoodsDetail() && couponListLimit2ToShow.length > 0) || attr.productSelect.earnPoints" class="v12-mt-1 v12-mb-1">
|
||||
<view class="cell flex jc-between ai-center">
|
||||
<view v-if="couponListLimit2ToShow.length > 0" class="v12-justify-start">
|
||||
<view v-if="!isCountyLotteryGoodsDetail() && couponListLimit2ToShow.length > 0" class="v12-justify-start">
|
||||
<view
|
||||
v-for="(item, index) in couponListLimit2ToShow"
|
||||
:key="index"
|
||||
@@ -48,7 +48,7 @@
|
||||
</view>
|
||||
|
||||
<view
|
||||
v-if="couponListLimit2ToShow.length > 0"
|
||||
v-if="!isCountyLotteryGoodsDetail() && couponListLimit2ToShow.length > 0"
|
||||
class="value value2 v12-font-24 v12-primary-text"
|
||||
@click="changeCoupons()"
|
||||
>
|
||||
@@ -201,7 +201,7 @@
|
||||
</view>
|
||||
|
||||
<!-- v9 优惠券开始 -->
|
||||
<u-popup :show="show" :round="10" mode="bottom" closeOnClickOverlay @close="changeCoupons()">
|
||||
<u-popup v-if="!isCountyLotteryGoodsDetail()" :show="show" :round="10" mode="bottom" closeOnClickOverlay @close="changeCoupons()">
|
||||
<CouponsPopup
|
||||
:two-list="couponList"
|
||||
@ok="setCoupon"
|
||||
@@ -1519,12 +1519,17 @@ export default {
|
||||
that.isOpen = false
|
||||
that.attr.cartAttr = false
|
||||
if (news === 1) {
|
||||
const orderQuery = {
|
||||
id: res.data.cartId,
|
||||
discount: that.storeInfo.discount,
|
||||
}
|
||||
if (that.source === 'countyLottery') {
|
||||
orderQuery.from = 'countyLottery'
|
||||
orderQuery.drawActivityId = Number(that.activityId || 0)
|
||||
}
|
||||
that.$yrouter.push({
|
||||
path: "/pages/order/OrderSubmission/index",
|
||||
query: {
|
||||
id: res.data.cartId,
|
||||
discount: that.storeInfo.discount,
|
||||
}
|
||||
query: orderQuery
|
||||
})
|
||||
setTimeout(() => {
|
||||
that.submitActionLock = false
|
||||
@@ -1599,11 +1604,16 @@ export default {
|
||||
listenerActionClose() {
|
||||
this.posters = false
|
||||
},
|
||||
isCountyLotteryGoodsDetail() {
|
||||
return this.source === 'countyLottery' && Number(this.activityId || 0) > 0
|
||||
},
|
||||
// v9-2
|
||||
changeCoupons(e) {
|
||||
if (this.isCountyLotteryGoodsDetail()) return
|
||||
this.show = !this.show
|
||||
},
|
||||
setCoupon(couponId) {
|
||||
if (this.isCountyLotteryGoodsDetail()) return
|
||||
this.couponId = couponId
|
||||
},
|
||||
async checkFavorite() {
|
||||
|
||||
Reference in New Issue
Block a user