闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
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
65
66
67
68
69
70
71
72
73
74
75
<view id="js-page-wrap" class="promotion-detail-container">
    <view wx:if="{{banner}}" class="wrap" id="{{independentID}}">
        <view class="banner-wrap">
            <t-image
              src="{{banner}}"
              mode="aspectFill"
              webp="{{true}}"
              t-class="t-class-promotion-head"
            />
            <view wx:if="{{!showBannerDesc && (time >= 0 || statusTag === 'finish')}}" class="count-down-wrap in-banner-count-down-wrap">
                <block wx:if="{{statusTag === 'finish'}}">
                    <view class="status-tag {{statusTag}}">已结束</view>
                    <text class="count-down-label">活动已结束</text>
                </block>
                <block wx:else>
                    <view wx:if="{{statusTag === 'before'}}" class="status-tag {{statusTag}}">
                        未开始
                    </view>
                    <text class="count-down-label">距结束仅剩</text>
                    <count-down
                      wx:if="{{time > 0}}"
                      t-class="wr-cd-class"
                      time="{{time}}"
                      format="DD天 HH:mm:ss"
                      bind:finish="countDownFinishHandle"
                    />
                </block>
                <view class="detail-entry" bind:tap="bannerClickHandle">
                    <text class="detail-entry-label">规则详情</text>
                    <t-icon name="chevron-right" size="34rpx" style="color: #999" />
                </view>
            </view>
            <view wx:if="{{showBannerDesc && (useBannerDescSlot || time >= 0 || statusTag === 'finish')}}" class="banner-desc-wrap">
                <block wx:if="{{useBannerDescSlot}}">
                    <slot name="banner-desc" />
                </block>
                <block wx:else>
                    <view class="count-down-wrap after-banner-count-down-wrap">
                        <block wx:if="{{statusTag === 'finish'}}">
                            <view class="status-tag {{statusTag}}">已结束</view>
                            <text class="count-down-label">活动已结束</text>
                        </block>
                        <block wx:else>
                            <view wx:if="{{statusTag === 'before'}}" class="status-tag {{statusTag}}">
                                未开始
                            </view>
                            <text class="count-down-label">距结束仅剩</text>
                            <count-down
                              class="{{cdClass}}"
                              wr-class="wr-cd-class"
                              wx:if="{{time > 0}}"
                              time="{{time}}"
                              format="DD天 HH:mm:ss"
                              bind:finish="countDownFinishHandle"
                            />
                        </block>
                        <view class="detail-entry" bind:tap="bannerClickHandle">
                            <text class="detail-entry-label">规则详情</text>
                            <t-icon name="chevron-right" size="34rpx" style="color: #999" />
                        </view>
                    </view>
                </block>
            </view>
        </view>
    </view>
    <view wx:if="{{list && list.length>0}}" class="promotion-goods-list">
        <goods-list
          wr-class="goods-list-container"
          goodsList="{{list}}"
          bind:click="goodClickHandle"
          bind:addcart="cardClickHandle"
        />
    </view>
    <t-toast id="t-toast" />
</view>