index.wxml
2.27 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
<block wx:if="{{loading}}">
<view class="layout">
<view class="title flex box">{{title}}</view>
<view class="mp-html box">
<mp-html content="{{activityDetail}}"></mp-html>
</view>
<view class="detail-box box">
<view class="subtitle">参与接龙目前共<text>{{list.length}}</text>人</view>
<view class="list">
接龙明细
<block wx:for="{{list}}" wx:key="index">
<block wx:if="{{index < 5}}">
<view class="item flex">
<view class="label text-hide">{{index + 1}}.名称:{{item.name}}
</view>
<view class="value">选择数字:{{item.relayContent}}</view>
</view>
</block>
</block>
<block wx:if="{{list.length >= 6}}">
<block wx:if="{{list.length > 6}}">
<view class="item">…</view>
</block>
<view class="item flex">
<view class="label text-hide">{{list.length}}.名称:{{list[list.length - 1].name}}</view>
<view class="value">选择数字:{{list[list.length - 1].relayContent}}</view>
</view>
</block>
<block wx:if="{{!disabled}}">
<view class="input-box">
<block wx:if="{{!flag}}">
<view class="button flex" bindtap="inSolitaire">
<view class="icon"></view>参与接龙
</view>
</block>
<block wx:else>
<view class="input">
<input type="text" placeholder="请输入名称" maxlength="32" placeholder-class="placeholder" value="{{params.name}}" bindinput="input" data-name="params.name" />
</view>
<view class="input {{params.num ?'':'placeholder'}}">
<picker bindchange="bindPickerChange" range="{{array}}">
{{params.num || '请选择数字'}}
</picker>
<view class="arrow y-center"></view>
</view>
<button class="default-btn" bindtap="submit">确定</button>
</block>
</view>
</block>
</view>
</view>
</view>
</block>
<solitaire-popup popupConfig="{{popupConfig}}" model:show="{{show}}"></solitaire-popup>
<coupon item="{{couponInfo}}" model:show="{{showCoupon}}"></coupon>