Commit b5bd4a6a authored by 潘永坪's avatar 潘永坪

其实修改

parent cf40545b
...@@ -23,7 +23,7 @@ const request = (url = '', data = {},showLoad) => { ...@@ -23,7 +23,7 @@ const request = (url = '', data = {},showLoad) => {
success(res) { success(res) {
uni.hideLoading() uni.hideLoading()
if(res.statusCode=='200'){ if(res.statusCode=='200'){
//请求成功,状态成功 //请求成功,状态正确
resolve(res.data) resolve(res.data)
}else{ }else{
//请求成功,状态不对 //请求成功,状态不对
...@@ -43,7 +43,7 @@ const request = (url = '', data = {},showLoad) => { ...@@ -43,7 +43,7 @@ const request = (url = '', data = {},showLoad) => {
let networkType = res.networkType let networkType = res.networkType
if (networkType === 'none') {//none是没有网络 if (networkType === 'none') {//none是没有网络
uni.showToast({ uni.showToast({
title:'网络断开', title:'网络异常',
icon: 'none', icon: 'none',
duration:4000 duration:4000
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment