1234567891011121314151617181920 |
- const authorize = function () {
- let realName = wx.getStorageSync('REAL_NAME')
- let lock = wx.getStorageSync('LOCK')
- if (realName && realName === true) {
- if (lock && lock === true) {
- wx.showToast({
- title: '当前用户被锁定,请联系管理员',
- icon: "none",
- duration: 3000
- })
- return 2
- } else {
- return 0
- }
- } else {
- return 1
- }
- }
- export default authorize
|