This commit is contained in:
parent
575300a4cf
commit
1d70fefc93
20
js/app.js
20
js/app.js
|
|
@ -1,17 +1,17 @@
|
|||
window.app = {
|
||||
/* 开发环境 */
|
||||
// serverUrl: "http://localhost:8088", // 接口服务接口地址
|
||||
// paymentServerUrl: "http://192.168.1.3:8089", // 支付中心服务地址
|
||||
// shopServerUrl: "http://localhost:8080/foodie-shop/", // 门户网站地址
|
||||
// centerServerUrl: "http://localhost:8080/foodie-center/", // 用户中心地址
|
||||
// cookieDomain: "", // cookie 域
|
||||
serverUrl: "http://localhost:8088", // 接口服务接口地址
|
||||
paymentServerUrl: "http://192.168.1.3:8089", // 支付中心服务地址
|
||||
shopServerUrl: "http://localhost:8080/foodie-shop/", // 门户网站地址
|
||||
centerServerUrl: "http://localhost:8080/foodie-center/", // 用户中心地址
|
||||
cookieDomain: "", // cookie 域
|
||||
|
||||
/* 生产环境 */
|
||||
serverUrl: "http://api.z.mukewang.com:8088/foodie-dev-api", // 接口服务接口地址
|
||||
paymentServerUrl: "http://payment.t.mukewang.com/foodie-payment", // 支付中心服务地址
|
||||
shopServerUrl: "http://shop.z.mukewang.com:8080/foodie-shop/", // 门户网站地址
|
||||
centerServerUrl: "http://center.z.mukewang.com:8080/foodie-center/", // 用户中心地址
|
||||
cookieDomain: ".z.mukewang.com;", // cookie 域
|
||||
//serverUrl: "http://api.z.mukewang.com:8088/foodie-dev-api", // 接口服务接口地址
|
||||
//paymentServerUrl: "http://payment.t.mukewang.com/foodie-payment", // 支付中心服务地址
|
||||
//shopServerUrl: "http://shop.z.mukewang.com:8080/foodie-shop/", // 门户网站地址
|
||||
//centerServerUrl: "http://center.z.mukewang.com:8080/foodie-center/", // 用户中心地址
|
||||
//cookieDomain: ".z.mukewang.com;", // cookie 域
|
||||
|
||||
ctx: "/foodie-shop",
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@
|
|||
var user = res.data;
|
||||
// console.log(user);
|
||||
|
||||
// window.location.href = app.ctx + "/index.html";
|
||||
//window.location.href = app.ctx + "/index.html";
|
||||
if (returnUrl != null && returnUrl != undefined && returnUrl != '') {
|
||||
window.location.href = returnUrl;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -181,14 +181,14 @@
|
|||
if (res.data.status == 200) {
|
||||
var user = res.data;
|
||||
// console.log(user);
|
||||
// window.location.href = app.ctx + "/index.html";
|
||||
// window.location.href = "index.html";
|
||||
window.location.href = app.ctx + "/index.html";
|
||||
//window.location.href = "index.html";
|
||||
|
||||
if (returnUrl != null && returnUrl != undefined && returnUrl != '') {
|
||||
window.location.href = returnUrl;
|
||||
} else {
|
||||
window.location.href = "index.html";
|
||||
}
|
||||
//if (returnUrl != null && returnUrl != undefined && returnUrl != '') {
|
||||
// window.location.href = returnUrl;
|
||||
//} else {
|
||||
// window.location.href = "index.html";
|
||||
//}
|
||||
|
||||
} else if (res.data.status == 500) {
|
||||
alert(res.data.msg);
|
||||
|
|
|
|||
Loading…
Reference in New Issue