Fix:4127 【商城小程序】订单结算页面的优惠详情弹窗—勾选其他优惠券后点击【×】关闭按钮,再次打开弹窗会显示勾选新选择的优惠券
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
<text class="v12-dark-text v12-font-24" >{{ couponList.usable.length === 0 ? '无' : '去选择' }}</text>
|
||||
<text class="iconfont icon-jiantou v12-font-24 v12-dark-text"></text>
|
||||
</view> -->
|
||||
<view class="v12-secondary-dark-text v12-align-center" @click="changeCoupons">
|
||||
<view class="v12-secondary-dark-text v12-align-center" @click="showCouponsPopup">
|
||||
<text class="v12-font-22 ">-¥</text>
|
||||
<text class="v12-font-28">{{ force2Decimal(orderPrice.couponPrice) }}</text>
|
||||
<text class="iconfont icon-jiantou v12-font-24 v12-dark-text"></text>
|
||||
@@ -255,20 +255,21 @@
|
||||
</view>
|
||||
<!-- v9 优惠券开始 -->
|
||||
<u-popup
|
||||
v-if="show"
|
||||
:show="show"
|
||||
:round="10"
|
||||
mode="bottom"
|
||||
close-on-click-overlay
|
||||
@close="changeCoupons"
|
||||
@close="close"
|
||||
>
|
||||
<CouponsPopup
|
||||
v-if="couponList.usable.length > 0"
|
||||
v-if="couponList.usable.length > 0 && show"
|
||||
:two-list="couponList"
|
||||
@change="changeCoupons"
|
||||
@close="close"
|
||||
:currentPrice="force2Decimal(orderPrice.totalPrice)"
|
||||
:id="couponId"
|
||||
@max="couponMax"
|
||||
:couponId1="couponId"
|
||||
:show-tab="false"
|
||||
/>
|
||||
</u-popup>
|
||||
@@ -473,7 +474,7 @@ export default {
|
||||
postOrderComputed(this.orderGroupInfo.orderKey, {
|
||||
addressId: this.addressInfo.id,
|
||||
useIntegral: this.useIntegral ? 1 : 0,
|
||||
couponId: this.couponList.usable.length === 0 ? 0 : this.couponId || 0,
|
||||
couponId: this.couponList.usable.length === 0 ? 0 : this.couponId,
|
||||
usePoints: this.usePointsCheck ? 1 : 0,
|
||||
shipping_type: parseInt(this.shipping_type) + 1
|
||||
}).then(res => {
|
||||
@@ -800,6 +801,9 @@ export default {
|
||||
close() {
|
||||
this.show = !this.show
|
||||
},
|
||||
showCouponsPopup() {
|
||||
this.show = !this.show
|
||||
},
|
||||
// v9-2
|
||||
changeCoupons(item) {
|
||||
if(!item) return
|
||||
|
||||
Reference in New Issue
Block a user