This commit is contained in:
clay 2022-01-25 22:31:42 +08:00
parent 575300a4cf
commit 1d70fefc93
3 changed files with 31 additions and 31 deletions

View File

@ -1,17 +1,17 @@
window.app = { window.app = {
/* 开发环境 */ /* 开发环境 */
// serverUrl: "http://localhost:8088", // 接口服务接口地址 serverUrl: "http://localhost:8088", // 接口服务接口地址
// paymentServerUrl: "http://192.168.1.3:8089", // 支付中心服务地址 paymentServerUrl: "http://192.168.1.3:8089", // 支付中心服务地址
// shopServerUrl: "http://localhost:8080/foodie-shop/", // 门户网站地址 shopServerUrl: "http://localhost:8080/foodie-shop/", // 门户网站地址
// centerServerUrl: "http://localhost:8080/foodie-center/", // 用户中心地址 centerServerUrl: "http://localhost:8080/foodie-center/", // 用户中心地址
// cookieDomain: "", // cookie 域 cookieDomain: "", // cookie 域
/* 生产环境 */ /* 生产环境 */
serverUrl: "http://api.z.mukewang.com:8088/foodie-dev-api", // 接口服务接口地址 //serverUrl: "http://api.z.mukewang.com:8088/foodie-dev-api", // 接口服务接口地址
paymentServerUrl: "http://payment.t.mukewang.com/foodie-payment", // 支付中心服务地址 //paymentServerUrl: "http://payment.t.mukewang.com/foodie-payment", // 支付中心服务地址
shopServerUrl: "http://shop.z.mukewang.com:8080/foodie-shop/", // 门户网站地址 //shopServerUrl: "http://shop.z.mukewang.com:8080/foodie-shop/", // 门户网站地址
centerServerUrl: "http://center.z.mukewang.com:8080/foodie-center/", // 用户中心地址 //centerServerUrl: "http://center.z.mukewang.com:8080/foodie-center/", // 用户中心地址
cookieDomain: ".z.mukewang.com;", // cookie 域 //cookieDomain: ".z.mukewang.com;", // cookie 域
ctx: "/foodie-shop", ctx: "/foodie-shop",

View File

@ -181,14 +181,14 @@
if (res.data.status == 200) { if (res.data.status == 200) {
var user = res.data; var user = res.data;
// console.log(user); // console.log(user);
// window.location.href = app.ctx + "/index.html"; window.location.href = app.ctx + "/index.html";
//window.location.href = "index.html"; //window.location.href = "index.html";
if (returnUrl != null && returnUrl != undefined && returnUrl != '') { //if (returnUrl != null && returnUrl != undefined && returnUrl != '') {
window.location.href = returnUrl; // window.location.href = returnUrl;
} else { //} else {
window.location.href = "index.html"; // window.location.href = "index.html";
} //}
} else if (res.data.status == 500) { } else if (res.data.status == 500) {
alert(res.data.msg); alert(res.data.msg);