跳转登陆页bug
This commit is contained in:
@@ -6,9 +6,9 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// socketUrl = "ws://localhost:6001/";
|
// socketUrl = "ws://localhost:6001/";
|
||||||
// baseUrl = "https://twin-ui.com/demo/";
|
// baseUrl = "https://twin-ui.com/demo/";
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||||
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
// baseUrl = "http://192.168.110.110:9200/pb/"; // 磊哥
|
// baseUrl = "http://192.168.110.110:9200/pb/"; // 磊哥
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
// baseUrl = "http://59.110.212.44:9200/pb/";
|
||||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://192.168.110.110:9200/pb/";
|
// baseUrl = "http://192.168.110.110:9200/pb/";
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ let $http = new request({
|
|||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
// 'project_token': base.projectToken, //项目token(可删除)
|
// 'project_token': base.projectToken, //项目token(可删除)
|
||||||
},
|
},
|
||||||
// timeout:'360000'
|
timeout:'15000' // 15秒
|
||||||
|
|
||||||
});
|
});
|
||||||
// 添加获取七牛云token的方法
|
// 添加获取七牛云token的方法
|
||||||
|
|||||||
@@ -1335,6 +1335,13 @@
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
console.log(e, "获取目录数据报错");
|
console.log(e, "获取目录数据报错");
|
||||||
|
// if(e.statusCode == 0){
|
||||||
|
// uni.showToast({
|
||||||
|
// title:'获取课程信息失败,请稍后尝试',
|
||||||
|
// icon:'none',
|
||||||
|
// duration: 5000
|
||||||
|
// })
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
goBuy() {
|
goBuy() {
|
||||||
|
|||||||
@@ -36,9 +36,19 @@ export const dispatchRequest = function(requestInfo) {
|
|||||||
errMsg: "请求超时,请重新尝试",
|
errMsg: "请求超时,请重新尝试",
|
||||||
statusCode: 0,
|
statusCode: 0,
|
||||||
});
|
});
|
||||||
uni.navigateTo({
|
console.log('requestInfo.url',requestInfo.url);
|
||||||
url: "/pages/user/login"
|
if(!requestInfo.url.includes('sociology/course/saveCoursePosition')){
|
||||||
});
|
uni.showToast({
|
||||||
|
title:'请求超时,请重新尝试',
|
||||||
|
icon:'none',
|
||||||
|
duration: 5000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// console.log('');
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pages/user/login"
|
||||||
|
// });
|
||||||
} else {
|
} else {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user