Commit 04cf7c31 authored by youjie's avatar youjie

意见

parent 2ddaa759
......@@ -268,7 +268,7 @@
'非常满意'
]
var STAR_IMG = new Array("../../images/Star1.png", "../../images/Star2.png");
localStorage.removeItem("TakeoutVersion")
if(window.localStorage["TakeoutVersion"]) localStorage.removeItem("TakeoutVersion")
let TakeoutVersion = 0
if(query()&&query().TakeoutVersion==1){
TakeoutVersion = 1
......
......@@ -198,18 +198,15 @@
msg.c = query().c
msg.t = query().t
msg.g = query().g
if(oldUserInfo.c==msg.c&&oldUserInfo.t==msg.t&&oldUserInfo.g==msg.g){
console.log(oldUserInfo)
if(oldUserInfo&&oldUserInfo.c==msg.c&&oldUserInfo.t==msg.t&&oldUserInfo.g==msg.g){
setTimeout(() => {
window.location.href = `guestSign.html?TakeoutVersion=1`
}, 300);
}else{
localStorage.removeItem("userInfoTakVer")
}
}else{
msg.TCID = query().TCID
if(localStorage.userInfoTakVer) {
localStorage.removeItem("userInfoTakVer")
}
if(oldUserInfo) localStorage.removeItem("userInfoTakVer")
}
......
......@@ -22,7 +22,7 @@ function getApiUrl() {
}
let TakeoutVersion = 0
if((query().c&&query().t&&query().g)||(query().TakeoutVersion==1)) TakeoutVersion = 1
console.log(TakeoutVersion,'----TakeoutVersion')
// console.log(TakeoutVersion,'----TakeoutVersion 1外卖版 0内部版')
let url = {
urlPost: TakeoutVersion==0?erpApiUrl:erpApiUrlTakVer,
urlJava: erpJavaApiUrl,
......
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