hookehuyr

refactor(路由和资源): 优化路由命名和图片资源引用方式

- 统一路由命名规范,避免名称冲突
- 将本地图片资源改为CDN引用
- 移除调试代码和注释
...@@ -140,7 +140,7 @@ export const routes = [ ...@@ -140,7 +140,7 @@ export const routes = [
140 }, 140 },
141 { 141 {
142 path: '/recall/points', 142 path: '/recall/points',
143 - name: 'Points', 143 + name: 'RecallPoints',
144 component: () => import('../views/recall/PointsPage.vue'), 144 component: () => import('../views/recall/PointsPage.vue'),
145 meta: { title: '积分汇总' }, 145 meta: { title: '积分汇总' },
146 }, 146 },
...@@ -237,7 +237,7 @@ export const routes = [ ...@@ -237,7 +237,7 @@ export const routes = [
237 }, 237 },
238 { 238 {
239 path: '/profile/points', 239 path: '/profile/points',
240 - name: 'Points', 240 + name: 'ProfilePoints',
241 component: () => import('../views/profile/pointsPage.vue'), 241 component: () => import('../views/profile/pointsPage.vue'),
242 meta: { title: '我的积分' }, 242 meta: { title: '我的积分' },
243 }, 243 },
......
...@@ -111,9 +111,9 @@ import { showToast } from 'vant' ...@@ -111,9 +111,9 @@ import { showToast } from 'vant'
111 import dayjs from 'dayjs' 111 import dayjs from 'dayjs'
112 112
113 // 导入图片 113 // 导入图片
114 -import headerBg from '@/assets/images/recall/962@2x.png' 114 +const headerBg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/962@2x.png'
115 -import bottleImg from '@/assets/images/recall/pz02@2x.png' 115 +const bottleImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/pz02@2x.png'
116 -import indicatorImg from '@/assets/images/recall/xian@2x.png' 116 +const indicatorImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/xian@2x.png'
117 117
118 useTitle('我的积分') 118 useTitle('我的积分')
119 const route = useRoute() 119 const route = useRoute()
......
...@@ -158,8 +158,7 @@ const handleGeneratePoster = (item) => { ...@@ -158,8 +158,7 @@ const handleGeneratePoster = (item) => {
158 } 158 }
159 159
160 const handleCollectCoins = () => { 160 const handleCollectCoins = () => {
161 - showToast('收集星球币成功') 161 + // showToast('收集星球币成功')
162 - // 跳转到/recall/points
163 router.push({ path: '/recall/points' }) 162 router.push({ path: '/recall/points' })
164 } 163 }
165 164
......
...@@ -118,15 +118,14 @@ ...@@ -118,15 +118,14 @@
118 import { useTitle } from '@vueuse/core' 118 import { useTitle } from '@vueuse/core'
119 import { useRouter } from 'vue-router' 119 import { useRouter } from 'vue-router'
120 120
121 -// 导入图片资源 121 +const bgImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/bg01@2x.png'
122 -import bgImg from '@/assets/images/recall/bg01@2x.png' 122 +const ppImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/pp@2x.png'
123 -import ppImg from '@/assets/images/recall/pp@2x.png' 123 +const jbImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/jb@2x.png'
124 -import jbImg from '@/assets/images/recall/jb@2x.png' 124 +const pzImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/pz@2x.png'
125 -import pzImg from '@/assets/images/recall/pz@2x.png' 125 +const icon957 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/957@2x.png'
126 -import icon957 from '@/assets/images/recall/957@2x.png' 126 +const icon958 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/958@2x.png'
127 -import icon958 from '@/assets/images/recall/958@2x.png' 127 +const icon959 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/959@2x.png'
128 -import icon959 from '@/assets/images/recall/959@2x.png' 128 +const icon961 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/961@2x.png'
129 -import icon961 from '@/assets/images/recall/961@2x.png'
130 129
131 useTitle('积分汇总') 130 useTitle('积分汇总')
132 const router = useRouter() 131 const router = useRouter()
...@@ -140,8 +139,7 @@ const harvestMethods = [ ...@@ -140,8 +139,7 @@ const harvestMethods = [
140 139
141 const handleExplore = () => { 140 const handleExplore = () => {
142 // 路由跳转逻辑 141 // 路由跳转逻辑
143 - console.log('Enter new planet exploration') 142 + router.push('/')
144 - // router.push('/...')
145 } 143 }
146 </script> 144 </script>
147 145
......