Merged
Merge Request #257 · created by 后端研发-苏明海


Test


From test into qa

Merged by 后端研发-苏明海

1 participants

pages/user/assistance/assistance.js
@@ -133,7 +133,7 @@ Page({ @@ -133,7 +133,7 @@ Page({
133 }) 133 })
134 } 134 }
135 } else { 135 } else {
136 - getApp().my_confirm(res.data.msg, 0, th); 136 + getApp().my_warnning(res.data.msg, 0, th);
137 th.setData({ 137 th.setData({
138 is_show_more: 1, 138 is_show_more: 1,
139 page: page 139 page: page
pages/user/assistance/assistance.wxml
@@ -43,6 +43,7 @@ @@ -43,6 +43,7 @@
43 <!-- 我的任务 --> 43 <!-- 我的任务 -->
44 <view wx:if="{{switch_head==0}}" class="white"> 44 <view wx:if="{{switch_head==0}}" class="white">
45 <view class="items"> 45 <view class="items">
  46 + <view class="tesk_list">
46 <view class="item fs26 flex-vertical-between padding" wx:for="{{zl_user_list}}"> 47 <view class="item fs26 flex-vertical-between padding" wx:for="{{zl_user_list}}">
47 <view class="flex-center width"> 48 <view class="flex-center width">
48 <view class="ellipsis-1">{{item.helpTaskName}}</view> 49 <view class="ellipsis-1">{{item.helpTaskName}}</view>
@@ -59,7 +60,7 @@ @@ -59,7 +60,7 @@
59 <view class="ellipsis-1" bindtap="select_libao" data-orderSn="{{item.orderSn}}">查看礼包</view> 60 <view class="ellipsis-1" bindtap="select_libao" data-orderSn="{{item.orderSn}}">查看礼包</view>
60 </view> 61 </view>
61 62
62 - 63 + </view>
63 </view> 64 </view>
64 <!-- 加载更多 --> 65 <!-- 加载更多 -->
65 <block wx:if="{{is_show_more==0}}"> 66 <block wx:if="{{is_show_more==0}}">
@@ -78,9 +79,7 @@ @@ -78,9 +79,7 @@
78 </view> 79 </view>
79 <view class="flex-center receive" wx:if="{{is_load && s_num}}"> 80 <view class="flex-center receive" wx:if="{{is_load && s_num}}">
80 <view class="flex-center"> 81 <view class="flex-center">
81 - <view>已有</view>  
82 - <view>{{s_num}}</view>  
83 - <view>人领取了任务</view> 82 + <view>已有 {{s_num}}人领取了任务</view>
84 </view> 83 </view>
85 84
86 </view> 85 </view>
@@ -105,5 +104,7 @@ @@ -105,5 +104,7 @@
105 104
106 </view> 105 </view>
107 </view> 106 </view>
  107 +<!-- 引入提示组件 -->
  108 +<warn id="warn"></warn>
108 <!-- 制作一个圆球导航 --> 109 <!-- 制作一个圆球导航 -->
109 <nav_b id="nav_b"></nav_b> 110 <nav_b id="nav_b"></nav_b>
110 \ No newline at end of file 111 \ No newline at end of file
pages/user/assistance/assistance.wxss
@@ -131,3 +131,9 @@ page { @@ -131,3 +131,9 @@ page {
131 .receive { 131 .receive {
132 padding-bottom: 50rpx; 132 padding-bottom: 50rpx;
133 } 133 }
  134 +.tesk_list{
  135 + width: 100%;
  136 + max-height: 335rpx;
  137 + overflow: hidden;
  138 + overflow-y:auto;
  139 +}
134 \ No newline at end of file 140 \ No newline at end of file
pages/user/assistance/task_assistance.wxml
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 58
59 </view> 59 </view>
60 <!-- 底部列表 --> 60 <!-- 底部列表 -->
61 -<view style="margin-top:{{is_user_task!=null?100:50}}rpx"> 61 +<view style="margin-top:{{is_user_task!=null?130:35}}rpx">
62 <!-- 标题 --> 62 <!-- 标题 -->
63 63
64 <view class="flex-vertical-between fs28 padding head"> 64 <view class="flex-vertical-between fs28 padding head">
@@ -142,9 +142,7 @@ @@ -142,9 +142,7 @@
142 <view class="line"></view> 142 <view class="line"></view>
143 </view> 143 </view>
144 <view class="flex-center white" style="margin-top: 20rpx;" wx:if="{{usercount>0}}"> 144 <view class="flex-center white" style="margin-top: 20rpx;" wx:if="{{usercount>0}}">
145 - <view>已有</view>  
146 - <view>{{usercount}}</view>  
147 - <view>人领取了任务</view> 145 + <view>已有{{usercount}}人领取了任务</view>
148 </view> 146 </view>
149 </view> 147 </view>
150 148
pages/user/assistance/task_assistance.wxss
@@ -8,7 +8,7 @@ page { @@ -8,7 +8,7 @@ page {
8 8
9 .top-back { 9 .top-back {
10 width: 100%; 10 width: 100%;
11 - height: 60%; 11 + height:70%;
12 background-repead: no-repead; 12 background-repead: no-repead;
13 background-size: 100% 100%; 13 background-size: 100% 100%;
14 } 14 }
@@ -36,7 +36,7 @@ page { @@ -36,7 +36,7 @@ page {
36 } 36 }
37 37
38 .task-number { 38 .task-number {
39 - margin-top: 50rpx; 39 + margin-top: 35rpx;
40 } 40 }
41 41
42 .task_clike { 42 .task_clike {
pages/user/coupons/coupons.js
@@ -57,6 +57,7 @@ Page({ @@ -57,6 +57,7 @@ Page({
57 b_isuse_arr:null,//包邮券的已使用的内容 57 b_isuse_arr:null,//包邮券的已使用的内容
58 58
59 isloading:0, //正在加载中的代码 59 isloading:0, //正在加载中的代码
  60 + isset:0,
60 }, 61 },
61 // 点击选中二维码 62 // 点击选中二维码
62 click: function(e) { 63 click: function(e) {
@@ -194,7 +195,7 @@ Page({ @@ -194,7 +195,7 @@ Page({
194 b_isuse_arr.push(b_arr[i]); 195 b_isuse_arr.push(b_arr[i]);
195 } 196 }
196 } 197 }
197 - data.cashcount= data.cashcount+b_arr.length; //加上包邮券的数量 198 + data.cashcount= data.cashcount+b_can_arr.length; //加上包邮券的数量
198 th.data.b_can_arr=b_can_arr; //可使用 199 th.data.b_can_arr=b_can_arr; //可使用
199 th.data.b_out_arr=b_out_arr; //过期 200 th.data.b_out_arr=b_out_arr; //过期
200 th.data.b_isuse_arr=b_isuse_arr; //已使用 201 th.data.b_isuse_arr=b_isuse_arr; //已使用
@@ -235,7 +236,7 @@ Page({ @@ -235,7 +236,7 @@ Page({
235 if(big_arr.length==0 && this.data.b_can_arr){ 236 if(big_arr.length==0 && this.data.b_can_arr){
236 big_arr=this.data.b_can_arr; 237 big_arr=this.data.b_can_arr;
237 } 238 }
238 - init_num=this.data.b_can_arr.length; 239 + if(this.data.b_can_arr) init_num=this.data.b_can_arr.length;
239 240
240 wx.showLoading(); th.data.isloading=1; 241 wx.showLoading(); th.data.isloading=1;
241 getApp().request.promiseGet("/api/weshop/users/listQuan", { 242 getApp().request.promiseGet("/api/weshop/users/listQuan", {
@@ -246,6 +247,8 @@ Page({ @@ -246,6 +247,8 @@ Page({
246 var a = res.data; 247 var a = res.data;
247 val = a.data.total; 248 val = a.data.total;
248 var details = a.data.pageData; 249 var details = a.data.pageData;
  250 +
  251 + th.setData({isset:1});
249 252
250 //没有找到优惠券的时候 253 //没有找到优惠券的时候
251 if (details.length == 0 && th.data.current_page==1) { 254 if (details.length == 0 && th.data.current_page==1) {
@@ -289,6 +292,7 @@ Page({ @@ -289,6 +292,7 @@ Page({
289 }, 292 },
290 293
291 overdue:function(){ 294 overdue:function(){
  295 +
292 if(this.data.isloading) return; 296 if(this.data.isloading) return;
293 297
294 var len = this.data.details.length; 298 var len = this.data.details.length;
@@ -348,7 +352,6 @@ Page({ @@ -348,7 +352,6 @@ Page({
348 }); 352 });
349 353
350 354
351 -  
352 setTimeout(function () { 355 setTimeout(function () {
353 if(th.data.current_page==1) details=big_arr; 356 if(th.data.current_page==1) details=big_arr;
354 for (var i = 0; i < details.length; i++) { 357 for (var i = 0; i < details.length; i++) {
pages/user/coupons/coupons.wxml
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 (<text class='y_sz'>{{number}}</text>)</view> 20 (<text class='y_sz'>{{number}}</text>)</view>
21 </view> 21 </view>
22 22
23 -<view class='noCoupons' wx:if='{{details.length==0}}'> 23 +<view class='noCoupons' wx:if='{{details.length==0 && isset}}'>
24 <image src='{{iurl}}miniapp/images/user/wqnone.png'></image> 24 <image src='{{iurl}}miniapp/images/user/wqnone.png'></image>
25 <view class='no_wz1'>没有微券?</view> 25 <view class='no_wz1'>没有微券?</view>
26 <view class='no_wz2'>快去兑换吧</view> 26 <view class='no_wz2'>快去兑换吧</view>
pages/user/index/index.js
@@ -102,7 +102,7 @@ Page({ @@ -102,7 +102,7 @@ Page({
102 102
103 /*-----获取会员包邮券的数量-----*/ 103 /*-----获取会员包邮券的数量-----*/
104 rq.get("/api/weshop/userfeemail/page", { 104 rq.get("/api/weshop/userfeemail/page", {
105 - data: { user_id: e.user_id, store_id: os.stoid, pageSize:1}, 105 + data: { user_id: e.user_id, store_id: os.stoid, pageSize:1,isuse:0},
106 success: function (su) { 106 success: function (su) {
107 if (su.data.code == 0) { 107 if (su.data.code == 0) {
108 th.setData({ byquan: parseInt(su.data.data.total)}); 108 th.setData({ byquan: parseInt(su.data.data.total)});
@@ -505,7 +505,6 @@ Page({ @@ -505,7 +505,6 @@ Page({
505 505
506 // } 506 // }
507 // }) 507 // })
508 -  
509 } 508 }
510 509
511 510