1
xiaoyong931011
2022-03-25 1ceabefb451912daa5dda7768b7ef0b89a56c08a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<image  mode="aspectFill"
src="{{banner.imgUrl}}"></image>
 
<view class="waprbox">
    
    <view data-index="{{index}}" bindtap="changeTab" class="chagnciBox  {{index==currentTab?'active':''}} "   wx:for="{{activitList}}" wx:key="ids" >
        <view  >{{item.title}}</view>
        <view wx:if="{{item.isStart==ACTIVE_STATUS_NOT_START}}" >未开始</view>
        <view wx:if="{{item.isStart==ACTIVE_STATUS_ING}}" >秒杀中</view>
    </view>
 
</view>
 
 
<view class="msdjs">
 
<!-- 活动状态显示-->
<block wx:if="{{currentActiveInfo.isStart==ACTIVE_STATUS_NOT_START}}" >
    <view class="msTitle">{{currentActiveInfo.title}}即将开场</view>
    <view class="msendTitle"  >距离开始还有 <text>{{currentActiveInfo.djs.day}}:{{currentActiveInfo.djs.hour}}:{{currentActiveInfo.djs.minute}}:{{currentActiveInfo.djs.second}}</text></view>
</block>
 
<block wx:if="{{currentActiveInfo.isStart==ACTIVE_STATUS_ING}}" >
    <view class="msTitle">{{currentActiveInfo.title}}秒杀中</view>
    <view class="msendTitle"  >距离结束还有 <text>{{currentActiveInfo.djs.day}}:{{currentActiveInfo.djs.hour}}:{{currentActiveInfo.djs.minute}}:{{currentActiveInfo.djs.second}}</text></view>
</block>
 
<block wx:if="{{currentActiveInfo.isStart==ACTIVE_STATUS_END}}" >
    <view class="msTitle gray">{{currentActiveInfo.title}}已结束</view>
</block>
 
<!-- 活动状态显示结束-->
 
 
 
    <scroll-view>
        <view wx:for="{{productList}}" class="msItemBox"   data-id="{{item.id}}" 
        bindtap="intoDetail" >
            <image src="{{item.goods.imgMobile}}"></image>
            <view class="productInfoBox">
                <view class="productTitle">{{item.goods.title}}</view>
                <view class="msMsg" >
                    <view class="ms_Lmsg" >
                        <view class="price">¥{{item.siPrice}}</view>
                        <view class="gray hxj" >原价¥{{item.goods.price}}</view>
                    </view>
                    <view class="ms_Rmsg">
                        <view class="gray" >剩余{{item.siCount}}件</view>
                        <view  wx:if="{{currentActiveInfo.isStart==ACTIVE_STATUS_ING}}"  class="btn">马上抢</view>
                        <view  wx:if="{{currentActiveInfo.isStart==ACTIVE_STATUS_END}}" class="btn gray_bg">活动结束</view>
                    </view>
                </view>
            </view>
        </view>
    
    </scroll-view>
 
  <view wx:if="{{productList.length==0}}" class="nodata">暂无数据</view>
    
  <view wx:if="{{productList.length!=0&&isEnd}}" class="nodata " >没有更多了</view>
 
 
 
</view>