From e733164e1c779b3aef7245936b9daf7875bf791e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 14 Dec 2023 17:12:33 +0800
Subject: [PATCH] 解决屏幕缩放导致鼠标位置不准确的问题,右侧,切换校区后的显示BUG
---
src/components/mobileLeftNav/index.vue | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/src/components/mobileLeftNav/index.vue b/src/components/mobileLeftNav/index.vue
index fb13256..a7b144c 100644
--- a/src/components/mobileLeftNav/index.vue
+++ b/src/components/mobileLeftNav/index.vue
@@ -271,12 +271,39 @@
// });
// },
- initialize () {
+ initialize (campus) {
+ var that = this
+
+ this.leftNavData = this.leftNavData.map(item => {
+ return {
+ ...item,
+ flag: false,
+ img: item.normal
+ }
+ })
+
+ this.leftNavData[0].flag = true
+ this.leftNavData[0].img = this.leftNavData[0].checked
+ this.leftNavData[4].flag = true
+ this.leftNavData[4].img = this.leftNavData[4].checked
+
+ this.leftNavBQ.setVisible(true)
+ this.leftNavCR.setVisible(true)
+
+ this.leftNavBQ.getSource().clear()
+ this.leftNavDL.getSource().clear()
+ this.leftNavSJ.getSource().clear()
+ this.leftNavHD.getSource().clear()
+ this.leftNavTC.getSource().clear()
+ this.leftNavCR.getSource().clear()
+
var that = this
const ourNum = that.leftNavData.length
for (let n = 0; n < ourNum; n++) {
const ourD = that.leftNavData[n]
- const d = ourD.type ? { lifetype: ourD.type } : {}
+ const d = ourD.type ? { lifetype: ourD.type, campus } : {
+ campus
+ }
ourD.methods(d).then((res) => {
let imgUrl = null
let sateName = null
--
Gitblit v1.9.3