hookehuyr

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

- 统一路由命名规范,避免名称冲突
- 将本地图片资源改为CDN引用
- 移除调试代码和注释
......@@ -140,7 +140,7 @@ export const routes = [
},
{
path: '/recall/points',
name: 'Points',
name: 'RecallPoints',
component: () => import('../views/recall/PointsPage.vue'),
meta: { title: '积分汇总' },
},
......@@ -237,7 +237,7 @@ export const routes = [
},
{
path: '/profile/points',
name: 'Points',
name: 'ProfilePoints',
component: () => import('../views/profile/pointsPage.vue'),
meta: { title: '我的积分' },
},
......
......@@ -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()
......
......@@ -158,8 +158,7 @@ const handleGeneratePoster = (item) => {
}
const handleCollectCoins = () => {
showToast('收集星球币成功')
// 跳转到/recall/points
// showToast('收集星球币成功')
router.push({ path: '/recall/points' })
}
......
......@@ -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>
......