hookehuyr

🐞 fix(书籍首页,作品列表页): 快捷访问组件,选择方言下拉弹框的层级问题优化

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-21 09:35:14 3 * @Date: 2022-05-21 09:35:14
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-24 17:26:02 5 + * @LastEditTime: 2022-06-24 18:24:17
6 * @FilePath: /tswj/src/views/client/bookDetail.vue 6 * @FilePath: /tswj/src/views/client/bookDetail.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
51 <van-col span="6"> 51 <van-col span="6">
52 <div :class="[checkLocalism ? 'checked' : 'uncheck']" @click="toggleLanguage('localism')">方言</div> 52 <div :class="[checkLocalism ? 'checked' : 'uncheck']" @click="toggleLanguage('localism')">方言</div>
53 </van-col> 53 </van-col>
54 - <van-col v-if="checkLocalism" span="12" @click="showPicker = true"> 54 + <van-col v-if="checkLocalism" span="12" @click="onClickLocalism">
55 <div class="choose-wrapper"> 55 <div class="choose-wrapper">
56 <div class="text"> 56 <div class="text">
57 &nbsp;{{ chooseLanguage.text }} 57 &nbsp;{{ chooseLanguage.text }}
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
87 <van-empty v-if="emptyStatus" class="custom-image" :image="no_image" description="暂无作品信息" /> 87 <van-empty v-if="emptyStatus" class="custom-image" :image="no_image" description="暂无作品信息" />
88 </div> 88 </div>
89 <div style="height: 6rem;" /> 89 <div style="height: 6rem;" />
90 - <div class="book-bar"> 90 + <div class="book-bar" :style="customBarStyle">
91 <div class="text" @click="onSubscribe"> 91 <div class="text" @click="onSubscribe">
92 <template v-if="!bookInfo.is_subscribe"> 92 <template v-if="!bookInfo.is_subscribe">
93 <van-icon :name="icon_subscribed" size="1.25rem" style="margin: 0 auto;" /> 93 <van-icon :name="icon_subscribed" size="1.25rem" style="margin: 0 auto;" />
...@@ -146,6 +146,12 @@ const $router = useRouter(); ...@@ -146,6 +146,12 @@ const $router = useRouter();
146 const { toggleLanguage, onLoad, columns, prod_list, finished, loading, bookInfo, showPicker, checkLocalism, checkMandarin, onConfirm, chooseLanguage, finishedTextStatus, emptyStatus } = useVideoList(); 146 const { toggleLanguage, onLoad, columns, prod_list, finished, loading, bookInfo, showPicker, checkLocalism, checkMandarin, onConfirm, chooseLanguage, finishedTextStatus, emptyStatus } = useVideoList();
147 let { userInfo } = useDefaultPerf($route.query.id); 147 let { userInfo } = useDefaultPerf($route.query.id);
148 148
149 +const customBarStyle = ref({})
150 +const onClickLocalism = () => {
151 + showPicker.value = true
152 + customStyle.value.zIndex = 0
153 + customBarStyle.value.zIndex = 0
154 +}
149 const customStyle = ref({ 155 const customStyle = ref({
150 bottom: '8rem' 156 bottom: '8rem'
151 }) 157 })
......