Commit 368add7d authored by 黄奎's avatar 黄奎

配置

parent d0399fda
......@@ -2,12 +2,12 @@ export default {
install(Vue, options) {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
Vue.prototype.host2 = "http://localhost:5000"
Vue.prototype.host2 = "http://192.168.10.128:8200"//本地
// Vue.prototype.host2 = "http://192.168.10.46:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com"
// Vue.prototype.host2 = "https://mallApi.oytour.com"//测试
//进阶思维后台地址
Vue.prototype.host3 = "http://192.168.10.128:8900"
Vue.prototype.host3 = "http://192.168.10.128:8900"//本地
// Vue.prototype.host3 = "https://jjeduapi.oytour.com"//测试
Vue.prototype.UploadConfig = function() { //本地上传配置
return {
UploadUrl: this.host2.indexOf('mallApi') != -1 ? "https://upload.oytour.com/Upload/AppUpload" : "http://192.168.20.214:8120/Upload/AppUpload",
......@@ -144,16 +144,17 @@ export default {
if (u) {
this.getLogin_t(u)
}
} else if (res.Code != 1) {
} else if (res.Code == 1) {
if (res.Message != '') {
uni.showToast({
title: res.Message,
icon: "none",
});
}
typeof failed == "function" && failed(res.Data);
typeof failed == "function" && failed(res
);
} else {
typeof success == "function" && success(res.Data);
typeof success == "function" && success(res);
}
},
fail: (e) => {
......
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