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({ @@ -23,7 +23,9 @@ Component({
23 */ 23 */
24 data: { 24 data: {
25 }, 25 },
26 - 26 + attached(){
  27 + this.requestTimeout()
  28 + },
27 /** 29 /**
28 * 组件的方法列表 30 * 组件的方法列表
29 */ 31 */
@@ -45,5 +47,14 @@ Component({ @@ -45,5 +47,14 @@ Component({
45 url: '/'+p.route+'?'+param.join('&') 47 url: '/'+p.route+'?'+param.join('&')
46 }) 48 })
47 }, 49 },
  50 + requestTimeout(){
  51 + setTimeout(()=>{
  52 + if(this.data.loading==0){
  53 + this.setData({
  54 + loading:-1,
  55 + })
  56 + }
  57 + },10*1000)
  58 + },
48 } 59 }
49 }) 60 })