Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-24 11:40:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7614c98a8479a36de50c5e0c30fef1fdd7d365c2
7614c98a
1 parent
2f2d0d53
refactor(路由和资源): 优化路由命名和图片资源引用方式
- 统一路由命名规范,避免名称冲突 - 将本地图片资源改为CDN引用 - 移除调试代码和注释
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
18 deletions
src/router/routes.js
src/views/profile/pointsPage.vue
src/views/recall/ActivityHistoryPage.vue
src/views/recall/PointsPage.vue
src/router/routes.js
View file @
7614c98
...
...
@@ -140,7 +140,7 @@ export const routes = [
},
{
path
:
'/recall/points'
,
name
:
'Points'
,
name
:
'
Recall
Points'
,
component
:
()
=>
import
(
'../views/recall/PointsPage.vue'
),
meta
:
{
title
:
'积分汇总'
},
},
...
...
@@ -237,7 +237,7 @@ export const routes = [
},
{
path
:
'/profile/points'
,
name
:
'Points'
,
name
:
'P
rofileP
oints'
,
component
:
()
=>
import
(
'../views/profile/pointsPage.vue'
),
meta
:
{
title
:
'我的积分'
},
},
...
...
src/views/profile/pointsPage.vue
View file @
7614c98
...
...
@@ -111,9 +111,9 @@ import { showToast } from 'vant'
import dayjs from 'dayjs'
// 导入图片
import headerBg from '@/assets/images/recall
/962@2x.png'
import bottleImg from '@/assets/images/recall
/pz02@2x.png'
import indicatorImg from '@/assets/images/recall
/xian@2x.png'
const headerBg = 'https://cdn.ipadbiz.cn/mlaj/recall/img
/962@2x.png'
const bottleImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img
/pz02@2x.png'
const indicatorImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img
/xian@2x.png'
useTitle('我的积分')
const route = useRoute()
...
...
src/views/recall/ActivityHistoryPage.vue
View file @
7614c98
...
...
@@ -158,8 +158,7 @@ const handleGeneratePoster = (item) => {
}
const handleCollectCoins = () => {
showToast('收集星球币成功')
// 跳转到/recall/points
// showToast('收集星球币成功')
router.push({ path: '/recall/points' })
}
...
...
src/views/recall/PointsPage.vue
View file @
7614c98
...
...
@@ -118,15 +118,14 @@
import { useTitle } from '@vueuse/core'
import { useRouter } from 'vue-router'
// 导入图片资源
import bgImg from '@/assets/images/recall/bg01@2x.png'
import ppImg from '@/assets/images/recall/pp@2x.png'
import jbImg from '@/assets/images/recall/jb@2x.png'
import pzImg from '@/assets/images/recall/pz@2x.png'
import icon957 from '@/assets/images/recall/957@2x.png'
import icon958 from '@/assets/images/recall/958@2x.png'
import icon959 from '@/assets/images/recall/959@2x.png'
import icon961 from '@/assets/images/recall/961@2x.png'
const bgImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/bg01@2x.png'
const ppImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/pp@2x.png'
const jbImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/jb@2x.png'
const pzImg = 'https://cdn.ipadbiz.cn/mlaj/recall/img/pz@2x.png'
const icon957 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/957@2x.png'
const icon958 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/958@2x.png'
const icon959 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/959@2x.png'
const icon961 = 'https://cdn.ipadbiz.cn/mlaj/recall/img/961@2x.png'
useTitle('积分汇总')
const router = useRouter()
...
...
@@ -140,8 +139,7 @@ const harvestMethods = [
const handleExplore = () => {
// 路由跳转逻辑
console.log('Enter new planet exploration')
// router.push('/...')
router.push('/')
}
</script>
...
...
Please
register
or
login
to post a comment