Fix:去选择按钮去掉,箭头改到数字后面

This commit is contained in:
linxi
2025-03-03 15:17:36 +08:00
parent 38fde39aa7
commit 5dc01c9a3e
+7 -5
View File
@@ -109,13 +109,14 @@
</view> </view>
</view> </view>
<view class="v12-justify-between v12-align-center"> <view class="v12-justify-between v12-align-center">
<view class="v12-mr-2" @click="changeCoupons" v-if="couponList.usable.length !== 0 && !hasCoupon"> <!-- <view class="v12-mr-2" @click="changeCoupons" v-if="couponList.usable.length !== 0 && !hasCoupon">
<text class="v12-dark-text v12-font-24" >{{ couponList.usable.length === 0 ? '无' : '去选择' }}</text> <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> <text class="iconfont icon-jiantou v12-font-24 v12-dark-text"></text>
</view> </view> -->
<view class="v12-secondary-dark-text"> <view class="v12-secondary-dark-text v12-align-center" @click="changeCoupons">
<text class="v12-font-22 ">-</text> <text class="v12-font-22 ">-</text>
<text class="v12-font-28">{{ force2Decimal(orderPrice.couponPrice) }}</text> <text class="v12-font-28">{{ force2Decimal(orderPrice.couponPrice) }}</text>
<text class="iconfont icon-jiantou v12-font-24 v12-dark-text"></text>
</view> </view>
</view> </view>
</view> </view>
@@ -391,7 +392,8 @@ export default {
await this.computedPrice('couponId') await this.computedPrice('couponId')
} }
}, },
onLoad() { onLoad(opts) {
console.log(opts);
const that = this const that = this
if (that.$yroute.query.pinkid !== undefined) { if (that.$yroute.query.pinkid !== undefined) {
that.pinkId = that.$yroute.query.pinkid that.pinkId = that.$yroute.query.pinkid
@@ -403,7 +405,7 @@ export default {
if (that.$yroute.query.lotteryRecordId !== undefined) { if (that.$yroute.query.lotteryRecordId !== undefined) {
that.lotteryRecordId = that.$yroute.query.lotteryRecordId that.lotteryRecordId = that.$yroute.query.lotteryRecordId
} }
that.hasCoupon = that.$yroute.query.couponId !== '' that.hasCoupon = opts.couponId !== ''
}, },
onShow() { onShow() {
const _this = this const _this = this