labels.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
<view wx:if="{{interest_lables.length>0}}" class="container">
<!-- 兴趣标签集合 -->
<view class="lables padding">
<!-- 兴趣标签标题 -->
<view class="flex-vertical-between labels_head">
<view class="fs36">兴趣标签</view>
<view class="skip flex-center fs28" data-url="/pages/user/userinfo/userinfo" bindtap="goto">
<view>关闭</view>
</view>
</view>
<!-- 标签内容 -->
<view class="label_aggregate">
<!-- 单个标签 -->
<view class="label fs28 {{item.check==1?'click':''}}" wx:for="{{interest_lables}}" wx:for-item="item" wx:for-index="index" data-index="{{index}}" bindtap="click_label">
<view class="ellipsis-1">{{item.LabelName}}</view>
</view>
</view>
</view>
<!-- 选中的兴趣集合标签 -->
<view class="padding check_item">
<view class="fs32 check_head">已选中</view>
<view class="check_labels">
<view class="check_label fs28" wx:for="{{check_label}}" wx:for-item="it" wx:for-index="key">
<view class="ellipsis-1">
{{it.LabelName}}
</view>
</view>
</view>
</view>
<!-- 领取选择标签的奖励按钮 -->
<block wx:if="{{is_modify==0}}">
<view class="receive flex-center fs36" bindtap="update_label" data-url="/pages/user/userinfo/userinfo">
<block wx:if="{{user_label_val<1 || user_label_val==''}}">
<view>确定选择</view>
</block>
<block wx:if="{{user_label_type==1 && user_label_val>0 && user_label_val!=''}}">
<view>领取{{user_label_val}}积分</view>
</block>
<block wx:if="{{user_label_type==2 && user_label_val>0 && user_label_val!=''}}">
<view>领取{{user_label_val}}成长值</view>
</block>
</view>
</block>
<block wx:if="{{is_modify==1}}">
<view class="receive flex-center fs36" bindtap="update_label" data-url="/pages/user/userinfo/userinfo">
<view>提交修改</view>
</view>
</block>
</view>
<view wx:if="{{interest_lables.length<1}}" class="flex-center fs30" style="overflow: hidden;margin-top:40%;">
<view>
<view class="flex-center">
<image class="no_labels" src="{{iurl}}miniapp/images/yyservice/no_history.png"></image>
</view>
<view>
<view>商家还未设置标签,敬请期待!</view>
</view>
</view>
</view>
<!-- 引入提示组件 -->
<warn id="warn"></warn>
<my_confirm id="my_confirm"></my_confirm>