@@ -65,7 +65,7 @@ | |||||
"navigationBarTextStyle": "white" | "navigationBarTextStyle": "white" | ||||
}, | }, | ||||
"networkTimeout": { | "networkTimeout": { | ||||
"request": 10000, | |||||
"request": 1000, | |||||
"downloadFile": 10000 | "downloadFile": 10000 | ||||
}, | }, | ||||
"debug": false | "debug": false |
@@ -111,6 +111,13 @@ Page({ | |||||
title: weapNote.firstpage.title | title: weapNote.firstpage.title | ||||
}) | }) | ||||
}) | }) | ||||
.catch(err => { | |||||
console.log(err); | |||||
that.setData({ | |||||
loading: false, | |||||
loadingtext: "网络异常,请检查您的网络设置" | |||||
}) | |||||
}); | |||||
}, | }, | ||||
onShow:function(){ | onShow:function(){ | ||||
this.setData({ | this.setData({ | ||||
@@ -50,8 +50,7 @@ class HttpBasics { | |||||
fail: err => { | fail: err => { | ||||
// wx.hideLoading(); | // wx.hideLoading(); | ||||
reject(err); | reject(err); | ||||
}, | |||||
complete: res => {} | |||||
} | |||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||