| } | } | ||||
| }, | }, | ||||
| gettime(){ | gettime(){ | ||||
| app.wxRequest(app.globalData.urlRoot + "certificationInfo/getCertificationNum", {}, res => { | |||||
| app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationCount", {}, res => { | |||||
| console.log(res) | console.log(res) | ||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| this.setData({ | |||||
| stopNumber: res.data ? res.data.certificationNum : '0000' | |||||
| }) | |||||
| if(this.data.stopNumber<10000){ | |||||
| if (res.data){ | |||||
| this.setData({ | |||||
| stopNumber: res.data.total ? res.data.total : '0000' | |||||
| }) | |||||
| } else { | |||||
| this.setData({ | this.setData({ | ||||
| numList: [4,0,0,0] | |||||
| stopNumber: '0000' | |||||
| }) | }) | ||||
| }else{ | |||||
| } | |||||
| if (this.data.stopNumber < 10000) { | |||||
| this.setData({ | |||||
| numList: [4, 0, 0, 0] | |||||
| }) | |||||
| } else { | |||||
| this.setData({ | this.setData({ | ||||
| numList: [0,4,0,0,0] | |||||
| numList: [0, 4, 0, 0, 0] | |||||
| }) | }) | ||||
| } | } | ||||
| this.getNumber=setInterval(this.vCodeDownTime,20); | |||||
| this.getNumber = setInterval(this.vCodeDownTime, 20); | |||||
| } | } | ||||
| }, this); | }, this); | ||||
| }, | }, |