action-bar.wxml
2.42 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!--page/subPackage/pages/zeroSell/components/action-bar.wxml-->
<view class="action-bar">
<view class="action-item action-list" bindtap="goList">
<image class="action-image" src="../images/list_icon@2x.png"></image>
</view>
<block wx:if="{{status === 1}}">
<view class="action-item over">即将开始</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">0元参加抽奖</button>
</form>
</block>
<block wx:elif="{{status === 3}}">
<view class="action-item confirm" bindtap="goMyList">
我的抽奖码({{num}})
</view>
<view class="action-item ok" bindtap="goShare">
获取更多抽奖码
</view>
</block>
<block wx:elif="{{status === 4}}">
<view class="action-item confirm" bindtap="goMyList">
我的抽奖码({{num}})
</view>
</block>
<block wx:elif="{{status === 5}}">
<view class="action-item confirm" bindtap="goMyList">
我的抽奖码({{num}})
</view>
<view class="action-item ok" bindtap="openFellowAlert">
查看开奖结果
</view>
</block>
<block wx:elif="{{status === 6}}">
<view class="action-item over">活动已结束</view>
</block>
</view>
<zero-alert wx:if="{{show}}">
<view class="code-alert">
<view class="title">你的抽奖码是</view>
<view class="code">{{code}}</view>
<view class="share">分享可以获得更多抽奖码,中奖几率up!</view>
</view>
<form bindsubmit='submitFormId' report-submit='true'>
<view class="foot">
<button class="foot-item info" plain="true" hover-class="none" form-type="submit" bindtap="goShare">去分享</button>
<button class="foot-item" plain="true" hover-class="none" form-type="submit" bindtap="cancelAlert">取消</button>
</view>
</form>
<!-- <view class="foot-item info" bindtap="goShare">去分享</view>
<view class="foot-item" bindtap="cancelAlert">取消</view> -->
</zero-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="cancelAlert"></fellow-alert>