|
@@ -42,7 +42,7 @@ import { ElCarousel, ElCarouselItem } from 'element-plus'
|
|
|
import 'element-plus/es/components/carousel/style/css'
|
|
|
import 'element-plus/es/components/carousel-item/style/css'
|
|
|
import { useNow, useDateFormat } from '@vueuse/core'
|
|
|
-import { ueCallCloseWater, ueCallOpenWater, ueCallChangeShuishen, ueCallFlyToSXDX, ueCallFlyToSXDXNew, ueCallChangeTime, ueCallGetNowTime } from '@/utils/UIInteractions'
|
|
|
+import { ueCallCloseWater, ueCallOpenWater, ueCallChangeShuishen, ueCallFlyToSXDX, ueCallFlyToSXDXNew, ueCallFlyToSXDXStretch, ueCallChangeTime, ueCallGetNowTime } from '@/utils/UIInteractions'
|
|
|
import bus from '@/utils/bus'
|
|
|
|
|
|
|
|
@@ -53,7 +53,7 @@ onMounted(() => {
|
|
|
setTimeout(() => {
|
|
|
ueCallChangeTime(18)
|
|
|
ueCallCloseWater()
|
|
|
- ueCallChangeShuishen('2023.1')
|
|
|
+ ueCallChangeShuishen('2023.1', currentType.value)
|
|
|
}, 2000);
|
|
|
})
|
|
|
|
|
@@ -99,11 +99,11 @@ function handleSxdxScroll(type) {
|
|
|
function handleChooseSxdx(i, type) {
|
|
|
if(type==='.1'&&i.usable1) {
|
|
|
sxdxCurrent.value = i.year+'.1'
|
|
|
- ueCallChangeShuishen(sxdxCurrent.value)
|
|
|
+ ueCallChangeShuishen(sxdxCurrent.value, currentType.value)
|
|
|
}
|
|
|
if(type==='.2'&&i.usable2) {
|
|
|
sxdxCurrent.value = i.year+'.2'
|
|
|
- ueCallChangeShuishen(sxdxCurrent.value)
|
|
|
+ ueCallChangeShuishen(sxdxCurrent.value, currentType.value)
|
|
|
}
|
|
|
if(i.year===2022&&type==='.2') {
|
|
|
bus.emit('changeYuJiNum', 1)
|
|
@@ -119,7 +119,12 @@ const currentView = ref('up')
|
|
|
// 切换视角
|
|
|
function handleChangeView() {
|
|
|
if(currentView.value==='up') {
|
|
|
- ueCallFlyToSXDXNew()
|
|
|
+ if(currentType==='lashen') {
|
|
|
+ // 拉伸视角
|
|
|
+ ueCallFlyToSXDXStretch()
|
|
|
+ } else {
|
|
|
+ ueCallFlyToSXDXNew()
|
|
|
+ }
|
|
|
currentView.value = 'down'
|
|
|
} else {
|
|
|
ueCallFlyToSXDX()
|
|
@@ -127,9 +132,11 @@ function handleChangeView() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const currentType = ref('lashen')
|
|
|
+
|
|
|
// 切换类型
|
|
|
function handleChangeType() {
|
|
|
-
|
|
|
+ currentType.value = currentType.value==='lashen'? 'pingmian': 'lashen'
|
|
|
}
|
|
|
|
|
|
|