feat: 样式调整
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user