feat: 样式调整

This commit is contained in:
Blizzard
2026-04-28 10:32:19 +08:00
parent 7f51b2a0a8
commit ce91e2cbbe
33 changed files with 1553 additions and 619 deletions
+12
View File
@@ -11,6 +11,7 @@ Page({
userInfo: null,
menuItems: [
{ id: 'vip', label: '会员中心', icon: '👑', desc: '未开通', highlight: true },
{ id: 'notification', label: '通知设置', icon: '🔔', desc: '', highlight: false },
{ id: 'help', label: '帮助与反馈', icon: '❓', desc: '', highlight: false },
{ id: 'about', label: '关于我们', icon: '📄', desc: 'v1.0.0', highlight: false }
]
@@ -49,6 +50,17 @@ Page({
const id = e.currentTarget.dataset.id
if (id === 'vip') {
wx.navigateTo({ url: '/pages/vip/index' })
} else if (id === 'notification') {
wx.openSetting({
success(res) {
if (res.authSetting['scope.subscribeMessage'] !== undefined) {
wx.showToast({ title: '设置已更新', icon: 'none' })
}
},
fail() {
wx.showToast({ title: '请在系统设置中允许通知', icon: 'none' })
}
})
} else if (id === 'help') {
wx.showToast({ title: '帮助中心开发中', icon: 'none' })
} else if (id === 'about') {