|
|
@@ -139,12 +139,18 @@ watch(curProject, (newValue: string) => {
|
|
|
console.log(newValue)
|
|
|
})
|
|
|
|
|
|
+// 判断是否为平板横屏
|
|
|
+const isFlatLandscape = computed(() => {
|
|
|
+ return browser.mobile && window.innerWidth > 1000 && window.innerHeight < window.innerWidth
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<div class='scene-list-box'>
|
|
|
<!-- 信息展示 -->
|
|
|
- <div class="info-shade" v-show="curUnit && isShowInfoBox && !browser.mobile">
|
|
|
+ <div class="info-shade"
|
|
|
+ v-show="(curUnit && isShowInfoBox && !browser.mobile) || (isFlatLandscape && curUnit && isShowInfoBox)">
|
|
|
<div id="infoBoxPc" class="info-box">
|
|
|
<img class="close-icon" @click="isShowInfoBox = false" src="@/assets/images/close-icon.png" alt="">
|
|
|
<div class="info-box-top"></div>
|
|
|
@@ -179,7 +185,7 @@ watch(curProject, (newValue: string) => {
|
|
|
|
|
|
</div>
|
|
|
<!-- 信息展示移动端 -->
|
|
|
- <div class="info-box-mo" v-show="isShowInfoBox && browser.mobile">
|
|
|
+ <div class="info-box-mo" v-show="isShowInfoBox && browser.mobile && !isFlatLandscape">
|
|
|
<!-- 返回按钮 -->
|
|
|
<img class="back-icon" src="@/assets/images/scene/back.png" @click="isShowInfoBox = false" alt="">
|
|
|
<div class="content-info">
|
|
|
@@ -198,7 +204,7 @@ watch(curProject, (newValue: string) => {
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div class="content" v-if="!browser.mobile">
|
|
|
+ <div class="content" v-if="!browser.mobile || isFlatLandscape">
|
|
|
<!-- 左箭头 -->
|
|
|
<div class="arrows-left" :style="{ opacity: startItem != 0 ? '1' : '0' }"
|
|
|
@click="() => { startItem != 0 ? startItem -= 21 : '' }">
|
|
|
@@ -223,7 +229,7 @@ watch(curProject, (newValue: string) => {
|
|
|
</div>
|
|
|
<div v-if="startItem + item - 1 < store.dataAll.welfareList.length"
|
|
|
:class="store.dataAll.welfareList[startItem + item - 1].title.length > 8 ? 'item-name' : ''"
|
|
|
- :style="{ whiteSpace: 'nowrap', marginTop: '-0.2vh' }"> {{ store.dataAll.welfareList[startItem + item -
|
|
|
+ :style="{ whiteSpace: 'nowrap' }"> {{ store.dataAll.welfareList[startItem + item -
|
|
|
1] ? store.dataAll.welfareList[startItem + item - 1].title : '' }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -249,8 +255,10 @@ watch(curProject, (newValue: string) => {
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <img v-show="browser.mobile" class="icon-down" src="@/assets/images/home/icon-down.png" alt="" @click="close">
|
|
|
- <img v-show="!browser.mobile" class="line-down" src="@/assets/images/home/line-down.png" alt="" @click="close">
|
|
|
+ <img v-show="browser.mobile && !isFlatLandscape" class="icon-down" src="@/assets/images/home/icon-down.png" alt=""
|
|
|
+ @click="close">
|
|
|
+ <img v-show="!browser.mobile || isFlatLandscape" class="line-down" src="@/assets/images/home/line-down.png" alt=""
|
|
|
+ @click="close">
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -293,6 +301,7 @@ watch(curProject, (newValue: string) => {
|
|
|
top: 3%;
|
|
|
right: 1%;
|
|
|
cursor: pointer;
|
|
|
+ z-index: 100;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -390,7 +399,7 @@ watch(curProject, (newValue: string) => {
|
|
|
.option-list {
|
|
|
min-width: 80%;
|
|
|
max-width: 100%;
|
|
|
- max-height: 150px;
|
|
|
+ max-height: 10vh;
|
|
|
overflow-y: auto;
|
|
|
// position: absolute;
|
|
|
top: 100%;
|
|
|
@@ -523,8 +532,12 @@ watch(curProject, (newValue: string) => {
|
|
|
|
|
|
.list-item-con {
|
|
|
width: 100%;
|
|
|
- height: 90%;
|
|
|
- // box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.6);
|
|
|
+ min-height: 85%;
|
|
|
+ max-height: 90%;
|
|
|
+ background: white;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
|
|
|
|
|
|
// object-fit: cover;
|
|
|
@@ -888,5 +901,4 @@ watch(curProject, (newValue: string) => {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-}
|
|
|
-</style>
|
|
|
+}</style>
|