yanym 5 years ago
parent
commit
32aa4ad59e
1 changed files with 6 additions and 4 deletions
  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() {
-    wx.showToast({
-      title: '开发维护中',
-      icon: 'none'
-    })
+    if (this.data.userInfo.roleType == 10002) {
+      wx.showToast({
+        title: '开发维护中',
+        icon: 'none'
+      })
+    }
   },
   /**
    * 生命周期函数--监听页面加载