Commit cc84706956bbdacc0dae399757bfbb9ea26bdc54

Authored by 后端研发-苏明海
2 parents 72dc693d 9b40aa94

Merge branch 'dev' into 'test'

Dev

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