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

配置

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