Commit 82adcae16b0b858fe4bad196464a41cc0d751f91
1 parent
e48636e8
重复点击的bug优化
Showing
2 changed files
with
15 additions
and
1 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
| @@ -3914,7 +3914,7 @@ Page({ | @@ -3914,7 +3914,7 @@ Page({ | ||
| 3914 | var user_id = getApp().globalData.user_id; | 3914 | var user_id = getApp().globalData.user_id; |
| 3915 | if (!user_id) user_id = 0; | 3915 | if (!user_id) user_id = 0; |
| 3916 | 3916 | ||
| 3917 | - if (prom_type == 3 || prom_type == 0 || prom_type == 2 || prom_type == 5 || prom_type == 7 || prom_type == 9) { | 3917 | + if (prom_type == 3 || prom_type == 0 || prom_type == 2 || prom_type == 5 || prom_type == 7) { |
| 3918 | this.setData({ | 3918 | this.setData({ |
| 3919 | prom_type: 0, isshow: 1, | 3919 | prom_type: 0, isshow: 1, |
| 3920 | }); | 3920 | }); |
| @@ -4078,6 +4078,10 @@ Page({ | @@ -4078,6 +4078,10 @@ Page({ | ||
| 4078 | }) | 4078 | }) |
| 4079 | } | 4079 | } |
| 4080 | 4080 | ||
| 4081 | + if(prom_type==9){ | ||
| 4082 | + this.setData({ isshow: 1, }); | ||
| 4083 | + } | ||
| 4084 | + | ||
| 4081 | // if (prom_type == 4) { | 4085 | // if (prom_type == 4) { |
| 4082 | // //th.setData({is_integral_normal:1}); | 4086 | // //th.setData({is_integral_normal:1}); |
| 4083 | // var rdata = { | 4087 | // var rdata = { |
pages/user/userinfo/userinfo.js
| @@ -75,6 +75,8 @@ Page({ | @@ -75,6 +75,8 @@ Page({ | ||
| 75 | canIUseGetUserProfile: false, | 75 | canIUseGetUserProfile: false, |
| 76 | getusercode_vailtime:10,//会员二维码时效 | 76 | getusercode_vailtime:10,//会员二维码时效 |
| 77 | 77 | ||
| 78 | + sele_ing:0 | ||
| 79 | + | ||
| 78 | }, | 80 | }, |
| 79 | //通过路径跳转到其他页面 | 81 | //通过路径跳转到其他页面 |
| 80 | goto: function(e) { | 82 | goto: function(e) { |
| @@ -835,6 +837,10 @@ Page({ | @@ -835,6 +837,10 @@ Page({ | ||
| 835 | }, !0); | 837 | }, !0); |
| 836 | }, | 838 | }, |
| 837 | 839 | ||
| 840 | + onHide:function (){ | ||
| 841 | + this.data.sele_ing=0; | ||
| 842 | + }, | ||
| 843 | + | ||
| 838 | editUserInfo: function(e) { | 844 | editUserInfo: function(e) { |
| 839 | var r = e.currentTarget.dataset.type; | 845 | var r = e.currentTarget.dataset.type; |
| 840 | if (("password" == r || "paypwd" == r) && !this.data.user.mobile) return a.showWarning("请先绑定手机号码"); | 846 | if (("password" == r || "paypwd" == r) && !this.data.user.mobile) return a.showWarning("请先绑定手机号码"); |
| @@ -1040,8 +1046,12 @@ Page({ | @@ -1040,8 +1046,12 @@ Page({ | ||
| 1040 | 1046 | ||
| 1041 | //-- 跳转到获取导购的列表 -- | 1047 | //-- 跳转到获取导购的列表 -- |
| 1042 | go_get_guide:function () { | 1048 | go_get_guide:function () { |
| 1049 | + | ||
| 1050 | + if(this.data.sele_ing) return false; | ||
| 1051 | + this.data.sele_ing=1; | ||
| 1043 | this.check_click_ok(function(){ | 1052 | this.check_click_ok(function(){ |
| 1044 | getApp().goto("/packageB/pages/user/choice_guide/choice_guide"); | 1053 | getApp().goto("/packageB/pages/user/choice_guide/choice_guide"); |
| 1054 | + | ||
| 1045 | },1) | 1055 | },1) |
| 1046 | }, | 1056 | }, |
| 1047 | 1057 |