task_assistance.wxml
4.67 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<view class="top-back" style="background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)">
<!-- 助力活动头部 -->
<view class="top-frame">
<view class="top-title white fs36 t-c">
{{sw_index}}
{{aitem[sw_index].helpTaskName}}
</view>
<view class="activity-data t-c fs28 white">
活动剩余时间:<text class='tui-conutdown-box'> {{aitem[0].djs.day}}</text>:<text class='tui-conutdown-box'>{{aitem[0].djs.hou}}</text>:<text class='tui-conutdown-box'>{{aitem[0].djs.min}}</text>:<text class='tui-conutdown-box tui-countdown-bg'>{{aitem[0].djs.sec}}</text>
</view>
</view>
<!-- 图片的轮播图 -->
<view class="xc-specific-more-frame flex-center">
<view bindtap="click_pre">
<view class="bg_left xc-left bcolor"></view>
</view>
<swiper current="{{sw_index}}" style='width:82.7%; height:100%' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}">
<swiper-item wx:for="{{aitem}}" wx:for-item="aitem" wx:for-index="pidx">
<image class="xc-center-img " src="{{iurl+aitem.giftBagUrl}}"></image>
</swiper-item>
</swiper>
<view bindtap="click_next">
<view class="bg_right xc-right bcolor mt"></view>
</view>
</view>
<view class="plan-frame">
<view class="plan_num rel">
<view class="is_plam abs"></view>
</view>
<text class="white fs32">/</text>
</view>
<view class="task-number fs28 white t-c ">
今天剩余可领{{task_number}}个任务
</view>
<view class="task_clike fs40 t-c flex-center"data-taskid="{{taskid}}" bindtap="add_onlicke">
就选它了
</view>
</view>
<!-- 底部列表 -->
<view>
<!-- 标题 -->
<view class="flex-vertical-between fs28 padding head">
<view class="flex-center lhead {{switch_head==0?'rhead':''}}" bindtap="user_task_list" data-index="0">
<image class="unfinished" src="{{iurl}}miniapp/images/friendhelp/task.png" lazy-load="true"></image>
<view>我的任务</view>
</view>
<view class="flex-center lhead {{switch_head==1?'rhead':''}}" bindtap="dismantle_record" data-index='1'>
<image class="unfinished" style="margin-top: 5rpx;" src="{{iurl}}miniapp/images/friendhelp/edit.png" lazy-load="true"></image>
<view>帮拆记录</view>
</view>
</view>
<view class="white">
<view class="items" wx:if="{{is_task==0}}">
<view class="item fs26 flex-vertical-between padding" wx:for="{{user_task_list}}" >
<view class="flex-center width">
<view class="ellipsis-1">{{item.helpTaskName}}
</view>
</view>
<view class="flex-center width state">
<view class="ellipsis-1">
<text wx:if="{{item.status==0&&item.zlHelpNum<item.helpNum}}">{{item.zlHelpNum}}/{{item.helpNum}}</text>
<text wx:if="{{item.status==2&&item.zlHelpNum==item.helpNum}}">查看详情</text>
<text wx:if="{{item.status==1&&time.zlHelpNum==item.helpNum}}">领取礼包 </text>
</view>
</view>
</view>
</view>
</view>
<view class="items" wx:if="{{is_task==1}}">
<view class="item fs26 flex flex-vertical-between padding" wx:for="{{}}">
<view class="flex white" style="justify-content: space-around; width: 90%;margin:auto">
<image class="circle user_img" src="https://mshopimg.yolipai.net/public/upload/qyimg/temp/2019/08-14/0697f7277936a3b116a6ebc4f8f5e39a.png"></image>
<view class="ellipsis-1">豪华任务一
</view>
<view class="ellipsis-1">2019-05-12
</view>
</view>
</view>
</view>
<view class="fs30" wx:if="{{user_task_list==null || user_task_list==''}}">
<view class="flex-center nothing white">
<view>暂无任务记录</view>
</view>
</view>
</view>
<!-- 加载更多 -->
<view class="fs32">
<view class="flex-center" wx:if="{{user_task_list}}">
<view class="line"></view>
<view class="load white" bindtap="">点击加载更多</view>
<view class="line"></view>
</view>
<view class="flex-center white" style="margin-top: 20rpx;">
<view>已有</view>
<view>{{usercount}}</view>
<view>人领取了任务</view>
</view>
</view>
<view wx:if="{{is_share}}">
<!-- 蒙尘 -->
<view wx:if="{{is_share}}" class="dust">
</view>
<!-- 画布 -->
<view class="canvas" style="width:100%;">
<view class="flex-center">
<canvas canvas-id="share_id" style="width:600rpx;height:1000rpx;" bindtap="preview"></canvas>
</view>
<view class="closes flex-center">
<image class="close" src="{{iurl}}/miniapp/images/plus/Close.png" bindtap="close_share"></image>
</view>
</view>
</view>
<!-- 引入提示组件 -->
<warn id="warn"></warn>
<!-- 制作一个圆球导航 -->
<nav_b id="nav_b"></nav_b>