| @@ -9,6 +9,7 @@ Page({ | |||
| */ | |||
| data: { | |||
| imgUrl: app.globalData.urlStatic,//图片路径 | |||
| httpState:false, | |||
| buyState:false, | |||
| ruleShow: false,//是否显示游戏玩法 | |||
| ruleCloseShow: true,//是否显示游戏玩法关闭按钮 | |||
| @@ -167,7 +168,12 @@ Page({ | |||
| this.beginGame(); | |||
| }, | |||
| beginGame: function () {//开始游戏 | |||
| if(this.data.httpState){ | |||
| return; | |||
| } | |||
| this.data.httpState = true; | |||
| app.wxRequest(app.globalData.urlRoot + "dollGame/beginGame", {}, res => { | |||
| this.data.httpState = false; | |||
| if (res.code == 200) { | |||
| this.data.gameSign = res.data.sign; | |||
| this.setData({ | |||
| @@ -14,6 +14,7 @@ Page({ | |||
| verificationText:null, | |||
| getMobileBtnShow:true, | |||
| agreement:false,//是否显示协议 | |||
| httpState:false, | |||
| }, | |||
| /** | |||
| @@ -170,7 +171,12 @@ Page({ | |||
| }) | |||
| return; | |||
| } | |||
| app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", { mobile: this.data.mobileText, captcha: this.data.verificationText }, res => { | |||
| if(this.data.httpState){ | |||
| return; | |||
| } | |||
| this.data.httpState = true; | |||
| app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", { mobile: this.data.mobileText, captcha: this.data.verificationText }, res => { | |||
| this.data.httpState = false; | |||
| if (res.code == 200) { | |||
| wx.setStorageSync('userMobile', this.data.mobileText ); | |||
| app.globalData.userMobile = this.data.mobileText ; | |||
| @@ -17,7 +17,8 @@ Page({ | |||
| storeArr: [],//专营店数据 | |||
| storeValue: 0,//选中的专营店下标 | |||
| realname:"", | |||
| jobDetail:"" | |||
| jobDetail:"", | |||
| httpState:false, | |||
| }, | |||
| /** | |||
| @@ -194,6 +195,10 @@ Page({ | |||
| }) | |||
| return; | |||
| } | |||
| if(this.data.httpState){ | |||
| return; | |||
| } | |||
| this.data.httpState = true; | |||
| var data = { | |||
| realName:this.data.realname, | |||
| // jobId: this.data.jobList[this.data.jobValue].jobId, | |||
| @@ -204,6 +209,7 @@ Page({ | |||
| province: this.data.provinceDataArr[0][this.data.provinceDataValue[0]] | |||
| } | |||
| app.wxRequest(app.globalData.urlRoot + "certificationInfo/submitCertificationInfoData", data,res=>{ | |||
| this.data.httpState = false; | |||
| if (res.code == 200) { | |||
| if (!app.globalData.authenticationStatus) { | |||
| app.globalData.authenticationStatus = {}; | |||
| @@ -28,6 +28,7 @@ Component({ | |||
| }, | |||
| isAddress: false,//是否有地址 | |||
| marginT: 0, | |||
| submitDataState:false | |||
| }, | |||
| attached:function(){ | |||
| if (app.globalData.userPhoneType == "ios") { | |||
| @@ -185,7 +186,12 @@ Component({ | |||
| title: '保存中', | |||
| mask: true | |||
| }) | |||
| if(this.data.submitDataState){ | |||
| return; | |||
| } | |||
| this.data.submitDataState = true; | |||
| app.wxRequest(app.globalData.urlRoot + "userInfo/updateUserInfo", this.data.userData, res => { | |||
| this.data.submitDataState = false; | |||
| wx.hideLoading(); | |||
| if (res.code == 200) { | |||
| app.globalData.userInfoData.avatarUrl = this.data.userData.avatarUrl; | |||