123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <wxs src='../../../utils/wxsUtil.wxs' module="wxs"></wxs>
- <!-- 头部banner -->
- <view class="top">
- <view class="bgc">
- <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20230106/banner%402x%20%281%29.png"></image>
- </view>
- <view class="seckillBox">
- <view wx:if="{{!end&&activeClass!=''}}" class="time" >{{startTime}} 即将开始</view>
- <view wx:if="{{activeClass==''}}" class="time">距离本场结束</view>
- <view class="time" wx:if="{{end}}">秒杀活动已结束</view>
- <view class="seckill">
- <view class="text">倒计时</view>
- <van-count-down use-slot time="{{ time }}" bind:finish='finishTime' bind:change="onChange">
- <view class="box">
- <text class="item">{{ timeData.hours1 }}</text>
- <text class="item">{{ timeData.hours }}</text>
- <text class="item" wx:if="{{timeData.hours2}}">{{ timeData.hours2 }}</text>
- <text class="item1">:</text>
- <text class="item">{{ timeData.minutes1 }}</text>
- <text class="item">{{ timeData.minutes }}</text><text class="item1">:</text>
- <text class="item">{{ timeData.seconds1 }}</text>
- <text class="item">{{ timeData.seconds }}</text>
- </view>
- </van-count-down>
- </view>
- </view>
- </view>
- <view class="seckillList">
- <view class="seckill-item" wx:for="{{seckillList.list}}" bindtap="{{activeClass!=''?'':'goSeckillDetail'}}" wx:key="index" data-num="{{item.num}}" data-seckillId="{{item.seckill_id}}" data-id="{{item.id}}">
- <view class="seckill-item-left">
- <image src="{{item.cover_url}}"></image>
- </view>
- <view class="seckill-item-right">
- <view class="item-title">{{item.goods_name}}</view>
- <view class="item-oldPrice">¥{{item.original_price}}</view>
- <view class="right-bottom">
- <view class="item-price"><text>¥</text><text class="price__big">{{wxs.formatValue(item.price, 'split')[0]}}</text><text>.{{wxs.formatValue(item.price, 'split')[1]}}</text></view>
- <view class="item-button {{activeClass!=''?'activeClass':''}}" >去购买 ></view>
- </view>
- </view>
- </view>
- </view>
|