1
0
forked from dyf/APP

首页优化加蒙板

This commit is contained in:
liub
2025-12-24 17:04:52 +08:00
parent 830288e107
commit d08d109fd1
2 changed files with 16 additions and 2 deletions

View File

@ -133,6 +133,8 @@
</view>
</view>
</view>
<!-- 蒙板用于点击任意位置关闭悬浮的菜单 -->
<view class="mask" v-show="showTooltip||showshare" @click.stop="closePopMenu"></view>
</view>
</template>
@ -452,6 +454,12 @@
scan() {
this.showTooltip = !this.showTooltip;
},
closePopMenu(){
setTimeout(()=>{
this.showTooltip = false;
this.showshare = false;
},100);
},
closePopupTooltip() {
this.showTooltip = !this.showTooltip
this.showshare = !this.showshare
@ -1132,7 +1140,13 @@
background-color: rgba(35, 35, 35, 0.87);
color: rgba(255, 255, 255, 1);
}
.mask{
position: fixed;
width: 100%;
height: 100%;
z-index: 9998;
background-color: #00000000;
}
/* 提示框样式 */
.tooltip-box {
position: fixed;