yanym 5 vuotta sitten
vanhempi
commit
32aa4ad59e
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6 4
      dorm-manager-wx/pages/student/menu/menu.js

+ 6 - 4
dorm-manager-wx/pages/student/menu/menu.js

@@ -89,10 +89,12 @@ Page({
     }]
     }]
   },
   },
   check: function() {
   check: function() {
-    wx.showToast({
-      title: '开发维护中',
-      icon: 'none'
-    })
+    if (this.data.userInfo.roleType == 10002) {
+      wx.showToast({
+        title: '开发维护中',
+        icon: 'none'
+      })
+    }
   },
   },
   /**
   /**
    * 生命周期函数--监听页面加载
    * 生命周期函数--监听页面加载