diff --git a/xuan-deduct-uniapp/src/pages.json b/xuan-deduct-uniapp/src/pages.json index fe79248..4b18fac 100644 --- a/xuan-deduct-uniapp/src/pages.json +++ b/xuan-deduct-uniapp/src/pages.json @@ -33,6 +33,54 @@ "navigationBarTextStyle": "white" } }, + { + "path": "pages/mine/settings", + "style": { + "navigationBarTitleText": "设置", + "navigationBarBackgroundColor": "#10B981", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/mine/account", + "style": { + "navigationBarTitleText": "我的账号", + "navigationBarBackgroundColor": "#10B981", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/mine/agreement", + "style": { + "navigationBarTitleText": "协议", + "navigationBarBackgroundColor": "#10B981", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/mine/favorite", + "style": { + "navigationBarTitleText": "我的收藏", + "navigationBarBackgroundColor": "#10B981", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/mine/feedback", + "style": { + "navigationBarTitleText": "帮助与反馈", + "navigationBarBackgroundColor": "#10B981", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/mine/about", + "style": { + "navigationBarTitleText": "关于我们", + "navigationBarBackgroundColor": "#10B981", + "navigationBarTextStyle": "white" + } + }, { "path": "pages/bazi/bazi", "style": { diff --git a/xuan-deduct-uniapp/src/pages/mine/about.vue b/xuan-deduct-uniapp/src/pages/mine/about.vue new file mode 100644 index 0000000..fe2b651 --- /dev/null +++ b/xuan-deduct-uniapp/src/pages/mine/about.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/xuan-deduct-uniapp/src/pages/mine/account.vue b/xuan-deduct-uniapp/src/pages/mine/account.vue new file mode 100644 index 0000000..b7b005f --- /dev/null +++ b/xuan-deduct-uniapp/src/pages/mine/account.vue @@ -0,0 +1,251 @@ + + + + + diff --git a/xuan-deduct-uniapp/src/pages/mine/agreement.vue b/xuan-deduct-uniapp/src/pages/mine/agreement.vue new file mode 100644 index 0000000..e3c1c8f --- /dev/null +++ b/xuan-deduct-uniapp/src/pages/mine/agreement.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/xuan-deduct-uniapp/src/pages/mine/favorite.vue b/xuan-deduct-uniapp/src/pages/mine/favorite.vue new file mode 100644 index 0000000..ca72682 --- /dev/null +++ b/xuan-deduct-uniapp/src/pages/mine/favorite.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/xuan-deduct-uniapp/src/pages/mine/feedback.vue b/xuan-deduct-uniapp/src/pages/mine/feedback.vue new file mode 100644 index 0000000..44bca3c --- /dev/null +++ b/xuan-deduct-uniapp/src/pages/mine/feedback.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/xuan-deduct-uniapp/src/pages/mine/mine.vue b/xuan-deduct-uniapp/src/pages/mine/mine.vue index 0908483..e478154 100644 --- a/xuan-deduct-uniapp/src/pages/mine/mine.vue +++ b/xuan-deduct-uniapp/src/pages/mine/mine.vue @@ -38,19 +38,23 @@ export default { data() { return { menus: [ - { name: '我的收藏', icon: '❤️' }, - { name: '设置', icon: '⚙️' }, - { name: '帮助与反馈', icon: '💬' }, - { name: '关于我们', icon: 'ℹ️' } + { name: '我的收藏', icon: '❤️', path: '/pages/mine/favorite' }, + { name: '设置', icon: '⚙️', path: '/pages/mine/settings' }, + { name: '帮助与反馈', icon: '💬', path: '/pages/mine/feedback' }, + { name: '关于我们', icon: 'ℹ️', path: '/pages/mine/about' } ] } }, methods: { openMenu(item) { - uni.showToast({ - title: `${item.name}功能开发中`, - icon: 'none' - }) + if (item.path) { + uni.navigateTo({ url: item.path }) + } else { + uni.showToast({ + title: `${item.name}功能开发中`, + icon: 'none' + }) + } } } } diff --git a/xuan-deduct-uniapp/src/pages/mine/settings.vue b/xuan-deduct-uniapp/src/pages/mine/settings.vue new file mode 100644 index 0000000..0675a3f --- /dev/null +++ b/xuan-deduct-uniapp/src/pages/mine/settings.vue @@ -0,0 +1,125 @@ + + + + +