From eb337e6ce39194e16631d7aa720a231705e2a6a3 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 14 Aug 2026 12:22:36 +0800 Subject: [PATCH] fix(mobile-h5): remove WeChat notify shortcut from home header Co-authored-by: Cursor --- mobile-h5/pages/index/index.vue | 46 --------------------------------- 1 file changed, 46 deletions(-) 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 @@