yanym 5 年之前
父节点
当前提交
32aa4ad59e
共有 1 个文件被更改,包括 6 次插入4 次删除
  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'
+      })
+    }
   },
   /**
    * 生命周期函数--监听页面加载