Commit 70ad39fb8db9963af8c1a1be8f8b4805eda4b36d
1 parent
3dcfcc3b
助力活动背景色修改
Showing
2 changed files
with
186 additions
and
180 deletions
pages/user/assistance/task_assistance.wxml
1 | 1 | <wxs module="filter" src="../../../utils/filter.wxs"></wxs> |
2 | -<view class="top-back" style="background-color:#{{bg_color ? bg_color:'d01119'}};padding-bottom:80rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> | |
3 | -<!-- <view class="top-back" style="padding-bottom:{{is_user_task!=null&&is_user_task.status==0?50:0}}rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> --> | |
4 | - <!-- 助力活动头部 --> | |
5 | - <view class="top-frame"> | |
6 | - <view class="flex-center"> | |
7 | - <view class="top-title white fs36 t-c ellipsis-1" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
8 | - {{aitem[sw_index].helpTaskName}} | |
9 | - </view> | |
10 | - </view> | |
11 | - <view class="activity-data t-c fs28" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
12 | - 活动剩余时间: | |
13 | - <block wx:if="{{aitem[0].djs.day}}"><text class='tui-conutdown-box'> {{aitem[0].djs.day}}天 </text></block> | |
14 | - <text class='tui-conutdown-box'>{{aitem[0].djs.hou}}</text>: | |
15 | - <text class='tui-conutdown-box'>{{aitem[0].djs.min}}</text>: | |
16 | - <text class='tui-conutdown-box tui-countdown-bg'>{{aitem[0].djs.sec}}</text> | |
17 | - </view> | |
18 | - </view> | |
19 | - <!-- 图片的轮播图 --> | |
20 | - <view class="xc-specific-more-frame flex-center" style="height:{{max_sw_height}}px;"> | |
21 | - <view bindtap="click_pre"> | |
22 | - <view class="bg_left xc-left bcolor"></view> | |
23 | - </view> | |
24 | - <!-- <swiper bindanimationfinish="changeGoodsSwip" current="{{sw_index}}" style='width:82.7%; height:100%' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}"> --> | |
25 | - <swiper bindanimationfinish="changeGoodsSwip" current="{{sw_index}}" style='' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}" style='width:80%;height:100%;'> | |
26 | - <swiper-item class="rel" wx:for="{{aitem}}" wx:for-item="aitem" wx:for-index="pidx"> | |
27 | - | |
28 | - <image class="xc-center-img" bindtap="libao_details" data-taskid="{{aitem.id}}" src="{{aitem.giftBagUrl!=null&&aitem.giftBagUrl!=''?iurl+aitem.giftBagUrl:swpie_img}}" mode="widthFix" bindload='imageLoad' style="width: 100%;display: block;"></image> | |
29 | - <view bindtap="libao_details" data-taskid="{{aitem.id}}" class="abs select_details fs26 white">礼包详情</view> | |
30 | - | |
31 | - </swiper-item> | |
32 | - | |
33 | - </swiper> | |
34 | - | |
35 | - <view bindtap="click_next"> | |
36 | - <view class="bg_right xc-right bcolor mt"></view> | |
37 | - </view> | |
38 | - </view> | |
39 | - <view class="plan-frame flex ai-center" wx:if="{{is_user_task}}"> | |
40 | - <view class="plan_num rel"> | |
41 | - <view class="is_plam abs" style="width:{{(is_user_task.zlHelpNum/is_user_task.helpNum)*100}}%"></view> | |
42 | - </view> | |
43 | - | |
44 | - | |
45 | - <text class="white fs24">{{is_user_task.zlHelpNum}}/{{is_user_task.helpNum}}</text> | |
46 | - | |
47 | - </view> | |
48 | - <view class="task-number fs28 t-c" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
49 | - <text wx:if="{{giftQty}}">今天剩余可领{{task_number}}个任务</text> | |
50 | - <text wx:else>不限任务数量</text> | |
51 | - </view> | |
52 | - | |
53 | - <view wx:if="{{is_user_task==null}}" class="task_clike fs40 t-c flex-center" data-taskid="{{taskid}}" bindtap="add_onlicke" | |
54 | - style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | |
55 | - 就选它了 | |
56 | - </view> | |
57 | - <view wx:if="{{is_user_task!=null&&is_user_task.status==0}}" class="task_clike fs40 t-c flex-center" bindtap="save_share" | |
58 | - style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | |
59 | - 好友拆一拆 | |
60 | - </view> | |
61 | - <view wx:if="{{is_user_task!=null&&is_user_task.status==1}}" class="task_clike fs40 t-c flex-center" data-libaoid="{{is_user_task.helpListGiftBagId}}"data-taskingid="{{is_user_task.id}}" bindtap="redeem_now" | |
62 | - style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | |
63 | - 立即兑换 | |
64 | - </view> | |
65 | - | |
66 | - <!-- | |
67 | - <view class="task_clike fs40 t-c flex-center" bindtap="test"> | |
68 | - 测试专用帮被人拆 | |
69 | - </view>--> | |
70 | - | |
2 | +<view class="container" style="background-color:#{{bg_color ? bg_color:'d01119'}}"> | |
3 | + <view class="top-back" style="background-color:#{{bg_color ? bg_color:'d01119'}};padding-bottom:80rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> | |
4 | + <!-- <view class="top-back" style="padding-bottom:{{is_user_task!=null&&is_user_task.status==0?50:0}}rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> --> | |
5 | + <!-- 助力活动头部 --> | |
6 | + <view class="top-frame"> | |
7 | + <view class="flex-center"> | |
8 | + <view class="top-title white fs36 t-c ellipsis-1" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
9 | + {{aitem[sw_index].helpTaskName}} | |
10 | + </view> | |
11 | + </view> | |
12 | + <view class="activity-data t-c fs28" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
13 | + 活动剩余时间: | |
14 | + <block wx:if="{{aitem[0].djs.day}}"><text class='tui-conutdown-box'> {{aitem[0].djs.day}}天 </text></block> | |
15 | + <text class='tui-conutdown-box'>{{aitem[0].djs.hou}}</text>: | |
16 | + <text class='tui-conutdown-box'>{{aitem[0].djs.min}}</text>: | |
17 | + <text class='tui-conutdown-box tui-countdown-bg'>{{aitem[0].djs.sec}}</text> | |
18 | + </view> | |
19 | + </view> | |
20 | + <!-- 图片的轮播图 --> | |
21 | + <view class="xc-specific-more-frame flex-center" style="height:{{max_sw_height}}px;"> | |
22 | + <view bindtap="click_pre"> | |
23 | + <view class="bg_left xc-left bcolor"></view> | |
24 | + </view> | |
25 | + <!-- <swiper bindanimationfinish="changeGoodsSwip" current="{{sw_index}}" style='width:82.7%; height:100%' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}"> --> | |
26 | + <swiper bindanimationfinish="changeGoodsSwip" current="{{sw_index}}" style='' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}" style='width:80%;height:100%;'> | |
27 | + <swiper-item class="rel" wx:for="{{aitem}}" wx:for-item="aitem" wx:for-index="pidx"> | |
28 | + | |
29 | + <image class="xc-center-img" bindtap="libao_details" data-taskid="{{aitem.id}}" src="{{aitem.giftBagUrl!=null&&aitem.giftBagUrl!=''?iurl+aitem.giftBagUrl:swpie_img}}" mode="widthFix" bindload='imageLoad' style="width: 100%;display: block;"></image> | |
30 | + <view bindtap="libao_details" data-taskid="{{aitem.id}}" class="abs select_details fs26 white">礼包详情</view> | |
31 | + | |
32 | + </swiper-item> | |
33 | + | |
34 | + </swiper> | |
35 | + | |
36 | + <view bindtap="click_next"> | |
37 | + <view class="bg_right xc-right bcolor mt"></view> | |
38 | + </view> | |
39 | + </view> | |
40 | + <view class="plan-frame flex ai-center" wx:if="{{is_user_task}}"> | |
41 | + <view class="plan_num rel"> | |
42 | + <view class="is_plam abs" style="width:{{(is_user_task.zlHelpNum/is_user_task.helpNum)*100}}%"></view> | |
43 | + </view> | |
44 | + | |
45 | + | |
46 | + <text class="white fs24">{{is_user_task.zlHelpNum}}/{{is_user_task.helpNum}}</text> | |
47 | + | |
48 | + </view> | |
49 | + <view class="task-number fs28 t-c" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
50 | + <text wx:if="{{giftQty}}">今天剩余可领{{task_number}}个任务</text> | |
51 | + <text wx:else>不限任务数量</text> | |
52 | + </view> | |
53 | + | |
54 | + <view wx:if="{{is_user_task==null}}" class="task_clike fs40 t-c flex-center" data-taskid="{{taskid}}" bindtap="add_onlicke" | |
55 | + style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | |
56 | + 就选它了 | |
57 | + </view> | |
58 | + <view wx:if="{{is_user_task!=null&&is_user_task.status==0}}" class="task_clike fs40 t-c flex-center" bindtap="save_share" | |
59 | + style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | |
60 | + 好友拆一拆 | |
61 | + </view> | |
62 | + <view wx:if="{{is_user_task!=null&&is_user_task.status==1}}" class="task_clike fs40 t-c flex-center" data-libaoid="{{is_user_task.helpListGiftBagId}}"data-taskingid="{{is_user_task.id}}" bindtap="redeem_now" | |
63 | + style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | |
64 | + 立即兑换 | |
65 | + </view> | |
66 | + | |
67 | + <!-- | |
68 | + <view class="task_clike fs40 t-c flex-center" bindtap="test"> | |
69 | + 测试专用帮被人拆 | |
70 | + </view>--> | |
71 | + | |
72 | + </view> | |
73 | + <!-- 底部列表 --> | |
74 | + <view style="background-color:#{{bg_color ? bg_color:'d01119'}}"> | |
75 | + <!-- <view style="margin-top:{{is_user_task!=null?52:0}}rpx"> --> | |
76 | + <!-- 标题 --> | |
77 | + | |
78 | + <view class="flex-vertical-between fs28 padding head" style="color:#{{font_color ? font_color:'white'}};border-color:{{btn_color ? ('#'+btn_color):'#FDC107'}};"> | |
79 | + <view class="flex-center lhead" bindtap="user_task_list_click" data-index="0" | |
80 | + style="background-color:{{switch_head==0?(btn_color ? ('#'+btn_color):'#FDC107'):'transparent'}};border-color:{{btn_color ? ('#'+btn_color):'#FDC107'}};"> | |
81 | + <image class="unfinished" src="{{iurl}}miniapp/images/friendhelp/task.png" lazy-load="true"></image> | |
82 | + <view>我的任务</view> | |
83 | + </view> | |
84 | + <view class="flex-center lhead" bindtap="dismantle_record_click" data-index='1' | |
85 | + style="background-color:{{switch_head==1?(btn_color ? ('#'+btn_color):'#FDC107'):'transparent'}};border-color:{{btn_color ? ('#'+btn_color):'#FDC107'}};"> | |
86 | + <image class="unfinished" style="margin-top: 5rpx;" src="{{iurl}}miniapp/images/friendhelp/edit.png" lazy-load="true"></image> | |
87 | + <view>帮拆记录</view> | |
88 | + </view> | |
89 | + </view> | |
90 | + | |
91 | + <view style="color:{{font_color ? ('#'+font_color):'white'}}"> | |
92 | + | |
93 | + <view class="items" wx:if="{{is_task==0}}"> | |
94 | + <view class="tesk_list"> | |
95 | + <view class="item fs26 flex-vertical-between padding" wx:for="{{user_task_list}}" wx:key="*this"> | |
96 | + <view class="flex-center width"> | |
97 | + <view class="ellipsis-1">{{item.helpTaskName}} | |
98 | + </view> | |
99 | + </view> | |
100 | + <view class="flex-center width state"> | |
101 | + <view class="ellipsis-1"> | |
102 | + <text wx:if="{{item.status==0}}" bindtap="go_task" data-taskid="{{item.helpTaskId}}">{{item.zlHelpNum}}/{{item.helpNum}}</text> | |
103 | + <text wx:if="{{item.status==2}}" bindtap="select_libao" data-orderSn="{{item.orderSn}}">查看礼包</text> | |
104 | + <text wx:if="{{item.status==1}}" bindtap="get_libao" data-libaoid="{{item.helpListGiftBagId}}"data-taskingid="{{item.id}}" data-taskid="{{item.helpTaskId}}">领取礼包 </text> | |
105 | + </view> | |
106 | + </view> | |
107 | + </view> | |
108 | + </view> | |
109 | + | |
110 | + <view class="fs30" wx:if="{{user_task_list==null || user_task_list==''}}"> | |
111 | + <view class="flex-center nothing"> | |
112 | + <view>暂无任务记录</view> | |
113 | + </view> | |
114 | + </view> | |
115 | + </view> | |
116 | + | |
117 | + | |
118 | + </view> | |
119 | + | |
120 | + | |
121 | + <view class="items" wx:if="{{is_task==1}}" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
122 | + <block wx:if="{{ dismantle!=null|| dismantle!=''}}"> | |
123 | + | |
124 | + <view class="tesk_list"> | |
125 | + <view class="item fs26 flex flex-vertical-between padding" wx:for="{{dismantle}}" wx:for-index="idx"> | |
126 | + <view class="flex white is_dismantle_frame" style="justify-content: space-around; width: 90%;margin:auto"> | |
127 | + <image class="circle user_img" src="{{item.headPic==null?defaultAvatar:item.headPic}}"></image> | |
128 | + <view class="ellipsis-1 width">{{item.nickName}} | |
129 | + </view> | |
130 | + <view class="ellipsis-1">{{filter.format_time(item.zltime)}} | |
131 | + </view> | |
132 | + </view> | |
133 | + </view> | |
134 | + </view> | |
135 | + <view class="flex-center fs32" wx:if="{{is_bc_show==1&&dismantle!=null&&is_dis_list==1}}"> | |
136 | + <view class="line"></view> | |
137 | + <view class="load white" bindtap="dismantle_record_list">点击加载更多</view> | |
138 | + <view class="line"></view> | |
139 | + </view> | |
140 | + </block> | |
141 | + | |
142 | + <view class="fs30" wx:if="{{dismantle==null|| dismantle==''}}"> | |
143 | + <view class="flex-center nothing"> | |
144 | + <view>暂无任务记录</view> | |
145 | + </view> | |
146 | + </view> | |
147 | + | |
148 | + </view> | |
149 | + | |
150 | + | |
151 | + </view> | |
152 | + <!-- 加载更多 --> | |
153 | + <view class="fs32" style="background-color:#{{bg_color ? bg_color:'d01119'}};color:{{font_color ? ('#'+font_color):'white'}};"> | |
154 | + <view class="flex-center" wx:if="{{is_show==1&&is_user_list==0}}"> | |
155 | + <view class="line"></view> | |
156 | + <view class="load" bindtap="task_list">点击加载更多</view> | |
157 | + <view class="line"></view> | |
158 | + </view> | |
159 | + <view class="flex-center bottom" wx:if="{{usercount>0}}"> | |
160 | + <view>该任务已被领取了{{usercount}}次</view> | |
161 | + </view> | |
162 | + <view class="flex-center bottom" wx:else> | |
163 | + <view>暂无领取记录</view> | |
164 | + </view> | |
165 | + </view> | |
166 | + | |
167 | + | |
168 | + <!--********** 钱巧玲 --> | |
169 | + <view wx:if="{{is_share}}"> | |
170 | + <view class="dust"></view> | |
171 | + <view class="canvas" style="width:100%;"> | |
172 | + <view class="flex-center"> | |
173 | + <canvas canvas-id="share_id" style="width:600rpx;height:1000rpx;" bindtap="preview"></canvas> | |
174 | + </view> | |
175 | + <view class="closes flex-center"> | |
176 | + <image class="close" src="{{iurl}}/miniapp/images/plus/Close.png" bindtap="close_share"></image> | |
177 | + </view> | |
178 | + </view> | |
179 | + </view> | |
180 | + <!-- 引入提示组件 --> | |
181 | + <warn id="warn"></warn> | |
182 | + <!-- 制作一个圆球导航 --> | |
183 | + <nav_b id="nav_b"></nav_b> | |
71 | 184 | </view> |
72 | -<!-- 底部列表 --> | |
73 | -<view style="background-color:#{{bg_color ? bg_color:'d01119'}}"> | |
74 | -<!-- <view style="margin-top:{{is_user_task!=null?52:0}}rpx"> --> | |
75 | - <!-- 标题 --> | |
76 | - | |
77 | - <view class="flex-vertical-between fs28 padding head" style="color:#{{font_color ? font_color:'white'}};border-color:{{btn_color ? ('#'+btn_color):'#FDC107'}};"> | |
78 | - <view class="flex-center lhead" bindtap="user_task_list_click" data-index="0" | |
79 | - style="background-color:{{switch_head==0?(btn_color ? ('#'+btn_color):'#FDC107'):'transparent'}};border-color:{{btn_color ? ('#'+btn_color):'#FDC107'}};"> | |
80 | - <image class="unfinished" src="{{iurl}}miniapp/images/friendhelp/task.png" lazy-load="true"></image> | |
81 | - <view>我的任务</view> | |
82 | - </view> | |
83 | - <view class="flex-center lhead" bindtap="dismantle_record_click" data-index='1' | |
84 | - style="background-color:{{switch_head==1?(btn_color ? ('#'+btn_color):'#FDC107'):'transparent'}};border-color:{{btn_color ? ('#'+btn_color):'#FDC107'}};"> | |
85 | - <image class="unfinished" style="margin-top: 5rpx;" src="{{iurl}}miniapp/images/friendhelp/edit.png" lazy-load="true"></image> | |
86 | - <view>帮拆记录</view> | |
87 | - </view> | |
88 | - </view> | |
89 | - | |
90 | - <view style="color:{{font_color ? ('#'+font_color):'white'}}"> | |
91 | - | |
92 | - <view class="items" wx:if="{{is_task==0}}"> | |
93 | - <view class="tesk_list"> | |
94 | - <view class="item fs26 flex-vertical-between padding" wx:for="{{user_task_list}}" wx:key="*this"> | |
95 | - <view class="flex-center width"> | |
96 | - <view class="ellipsis-1">{{item.helpTaskName}} | |
97 | - </view> | |
98 | - </view> | |
99 | - <view class="flex-center width state"> | |
100 | - <view class="ellipsis-1"> | |
101 | - <text wx:if="{{item.status==0}}" bindtap="go_task" data-taskid="{{item.helpTaskId}}">{{item.zlHelpNum}}/{{item.helpNum}}</text> | |
102 | - <text wx:if="{{item.status==2}}" bindtap="select_libao" data-orderSn="{{item.orderSn}}">查看礼包</text> | |
103 | - <text wx:if="{{item.status==1}}" bindtap="get_libao" data-libaoid="{{item.helpListGiftBagId}}"data-taskingid="{{item.id}}" data-taskid="{{item.helpTaskId}}">领取礼包 </text> | |
104 | - </view> | |
105 | - </view> | |
106 | - </view> | |
107 | - </view> | |
108 | - | |
109 | - <view class="fs30" wx:if="{{user_task_list==null || user_task_list==''}}"> | |
110 | - <view class="flex-center nothing"> | |
111 | - <view>暂无任务记录</view> | |
112 | - </view> | |
113 | - </view> | |
114 | - </view> | |
115 | 185 | |
116 | - | |
117 | - </view> | |
118 | - | |
119 | - | |
120 | - <view class="items" wx:if="{{is_task==1}}" style="color:{{font_color ? ('#'+font_color):'white'}};"> | |
121 | - <block wx:if="{{ dismantle!=null|| dismantle!=''}}"> | |
122 | - | |
123 | - <view class="tesk_list"> | |
124 | - <view class="item fs26 flex flex-vertical-between padding" wx:for="{{dismantle}}" wx:for-index="idx"> | |
125 | - <view class="flex white is_dismantle_frame" style="justify-content: space-around; width: 90%;margin:auto"> | |
126 | - <image class="circle user_img" src="{{item.headPic==null?defaultAvatar:item.headPic}}"></image> | |
127 | - <view class="ellipsis-1 width">{{item.nickName}} | |
128 | - </view> | |
129 | - <view class="ellipsis-1">{{filter.format_time(item.zltime)}} | |
130 | - </view> | |
131 | - </view> | |
132 | - </view> | |
133 | - </view> | |
134 | - <view class="flex-center fs32" wx:if="{{is_bc_show==1&&dismantle!=null&&is_dis_list==1}}"> | |
135 | - <view class="line"></view> | |
136 | - <view class="load white" bindtap="dismantle_record_list">点击加载更多</view> | |
137 | - <view class="line"></view> | |
138 | - </view> | |
139 | - </block> | |
140 | - | |
141 | - <view class="fs30" wx:if="{{dismantle==null|| dismantle==''}}"> | |
142 | - <view class="flex-center nothing"> | |
143 | - <view>暂无任务记录</view> | |
144 | - </view> | |
145 | - </view> | |
146 | - | |
147 | - </view> | |
148 | - | |
149 | - | |
150 | -</view> | |
151 | -<!-- 加载更多 --> | |
152 | -<view class="fs32" style="background-color:#{{bg_color ? bg_color:'d01119'}};color:{{font_color ? ('#'+font_color):'white'}};"> | |
153 | - <view class="flex-center" wx:if="{{is_show==1&&is_user_list==0}}"> | |
154 | - <view class="line"></view> | |
155 | - <view class="load" bindtap="task_list">点击加载更多</view> | |
156 | - <view class="line"></view> | |
157 | - </view> | |
158 | - <view class="flex-center bottom" wx:if="{{usercount>0}}"> | |
159 | - <view>该任务已被领取了{{usercount}}次</view> | |
160 | - </view> | |
161 | - <view class="flex-center bottom" wx:else> | |
162 | - <view>暂无领取记录</view> | |
163 | - </view> | |
164 | -</view> | |
165 | - | |
166 | - | |
167 | -<!--********** 钱巧玲 --> | |
168 | -<view wx:if="{{is_share}}"> | |
169 | - <view class="dust"></view> | |
170 | - <view class="canvas" style="width:100%;"> | |
171 | - <view class="flex-center"> | |
172 | - <canvas canvas-id="share_id" style="width:600rpx;height:1000rpx;" bindtap="preview"></canvas> | |
173 | - </view> | |
174 | - <view class="closes flex-center"> | |
175 | - <image class="close" src="{{iurl}}/miniapp/images/plus/Close.png" bindtap="close_share"></image> | |
176 | - </view> | |
177 | - </view> | |
178 | -</view> | |
179 | -<!-- 引入提示组件 --> | |
180 | -<warn id="warn"></warn> | |
181 | -<!-- 制作一个圆球导航 --> | |
182 | -<nav_b id="nav_b"></nav_b> | ... | ... |