=chenming vor 5 Jahren
Ursprung
Commit
768be60e12
1 geänderte Dateien mit 15 neuen und 9 gelöschten Zeilen
  1. +15
    -9
      496_dongfengqichen/pages/star/star.js

+ 15
- 9
496_dongfengqichen/pages/star/star.js Datei anzeigen

} }
}, },
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);
}, },

Laden…
Abbrechen
Speichern