sui 5 роки тому
джерело
коміт
820774eccb
1 змінених файлів з 15 додано та 9 видалено
  1. +15
    -9
      496_dongfengqichen/pages/star/star.js

+ 15
- 9
496_dongfengqichen/pages/star/star.js Переглянути файл

@@ -122,22 +122,28 @@ Page({
}
},
gettime(){
app.wxRequest(app.globalData.urlRoot + "certificationInfo/getCertificationNum", {}, res => {
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationCount", {}, res => {
console.log(res)
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({
numList: [4,0,0,0]
stopNumber: '0000'
})
}else{
}
if (this.data.stopNumber < 10000) {
this.setData({
numList: [4, 0, 0, 0]
})
} else {
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);
},

Завантаження…
Відмінити
Зберегти