Commit ef14e486dad7619b754c434b8dd05f31e4a2ec2d
1 parent
1a676701
OA单的工作内容的优化
Showing
4 changed files
with
78 additions
and
8 deletions
packageE/pages/user/labels/labels.js
... | ... | @@ -120,7 +120,7 @@ Page({ |
120 | 120 | } |
121 | 121 | |
122 | 122 | if(options.is_reg){ |
123 | - this.data.is_reg=1; | |
123 | + this.setData({is_reg:1}) | |
124 | 124 | } |
125 | 125 | |
126 | 126 | th.query_nolabels(); |
... | ... | @@ -312,12 +312,12 @@ Page({ |
312 | 312 | }, |
313 | 313 | failStatus: function (t) { |
314 | 314 | wx.hideLoading(); |
315 | - th.setData({loading: 0}); | |
315 | + th.setData({loading: 0,is_check:0}); | |
316 | 316 | return app.my_warnning("授权登入失败,请稍后再试!", 0, that); |
317 | 317 | }, |
318 | 318 | fail: function (t) { |
319 | 319 | wx.hideLoading(); |
320 | - th.setData({loading: 0}); | |
320 | + th.setData({loading: 0,is_check:0}); | |
321 | 321 | return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1; |
322 | 322 | } |
323 | 323 | }); |
... | ... | @@ -416,5 +416,54 @@ Page({ |
416 | 416 | */ |
417 | 417 | onShow: function() { |
418 | 418 | |
419 | + }, | |
420 | + | |
421 | + //会员点击了跳过,就要注册 | |
422 | + goto_user(e){ | |
423 | + var th=this; | |
424 | + if(this.data.is_check) return false; | |
425 | + wx.showLoading({ | |
426 | + title: "处理中.", | |
427 | + mask: true | |
428 | + }) | |
429 | + | |
430 | + this.setData({ is_check: 1 }) | |
431 | + | |
432 | + app.request.get("/api/weshop/users/thirdLogin", { | |
433 | + data: getApp().globalData.zc_dd, | |
434 | + success: function (e) { | |
435 | + wx.hideLoading(); | |
436 | + if (e.data.code == 0) { | |
437 | + app.globalData.user_id = e.data.data.user_id; | |
438 | + } else { | |
439 | + return app.showWarning("授权登入失败!" + e.data.msg); | |
440 | + } | |
441 | + getApp().globalData.login_back = 1; | |
442 | + wx.setStorageSync("userinfo", e.data.data); | |
443 | + wx.setStorageSync("isAuth", !0), app.globalData.userInfo = e.data.data, app.globalData.userInfo.head_pic = s.getFullUrl(app.globalData.userInfo.head_pic); | |
444 | + | |
445 | + //-- 注册的跳转 -- | |
446 | + getApp().go_to_page(th.data.is_reg,function (){ | |
447 | + // wx.navigateBack({ delta: 1 }) | |
448 | + wx.reLaunch({ | |
449 | + url: '/pages/user/index/index', | |
450 | + }) | |
451 | + }) | |
452 | + | |
453 | + }, | |
454 | + failStatus: function (t) { | |
455 | + wx.hideLoading(); | |
456 | + th.setData({loading: 0,is_check:0}); | |
457 | + return app.my_warnning("授权登入失败,请稍后再试!", 0, that); | |
458 | + }, | |
459 | + fail: function (t) { | |
460 | + wx.hideLoading(); | |
461 | + th.setData({loading: 0,is_check:0}); | |
462 | + return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1; | |
463 | + } | |
464 | + }); | |
465 | + | |
466 | + | |
419 | 467 | } |
468 | + | |
420 | 469 | }) |
421 | 470 | \ No newline at end of file | ... | ... |
packageE/pages/user/labels/labels.wxml
... | ... | @@ -4,9 +4,20 @@ |
4 | 4 | <!-- 兴趣标签标题 --> |
5 | 5 | <view class="flex-vertical-between labels_head"> |
6 | 6 | <view class="fs36">兴趣标签</view> |
7 | - <view class="skip flex-center fs28" data-url="/pages/user/userinfo/userinfo" bindtap="goto"> | |
8 | - <view>关闭</view> | |
9 | - </view> | |
7 | + | |
8 | + <!-- 如果是注册的时候 --> | |
9 | + <block wx:if="{{is_reg }}"> | |
10 | + <view wx:if="{{!label_required}}" class="skip flex-center fs28" data-url="/pages/user/userinfo/userinfo" bindtap="goto_user"> | |
11 | + <view>跳过</view> | |
12 | + </view> | |
13 | + </block> | |
14 | + <block wx:else> | |
15 | + <view class="skip flex-center fs28" data-url="/pages/user/userinfo/userinfo" bindtap="goto"> | |
16 | + <view>关闭</view> | |
17 | + </view> | |
18 | + </block> | |
19 | + | |
20 | + | |
10 | 21 | |
11 | 22 | </view> |
12 | 23 | ... | ... |
packageE/pages/user/monthgiftbag/monthgiftbag.wxml
... | ... | @@ -66,6 +66,10 @@ |
66 | 66 | <block wx:if="{{item.payIntegral>0}}"> |
67 | 67 | <text>{{item.payIntegral+"积分"}}</text> |
68 | 68 | </block> |
69 | + | |
70 | + | |
71 | + <!-- (121658)OA单规定取消,2023-12-15 --> | |
72 | + <!-- | |
69 | 73 | <block wx:if="{{item.actType==1}}"> |
70 | 74 | <text>{{item.actTitle}}</text> |
71 | 75 | </block> |
... | ... | @@ -80,7 +84,9 @@ |
80 | 84 | </block> |
81 | 85 | <block wx:if="{{item.actType==5}}"> |
82 | 86 | <text>{{item.actTitle}}</text> |
83 | - </block> | |
87 | + </block>--> | |
88 | + | |
89 | + | |
84 | 90 | </view> |
85 | 91 | <view class="content_ware_price no_line_c"> |
86 | 92 | <text >{{"购买时间:"+item.pay_time}}</text> | ... | ... |
pages/giftpack/mygiftpack/mygiftpack.wxml
... | ... | @@ -63,6 +63,9 @@ |
63 | 63 | <block wx:if="{{item.actType==0&item.payIntegral>0}}"> |
64 | 64 | <text>{{item.payIntegral+"积分"}}</text> |
65 | 65 | </block> |
66 | + | |
67 | + <!-- (121658)OA单规定取消,2023-12-15 --> | |
68 | + <!-- | |
66 | 69 | <block wx:if="{{item.actType==1}}"> |
67 | 70 | <text>{{item.actTitle}}</text> |
68 | 71 | </block> |
... | ... | @@ -77,7 +80,8 @@ |
77 | 80 | </block> |
78 | 81 | <block wx:if="{{item.actType==5}}"> |
79 | 82 | <text>{{item.actTitle}}</text> |
80 | - </block> | |
83 | + </block>--> | |
84 | + | |
81 | 85 | </view> |
82 | 86 | <view class="content_ware_price no_line_c"> |
83 | 87 | <text >{{"零售价:¥"+item.giftPosPrice}}</text> | ... | ... |