首页优化加蒙板

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

@ -2,7 +2,7 @@
"name" : "星汉物联", "name" : "星汉物联",
"appid" : "__UNI__A21EF43", "appid" : "__UNI__A21EF43",
"description" : "设备管控", "description" : "设备管控",
"versionName" : "1.0.7", "versionName" : "1.0.8",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */

View File

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