Commit 4a0035f8 authored by youjie's avatar youjie

优化 CarUrl 通知父级方法

parent 88304570
...@@ -139,8 +139,8 @@ ...@@ -139,8 +139,8 @@
} }
}, },
mounted() { mounted() {
if(localStorage.typeSystem) this.typeSystem = localStorage.typeSystem if(localStorage.typeSystem) {
this.typeSystem = localStorage.typeSystem
let href = this.domainManager().CarUrl let href = this.domainManager().CarUrl
if(this.getLocalStorage() == null){ if(this.getLocalStorage() == null){
window.parent.postMessage({ window.parent.postMessage({
...@@ -153,6 +153,8 @@ ...@@ -153,6 +153,8 @@
window.parent.postMessage({ window.parent.postMessage({
event_id: 'app', event_id: 'app',
data: {}}, `${href}`) data: {}}, `${href}`)
}
if ( if (
!this.getLocalStorage() && !this.getLocalStorage() &&
document.URL.indexOf("SupplierLogin") == -1 && document.URL.indexOf("SupplierLogin") == -1 &&
......
...@@ -2592,7 +2592,7 @@ else if (Type==2) { ...@@ -2592,7 +2592,7 @@ else if (Type==2) {
this.GetCarList(path) this.GetCarList(path)
} else { } else {
if(this.GetDetail.OtherType == 80){ if(this.GetDetail.OtherType == 80){
if(this.typeSystem>0){ if(this.typeSystem==1){
let href = this.domainManager().CarUrl let href = this.domainManager().CarUrl
window.parent.postMessage({ window.parent.postMessage({
event_id: 'CarDealerOrder', event_id: 'CarDealerOrder',
......
...@@ -486,12 +486,15 @@ ...@@ -486,12 +486,15 @@
mounted() { mounted() {
this.initData() this.initData()
this.getGroup() this.getGroup()
if(localStorage.typeSystem) {
let href = this.domainManager().CarUrl let href = this.domainManager().CarUrl
window.parent.postMessage({ window.parent.postMessage({
event_id: 'out', event_id: 'out',
data: { data: {
loginState: '退出登录', loginState: '退出登录',
}}, `${href}`) }}, `${href}`)
}
}, },
created() { created() {
......
...@@ -4262,12 +4262,14 @@ ...@@ -4262,12 +4262,14 @@
localStorage.removeItem("userInfo"); localStorage.removeItem("userInfo");
localStorage.removeItem("previousPathInfo"); localStorage.removeItem("previousPathInfo");
location.href = '/' location.href = '/'
if(localStorage.typeSystem) {
let href = this.domainManager().CarUrl let href = this.domainManager().CarUrl
window.parent.postMessage({ window.parent.postMessage({
event_id: 'out', event_id: 'out',
data: { data: {
loginState: '退出登录', loginState: '退出登录',
}}, `${href}`) }}, `${href}`)
}
}, },
togglebox(e) { togglebox(e) {
if ( if (
......
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