hookehuyr

feat(profile): 添加我的积分页面及路由配置

refactor(login): 重构用户协议展示为结构化数据格式
1 /* 1 /*
2 * @Date: 2025-03-20 20:36:36 2 * @Date: 2025-03-20 20:36:36
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-12-23 17:34:57 4 + * @LastEditTime: 2025-12-23 17:54:30
5 * @FilePath: /mlaj/src/router/routes.js 5 * @FilePath: /mlaj/src/router/routes.js
6 * @Description: 路由地址映射配置 6 * @Description: 路由地址映射配置
7 */ 7 */
...@@ -97,6 +97,12 @@ export const routes = [ ...@@ -97,6 +97,12 @@ export const routes = [
97 meta: { title: '我的活动' }, 97 meta: { title: '我的活动' },
98 }, 98 },
99 { 99 {
100 + path: '/profile/points',
101 + name: 'Points',
102 + component: () => import('../views/profile/pointsPage.vue'),
103 + meta: { title: '我的积分' },
104 + },
105 + {
100 path: '/recall/login', 106 path: '/recall/login',
101 name: 'RecallLogin', 107 name: 'RecallLogin',
102 component: () => import('../views/recall/login.vue'), 108 component: () => import('../views/recall/login.vue'),
......
...@@ -284,11 +284,11 @@ const menuItems1 = [ ...@@ -284,11 +284,11 @@ const menuItems1 = [
284 ]; 284 ];
285 285
286 const menuItems2 = ref([ 286 const menuItems2 = ref([
287 - // { 287 + {
288 - // icon: "wallet", 288 + icon: "wallet",
289 - // title: "我的钱包", 289 + title: "我的积分",
290 - // path: "/profile/wallet", 290 + path: "/profile/points",
291 - // }, 291 + },
292 { 292 {
293 icon: "heart", 293 icon: "heart",
294 title: "我的收藏", 294 title: "我的收藏",
......
1 +<!--
2 + * @Date: 2025-12-23 17:53:26
3 + * @LastEditors: hookehuyr hookehuyr@gmail.com
4 + * @LastEditTime: 2025-12-23 17:53:56
5 + * @FilePath: /mlaj/src/views/profile/pointsPage.vue
6 + * @Description: 我的积分页面
7 +-->
8 +<template>
9 + <div class="points-page">
10 + 我的积分
11 + </div>
12 +</template>
13 +
14 +<script setup>
15 +import { ref } from 'vue'
16 +import { useRoute, useRouter } from 'vue-router'
17 +import { useTitle } from '@vueuse/core'
18 +
19 +const $route = useRoute();
20 +const $router = useRouter();
21 +useTitle($route.meta.title);
22 +
23 +</script>
24 +
25 +<style lang="less" scoped>
26 +
27 +</style>
This diff is collapsed. Click to expand it.