|
@@ -418,6 +418,14 @@
|
|
|
import HotList from "./components/hotList.vue";
|
|
|
import Share from "./components/share.vue";
|
|
|
|
|
|
+const MULTILAYER_MAP = [
|
|
|
+ ['KJ-FwOrAt4DM4i', 'KJ-C1pVWZpykU5_01'],
|
|
|
+ ['KJ-2BxnrjuodUQ', 'KJ-SM7nrYVplQb'],
|
|
|
+ ['KJ-Sp7nzqeQQP3', 'KJ-rZN0SwW1Rm0'],
|
|
|
+ ['KJ-xrLkN8YPHG1', 'KJ-6c3Bmj5M6Tr'],
|
|
|
+ ['KJ-X98HYd4MMqU', 'KJ-IXbIMNFQPZC']
|
|
|
+];
|
|
|
+
|
|
|
export default {
|
|
|
components: { HotList, Share },
|
|
|
data() {
|
|
@@ -448,29 +456,26 @@ export default {
|
|
|
this.guideStep = 1;
|
|
|
localStorage.setItem("isGuided", "true");
|
|
|
}
|
|
|
- console.log('12',window.location.href.includes('KJ-FwOrAt4DM4i'))
|
|
|
- if(window.location.href.includes('KJ-FwOrAt4DM4i')){
|
|
|
- this.is1Ceng = true
|
|
|
- }
|
|
|
- if(window.location.href.includes('KJ-C1pVWZpykU5_01')){
|
|
|
- this.is2Ceng = true
|
|
|
+
|
|
|
+ const multilayerIndex = MULTILAYER_MAP.findIndex(arr => arr.includes(window.number))
|
|
|
+
|
|
|
+ if (multilayerIndex > -1) {
|
|
|
+ if (MULTILAYER_MAP[multilayerIndex].findIndex(code => window.number === code) === 0) {
|
|
|
+ this.is1Ceng = true
|
|
|
+ } else {
|
|
|
+ this.is2Ceng = true
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
changFloor() {
|
|
|
+ const multilayerIndex = MULTILAYER_MAP.findIndex(arr => arr.includes(window.number))
|
|
|
+
|
|
|
if(this.is1Ceng){
|
|
|
- // window.location.href = 'https://houseoss.4dkankan.com/project/ZHZRZYJ/index.html#/?m=KJ-C1pVWZpykU5_01'
|
|
|
- window.location.replace('https://houseoss.4dkankan.com/project/ZHZRZYJ/index.html#/?m=KJ-C1pVWZpykU5_01')
|
|
|
- window.location.reload()
|
|
|
- // window.history.replaceState({}, '', 'https://houseoss.4dkankan.com/project/ZHZRZYJ/index.html#/?m=KJ-C1pVWZpykU5_01');
|
|
|
+ window.location.replace(window.location.origin + window.location.pathname + '?m=' + MULTILAYER_MAP[multilayerIndex][1])
|
|
|
}
|
|
|
if(this.is2Ceng){
|
|
|
- // window.location.href = 'https://houseoss.4dkankan.com/project/ZHZRZYJ/index.html#/?m=KJ-FwOrAt4DM4i'
|
|
|
- window.location.replace('https://houseoss.4dkankan.com/project/ZHZRZYJ/index.html#/?m=KJ-FwOrAt4DM4i')
|
|
|
- window.location.reload()
|
|
|
-
|
|
|
- // window.history.replaceState({}, '', 'https://houseoss.4dkankan.com/project/ZHZRZYJ/index.html#/?m=KJ-FwOrAt4DM4i');
|
|
|
-
|
|
|
+ window.location.replace(window.location.origin + window.location.pathname + '?m=' + MULTILAYER_MAP[multilayerIndex][0])
|
|
|
}
|
|
|
},
|
|
|
clearScreen() {
|