商品券相关优化更新

This commit is contained in:
GaoHao
2024-11-21 09:46:04 +08:00
parent 8c5e03d6c4
commit f7a2f588ef
11 changed files with 613 additions and 578 deletions

View File

@@ -4,7 +4,7 @@
<view class="rechargeFree_bg" @click="changeFree">
<view class="left">
<view class="icon">优惠</view>
<view class="text">充值消费{{freeDingConfig.rechargeTimes}}{{freeDingConfig.rechargeThreshold}}本单立享免单</view>
<view class="text">充值消费{{freeDingConfig.rechargeTimes}}订单满{{freeDingConfig.rechargeThreshold}}远可用本单立享免单</view>
</view>
<u-checkbox-group iconPlacement="right" >
<u-checkbox :disabled="freeDisabled" v-model="rechargeFreeChecked" :checked="rechargeFreeChecked" @change="changeFree" activeColor="#E8AD7B" shape="circle" icon-size="36" size="36">
@@ -41,6 +41,11 @@
if ( this.payAmount < this.freeDingConfig.rechargeThreshold ) {
this.freeDisabled = true
}
},
payAmount (newVal) {
if ( this.payAmount < this.freeDingConfig.rechargeThreshold ) {
this.freeDisabled = true
}
}
},
mounted() {
@@ -69,7 +74,7 @@
<style lang="scss">
// 充值免单
.rechargeFree{
padding: 0 20rpx;
// padding: 0 20rpx;
margin-top: 32rpx;
.rechargeFree_bg{
display: flex;
@@ -94,6 +99,7 @@
margin-right: 12rpx;
}
.text{
width: 90%;
font-weight: 500;
font-size: 28rpx;
color: #333333;