Commit 1f08cf6fcf65dc3d86be402c196328c90a5eb0e6

Authored by vking
1 parent 6f13014c

blue ui other

Showing 1 changed file with 12 additions and 1 deletions
... ... @@ -23,7 +23,9 @@ Component({
*/
data: {
},
attached(){
this.requestTimeout()
},
/**
* 组件的方法列表
*/
... ... @@ -45,5 +47,14 @@ Component({
url: '/'+p.route+'?'+param.join('&')
})
},
requestTimeout(){
setTimeout(()=>{
if(this.data.loading==0){
this.setData({
loading:-1,
})
}
},10*1000)
},
}
})
... ...