Commit 82adcae16b0b858fe4bad196464a41cc0d751f91

Authored by yvan.ni
1 parent e48636e8

重复点击的bug优化

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