Commit 049a3ddea8be8f874a025b6b4dbcc7c0155b285e
1 parent
6592089b
OA单的优化
Showing
7 changed files
with
68 additions
and
38 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
@@ -1356,6 +1356,12 @@ Page({ | @@ -1356,6 +1356,12 @@ Page({ | ||
1356 | url = `/pages/giftpack/giftpacklist/giftpacklist?isBuy=0&orderSn=${ordersn}&lbId=${buyreceive_id}`; | 1356 | url = `/pages/giftpack/giftpacklist/giftpacklist?isBuy=0&orderSn=${ordersn}&lbId=${buyreceive_id}`; |
1357 | break; | 1357 | break; |
1358 | }; | 1358 | }; |
1359 | + //-- 每月礼包的优化,去列表领取 -- | ||
1360 | + case 7: { | ||
1361 | + url = `/packageE/pages/user/monthgiftbag/monthgiftbag`; | ||
1362 | + break; | ||
1363 | + }; | ||
1364 | + | ||
1359 | }; | 1365 | }; |
1360 | app.goto(url); | 1366 | app.goto(url); |
1361 | }, | 1367 | }, |
packageD/pages/user/deposit/prepaid/msg/msg.js
@@ -9,6 +9,7 @@ Page({ | @@ -9,6 +9,7 @@ Page({ | ||
9 | // timer: '',//定时器名字 | 9 | // timer: '',//定时器名字 |
10 | // countDownNum: '3'//倒计时初始值 | 10 | // countDownNum: '3'//倒计时初始值 |
11 | iurl: o.imghost, | 11 | iurl: o.imghost, |
12 | + is_nd_pw:0 | ||
12 | }, | 13 | }, |
13 | 14 | ||
14 | 15 | ||
@@ -16,7 +17,11 @@ Page({ | @@ -16,7 +17,11 @@ Page({ | ||
16 | * 生命周期函数--监听页面加载 | 17 | * 生命周期函数--监听页面加载 |
17 | */ | 18 | */ |
18 | onLoad: function (options) { | 19 | onLoad: function (options) { |
19 | - | 20 | + |
21 | + if(options.is_nd_pw){ | ||
22 | + this.data.is_nd_pw=options.is_nd_pw; | ||
23 | + } | ||
24 | + | ||
20 | }, | 25 | }, |
21 | 26 | ||
22 | /** | 27 | /** |
@@ -30,37 +35,43 @@ Page({ | @@ -30,37 +35,43 @@ Page({ | ||
30 | * 生命周期函数--监听页面显示 | 35 | * 生命周期函数--监听页面显示 |
31 | */ | 36 | */ |
32 | onShow: function () { | 37 | onShow: function () { |
33 | - getApp().check_can_share(); | ||
34 | - wx.setNavigationBarTitle({ | ||
35 | - title: "支付成功", | ||
36 | - }) | 38 | + getApp().check_can_share(); |
39 | + wx.setNavigationBarTitle({ | ||
40 | + title: "支付成功", | ||
41 | + }) | ||
42 | + | ||
43 | + let th=this; | ||
44 | + //判断密码是不是有开始 | ||
45 | + if(this.data.is_nd_pw){ | ||
46 | + getApp().request.get("/api/weshop/users/getAndUpdateUser/" + os.stoid + "/" + getApp().globalData.user_id, { | ||
47 | + success: function (src) { | ||
48 | + var a = src.data.data; | ||
49 | + if(!a.vipnopwd) { | ||
50 | + | ||
51 | + var my_confirm = th.selectComponent("#my_confirm"); //组件的id | ||
52 | + my_confirm.open( | ||
53 | + "是否启用消费时密码验证?", | ||
54 | + "否", | ||
55 | + "是", | ||
56 | + function () { | ||
57 | + my_confirm.open_cancel(0); | ||
58 | + }, | ||
59 | + function () { | ||
60 | + let url = '/pages/user/userinfo/userinfo?isstcsp=1'; | ||
61 | + wx.redirectTo({url: url,}) //跳到非tabbar页 | ||
62 | + } | ||
63 | + ); | ||
64 | + } | ||
65 | + | ||
66 | + } | ||
67 | + }) | ||
68 | + } | ||
69 | + | ||
70 | + | ||
71 | + | ||
37 | }, | 72 | }, |
38 | - // countDown: function () { | ||
39 | - // let that = this; | ||
40 | - // let countDownNum = that.data.countDownNum;//获取倒计时初始值 | ||
41 | - // //如果将定时器设置在外面,那么用户就看不到countDownNum的数值动态变化,所以要把定时器存进data里面 | ||
42 | - // that.setData({ | ||
43 | - // timer: setInterval(function () {//这里把setInterval赋值给变量名为timer的变量 | ||
44 | - // //每隔一秒countDownNum就减一,实现同步 | ||
45 | - // countDownNum--; | ||
46 | - // //然后把countDownNum存进data,好让用户知道时间在倒计着 | ||
47 | - // that.setData({ | ||
48 | - // countDownNum: countDownNum | ||
49 | - // }) | ||
50 | - // //在倒计时还未到0时,这中间可以做其他的事情,按项目需求来 | ||
51 | - // if (countDownNum == 0) { | ||
52 | - // //这里特别要注意,计时器是始终一直在走的,如果你的时间为0,那么就要关掉定时器!不然相当耗性能 | ||
53 | - // //因为timer是存在data里面的,所以在关掉时,也要在data里取出后再关闭 | ||
54 | - // clearInterval(that.data.timer); | ||
55 | - // //关闭定时器之后,可作其他处理codes go here | ||
56 | - // //--跳到绑定页面-- | ||
57 | - // wx.navigateTo({ | ||
58 | - // url: '../../../integral/jf', | ||
59 | - // }) | ||
60 | - // } | ||
61 | - // }, 500) | ||
62 | - // }) | ||
63 | - | 73 | + |
74 | + | ||
64 | click:function(){ | 75 | click:function(){ |
65 | wx.redirectTo({ | 76 | wx.redirectTo({ |
66 | //url: '../../../integral/jf', | 77 | //url: '../../../integral/jf', |
packageD/pages/user/deposit/prepaid/msg/msg.json
packageD/pages/user/deposit/prepaid/msg/msg.wxml
packageD/pages/user/deposit/prepaid/prepaid.js
@@ -183,8 +183,8 @@ Page({ | @@ -183,8 +183,8 @@ Page({ | ||
183 | 183 | ||
184 | var buynum = 1; | 184 | var buynum = 1; |
185 | console.log(money, "有进来吗预存劵", advancek, user_id, store_id ); | 185 | console.log(money, "有进来吗预存劵", advancek, user_id, store_id ); |
186 | - var e = this, | ||
187 | - perpaid = ""; | 186 | + var e = this, perpaid = ""; |
187 | + let th=this; | ||
188 | await getApp().request.promiseGet("/api/weshop/users/getPay", { | 188 | await getApp().request.promiseGet("/api/weshop/users/getPay", { |
189 | data: { | 189 | data: { |
190 | account: money, | 190 | account: money, |
@@ -220,7 +220,7 @@ Page({ | @@ -220,7 +220,7 @@ Page({ | ||
220 | e.jumpPaymentPage(); | 220 | e.jumpPaymentPage(); |
221 | }, function (e) { | 221 | }, function (e) { |
222 | 222 | ||
223 | - this.data.paying=0; | 223 | + th.data.paying=0; |
224 | wx.showToast({ | 224 | wx.showToast({ |
225 | title: e, | 225 | title: e, |
226 | icon: 'none', | 226 | icon: 'none', |
@@ -248,10 +248,11 @@ Page({ | @@ -248,10 +248,11 @@ Page({ | ||
248 | // }) | 248 | // }) |
249 | }) | 249 | }) |
250 | }, | 250 | }, |
251 | + | ||
251 | //------支付成功页面-------- | 252 | //------支付成功页面-------- |
252 | jumpPaymentPage: function () { | 253 | jumpPaymentPage: function () { |
253 | wx.redirectTo({ | 254 | wx.redirectTo({ |
254 | - url:"msg/msg", | 255 | + url:"msg/msg?is_nd_pw=1", |
255 | }); | 256 | }); |
256 | }, | 257 | }, |
257 | 258 |
pages/user/userinfo/userinfo.js
@@ -75,7 +75,8 @@ Page({ | @@ -75,7 +75,8 @@ Page({ | ||
75 | canIUseGetUserProfile: false, | 75 | canIUseGetUserProfile: false, |
76 | getusercode_vailtime:10,//会员二维码时效 | 76 | getusercode_vailtime:10,//会员二维码时效 |
77 | 77 | ||
78 | - sele_ing:0 | 78 | + sele_ing:0, |
79 | + set_isstcsp:0 | ||
79 | 80 | ||
80 | }, | 81 | }, |
81 | //通过路径跳转到其他页面 | 82 | //通过路径跳转到其他页面 |
@@ -654,6 +655,10 @@ Page({ | @@ -654,6 +655,10 @@ Page({ | ||
654 | canIUseGetUserProfile: true | 655 | canIUseGetUserProfile: true |
655 | }) | 656 | }) |
656 | } | 657 | } |
658 | + //如果有指定要启用密码的时候 | ||
659 | + if(t.isstcsp){ | ||
660 | + this.setData({set_isstcsp:1,ispwhid:0}); | ||
661 | + } | ||
657 | 662 | ||
658 | }, | 663 | }, |
659 | 664 | ||
@@ -797,6 +802,9 @@ Page({ | @@ -797,6 +802,9 @@ Page({ | ||
797 | a.staffTel=choice_guide.Tel; | 802 | a.staffTel=choice_guide.Tel; |
798 | } | 803 | } |
799 | 804 | ||
805 | + if(e.data.set_isstcsp){ | ||
806 | + a.vipnopwd=1; | ||
807 | + } | ||
800 | 808 | ||
801 | e.setData({ | 809 | e.setData({ |
802 | phone: a.mobile, | 810 | phone: a.mobile, |
pages/user/userinfo/userinfo.wxml
@@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
78 | <input bindblur="lose_focus" class="fs28 hion user-txt-right" value="{{consumption}}" password="true" type="number"/> | 78 | <input bindblur="lose_focus" class="fs28 hion user-txt-right" value="{{consumption}}" password="true" type="number"/> |
79 | </block> | 79 | </block> |
80 | <block wx:else> | 80 | <block wx:else> |
81 | - <input bindblur="lose_focus" class="fs28 hion user-txt-right" value="{{consumption}}" type="number"/> | 81 | + <input bindblur="lose_focus" focus="{{set_isstcsp?true:false}}" class="fs28 hion user-txt-right" value="{{consumption}}" type="number"/> |
82 | </block> | 82 | </block> |
83 | 83 | ||
84 | <block wx:if="{{ispwhid}}"> | 84 | <block wx:if="{{ispwhid}}"> |