diff --git a/mobile-h5/pages/index/index.vue b/mobile-h5/pages/index/index.vue
index c5cd4bb6..83dd9c74 100644
--- a/mobile-h5/pages/index/index.vue
+++ b/mobile-h5/pages/index/index.vue
@@ -12,13 +12,6 @@
{{ deptName }}
-
- {{ mpNotifyBound ? '微信通知已开启' : '开启微信审批通知' }}
-
退出登录
@@ -98,7 +91,6 @@
import {
clearSession,
fetchCurrentUser,
- fetchMpBindStatus,
getUser
} from '../../utils/auth.js'
import { fetchMyMobileMenus } from '../../utils/menu.js'
@@ -138,7 +130,6 @@
deptName: '',
menus: [],
menusLoading: true,
- mpNotifyBound: false,
banners: [
{
id: 'banner-video-1',
@@ -163,25 +154,9 @@
.catch(() => {
/* 本地缓存已展示,忽略刷新失败 */
})
- this.refreshMpBindStatus()
this.loadMenus()
},
methods: {
- async refreshMpBindStatus() {
- try {
- const res = await fetchMpBindStatus()
- this.mpNotifyBound = !!(res && res.bound)
- } catch (_) {
- this.mpNotifyBound = false
- }
- },
- onTapMpNotify() {
- if (this.mpNotifyBound) {
- uni.showToast({ title: '已开启', icon: 'none' })
- return
- }
- uni.navigateTo({ url: '/pages/oa/mp-bind/index' })
- },
mergeBadgesIntoMenus(menus, badgeMap) {
const map = badgeMap || {}
return (menus || []).map((m) => {
@@ -253,27 +228,6 @@