|
@@ -108,7 +108,7 @@
|
|
|
v-for="subitem in item.children"
|
|
|
:key="subitem.sceneCode"
|
|
|
class="scene-sublist-item"
|
|
|
- @click="changeScene(subitem.sceneCode, subitem.params)"
|
|
|
+ @click="changeScene(subitem)"
|
|
|
>
|
|
|
{{ subitem.label }}
|
|
|
</el-dropdown-item>
|
|
@@ -133,7 +133,7 @@
|
|
|
v-for="subitem in item.children"
|
|
|
:key="subitem.sceneCode"
|
|
|
class="scene-sublist-item"
|
|
|
- @click="changeScene(subitem.sceneCode, subitem.params)"
|
|
|
+ @click="changeScene(subitem)"
|
|
|
>
|
|
|
{{ subitem.label }}
|
|
|
</el-dropdown-item>
|
|
@@ -186,8 +186,7 @@
|
|
|
{
|
|
|
label: '4-2号楼4层 双人自理间',
|
|
|
sceneCode: 'KJ-SfNcYJffCof',
|
|
|
- params:
|
|
|
- '&firstView=pano:16,qua:-0.07389770295455884,-0.022001805388514675,-0.001630739657061169,0.9970217626634693',
|
|
|
+ href: 'https://houseoss.4dkankan.com/project/GDHCYL/scene/index.html',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -353,8 +352,12 @@
|
|
|
}
|
|
|
);
|
|
|
|
|
|
- const changeScene = (code: string, params?: string) => {
|
|
|
- location.href = `${location.origin}${location.pathname}?m=${code}${params ? params : ''}`;
|
|
|
+ const changeScene = (item: Record<string, any>) => {
|
|
|
+ location.href = item.href
|
|
|
+ ? item.href
|
|
|
+ : `${location.origin}${location.pathname}?m=${item.sceneCode}${
|
|
|
+ item.params ? item.params : ''
|
|
|
+ }`;
|
|
|
};
|
|
|
</script>
|
|
|
|