Commit 103e51a8a878b39fc7a138eeb41e5c54ef4cef07

Authored by 前端开发-罗建龙
1 parent 551c7c89

秒杀大图倒计时优化

components/diy_seckill/diy_seckill.wxml
@@ -31,9 +31,9 @@ @@ -31,9 +31,9 @@
31 <view wx:if="{{aitem.residue==0 || aitem.status==2}}" class="{{object.count_down_float ? 'item_float' : ''}}" style="height: 70rpx;line-height: 70rpx;color: #fff;background-color:rgb(166,166,166);text-align: center;"> 31 <view wx:if="{{aitem.residue==0 || aitem.status==2}}" class="{{object.count_down_float ? 'item_float' : ''}}" style="height: 70rpx;line-height: 70rpx;color: #fff;background-color:rgb(166,166,166);text-align: center;">
32 已售罄 32 已售罄
33 </view> 33 </view>
34 - <view wx:else style="{{'height: 70rpx;padding: 10rpx 30rpx;background:'+ (aitem.status ==0 ? object.scountdown_background_color : (aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color))}}" class="{{'new_item1_time '+ (object.count_down_float ? 'item_float' : '')}}"> 34 + <view wx:else style="{{'height: 70rpx;padding: 10rpx 30rpx;box-sizing:border-box;background:'+ (aitem.status ==0 ? object.scountdown_background_color : (aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color))}}" class="{{'new_item1_time '+ (object.count_down_float ? 'item_float' : '')}}">
35 <image src="{{imghost+'/miniapp/images/component/seckill.png'}}"></image> 35 <image src="{{imghost+'/miniapp/images/component/seckill.png'}}"></image>
36 - <view style="text-align: center;"> 36 + <view style="text-align: center;line-height: 30rpx;">
37 <view wx:if="{{aitem.status == 1}}">距结束时间</view> 37 <view wx:if="{{aitem.status == 1}}">距结束时间</view>
38 <view wx:if="{{aitem.status == 0}}">距开始时间</view> 38 <view wx:if="{{aitem.status == 0}}">距开始时间</view>
39 <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> 39 <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view>
@@ -229,9 +229,9 @@ @@ -229,9 +229,9 @@
229 <view wx:if="{{aitem.residue==0 || aitem.status==2}}" class="{{(object.count_down_float ? 'item_float' : '')}}" style="height: 70rpx;line-height: 70rpx;color: #fff;background-color:rgb(166,166,166);text-align: center;"> 229 <view wx:if="{{aitem.residue==0 || aitem.status==2}}" class="{{(object.count_down_float ? 'item_float' : '')}}" style="height: 70rpx;line-height: 70rpx;color: #fff;background-color:rgb(166,166,166);text-align: center;">
230 已售罄 230 已售罄
231 </view> 231 </view>
232 - <view wx:else class="{{'new_item1_time ' + (object.count_down_float ? 'item_float' : '')}}" style="{{'height: 70rpx;padding: 10rpx 30rpx;background:'+ (aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}" > 232 + <view wx:else class="{{'new_item1_time ' + (object.count_down_float ? 'item_float' : '')}}" style="{{'box-sizing: border-box;height: 70rpx;padding: 10rpx 30rpx;background:'+ (aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}" >
233 <image src="{{imghost+'/miniapp/images/component/seckill.png'}}"></image> 233 <image src="{{imghost+'/miniapp/images/component/seckill.png'}}"></image>
234 - <view style="text-align: center;"> 234 + <view style="text-align: center;line-height: 30rpx;">
235 <view wx:if="{{aitem.status == 1}}">距结束时间</view> 235 <view wx:if="{{aitem.status == 1}}">距结束时间</view>
236 <view wx:if="{{aitem.status == 0}}">距开始时间</view> 236 <view wx:if="{{aitem.status == 0}}">距开始时间</view>
237 <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> 237 <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view>