hookehuyr

🐞 fix(详情页): 新增音频播放后高度结构问题导致页面滚动高度异常修复

别院地图
1 <template> 1 <template>
2 - <div class="audio-list-page"> 2 + <div v-if="info_height" class="audio-list-page">
3 <van-config-provider :theme-vars="themeVars"> 3 <van-config-provider :theme-vars="themeVars">
4 <van-floating-panel v-model:height="info_height" :anchors="anchors" @height-change="onHeightChange" style="box-shadow: #d6d6d6b8 -1px -5px 15px 5px;"> 4 <van-floating-panel v-model:height="info_height" :anchors="anchors" @height-change="onHeightChange" style="box-shadow: #d6d6d6b8 -1px -5px 15px 5px;">
5 <template #header> 5 <template #header>
...@@ -290,6 +290,8 @@ onUnmounted(() => { // 离开页面时关闭音频播放 ...@@ -290,6 +290,8 @@ onUnmounted(() => { // 离开页面时关闭音频播放
290 <style lang="less" scoped> 290 <style lang="less" scoped>
291 .audio-list-page { 291 .audio-list-page {
292 height: 100%; 292 height: 100%;
293 + position: fixed;
294 + z-index: 999;
293 .audio-item { 295 .audio-item {
294 display: flex; 296 display: flex;
295 align-items: center; 297 align-items: center;
......
1 <!-- 1 <!--
2 * @Date: 2024-09-15 22:08:49 2 * @Date: 2024-09-15 22:08:49
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-11-06 11:08:47 4 + * @LastEditTime: 2024-11-06 11:17:53
5 * @FilePath: /map-demo/src/views/bieyuan/info.vue 5 * @FilePath: /map-demo/src/views/bieyuan/info.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
64 </van-config-provider> 64 </van-config-provider>
65 </div> 65 </div>
66 </div> 66 </div>
67 - <div class="info-logo"> 67 + <div class="info-logo" :style="{ marginBottom: audio_list_height ? `${audio_list_height * 1.5}px` : '3rem' }">
68 <van-image width="3rem" height="3rem" fit="contain" src="https://cdn.ipadbiz.cn/bieyuan/map/icon/scan_logo.png" /> 68 <van-image width="3rem" height="3rem" fit="contain" src="https://cdn.ipadbiz.cn/bieyuan/map/icon/scan_logo.png" />
69 </div> 69 </div>
70 70
......