action-bar.wxml
2.25 KB
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
<!-- page/subPackage/pages/zeroSell/components/action-bar.wxml -->
<view class="action-bar" wx:if="{{isLogin}}">
<block wx:if="{{status === 1}}">
<view class="action-item over">
<text>距开始</text>
<text class="remaining-time">{{remainingTime}}</text>
</view>
</block>
<block wx:elif="{{status === 2}}">
<form bindsubmit='submitFormId' report-submit='true' class="action-item">
<button class="action-item confirm" style="border-radius: unset;" form-type="submit" bindtap="fetchCode">
参加抽奖
</button>
</form>
</block>
<block wx:elif="{{status === 3}}">
<button class="action-item ok" bindtap="goShare" open-type="share">邀请好友参加,增加中奖率</button>
</block>
<block wx:elif="{{status >= 3}}">
<view class="action-item over">已结束</view>
</block>
</view>
<view class="action-bar2" wx:else>
<block wx:if="{{activityStatus === 1}}">
<button class="action-item over" bindtap="goLogin">
<text>距开始</text>
<text class="remaining-time">{{remainingTime}}</text>
</button>
</block>
<block wx:if="{{activityStatus === 2}}">
<button class="action-item confirm" bindtap="goLogin">参加抽奖</button>
</block>
<block wx:elif="{{activityStatus >= 3}}">
<button class="action-item over" bindtap="goLogin">已结束</button>
</block>
</view>
<new-lucky-alert wx:if="{{show}}" bindhiddenalert="hiddenAlert">
<view class="code-alert">
<text class="code-title">参加抽奖成功</text>
<view class="code-bg">
<view class="title">你的抽奖码是</view>
<view class="code">{{code}}</view>
</view>
<button open-type="share" class="share" bindtap="hadJoinToShare">
分享一下,中奖概率立马double
</button>
<view class="share-desc">1个好友参加=1个抽奖码=中奖几率UP!</view>
</view>
</new-lucky-alert>
<zero-alert wx:if="{{error}}">
<view class="error-alert">
<view class="error-title">OOPS</view>
<view class="error-content">{{errorText}}</view>
</view>
<view class="foot">
<view class="foot-item" bindtap="cancelAlert">确定</view>
</view>
</zero-alert>
<fellow-alert show="{{fellow}}" bindok="cancelFellow" copyText="{{copyText}}" type="{{type}}" text="{{text}}"></fellow-alert>