💪 optimize: 优化代码

This commit is contained in:
wangsongsole 2024-03-25 20:27:23 +08:00
parent 928c145f03
commit 468e122a32
3 changed files with 18 additions and 17 deletions

View File

@ -990,7 +990,7 @@ img.changegray {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #333; color: #333;
margin: 0.2rem 0; margin-bottom: 0.1rem;
} }
#reduce .countdown p { #reduce .countdown p {
@ -1004,6 +1004,7 @@ img.changegray {
#reduce .countdown span { #reduce .countdown span {
color: #ff7634; color: #ff7634;
margin: 0;
} }
#reduce .coupon-left { #reduce .coupon-left {

View File

@ -53,18 +53,19 @@
<span @click="copyFn">复制</span> <span @click="copyFn">复制</span>
</div> </div>
</div> </div>
<div class="countdown" v-if="this.outTime.length>0">
<span>倒计时:</span>
<p>{{this.outTime[0]}}</p>
<p>{{this.outTime[1]}}59</p>
<p>{{this.outTime[2]}}</p>
</div>
<div class="couponShow"> <div class="couponShow">
<span> <span>
<img @click="backgoodsFn" v-if="backAble" class="backIcon" <img @click="backgoodsFn" v-if="backAble" class="backIcon"
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt=""> src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
</span> </span>
<div class="countdown" v-if="this.outTime.length>0">
<span>倒计时:</span>
<p>{{this.outTime[0]}}</p>
<p>{{this.outTime[1]}}59</p>
<p>{{this.outTime[2]}}</p>
</div>
<div class="coupon-left"> <div class="coupon-left">
<p class="coupon_money" :style="{fontSize:this.fonts()}"> <p class="coupon_money" :style="{fontSize:this.fonts()}">
<span></span>{{parseFloat(reduceInfo.reduce_amount)}} <span></span>{{parseFloat(reduceInfo.reduce_amount)}}

View File

@ -54,19 +54,18 @@
</div> </div>
</div> </div>
<div class="countdown" v-if="this.outTime.length>0">
<span>倒计时:</span>
<p>{{this.outTime[0]}}</p>
<p>{{this.outTime[1]}}59</p>
<p>{{this.outTime[2]}}</p>
</div>
<div class="couponShow"> <div class="couponShow">
<span> <span>
<img @click="backgoodsFn" v-if="backAble" class="backIcon" <img @click="backgoodsFn" v-if="backAble" class="backIcon"
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt=""> src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
</span> </span>
<div class="countdown" v-if="this.outTime.length>0">
<span>倒计时:</span>
<p>{{this.outTime[0]}}</p>
<p>{{this.outTime[1]}}59</p>
<p>{{this.outTime[2]}}</p>
</div>
<div class="coupon-left"> <div class="coupon-left">
<p class="coupon_money" :style="{fontSize:this.fonts()}"> <p class="coupon_money" :style="{fontSize:this.fonts()}">
<span></span>{{parseFloat(reduceInfo.reduce_amount)}} <span></span>{{parseFloat(reduceInfo.reduce_amount)}}
@ -196,7 +195,7 @@
} }
}, 1000); }, 1000);
} else { } else {
this.outTime = []; this.outTime = ['00', '00', '00'];
} }
}, },
filters: { filters: {