|
|
@@ -113,10 +113,12 @@ Page({ |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err); |
|
|
|
that.setData({ |
|
|
|
loading: false, |
|
|
|
loadingtext: "网络异常,请检查您的网络设置" |
|
|
|
}) |
|
|
|
if (err.errMsg == '请求超时,请检查您的网络设置!') { |
|
|
|
that.setData({ |
|
|
|
loading: false, |
|
|
|
loadingtext: "请求超时,请检查您的网络设置!" |
|
|
|
}) |
|
|
|
} |
|
|
|
wx.showToast({ |
|
|
|
title: err.errMsg, |
|
|
|
icon: 'none', |
|
|
@@ -237,10 +239,10 @@ Page({ |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err); |
|
|
|
if(err.errMsg=='request:fail timeout'){ |
|
|
|
if (err.errMsg =='请求超时,请检查您的网络设置!'){ |
|
|
|
that.setData({ |
|
|
|
loading:false, |
|
|
|
loadingtext:"网络异常,请检查您的网络设置" |
|
|
|
loadingtext:"请求超时,请检查您的网络设置!" |
|
|
|
}) |
|
|
|
} |
|
|
|
if (err.code == 11004) { |
|
|
|