Commit 13f221dd authored by 劳琪峰's avatar 劳琪峰

chore: 迁移1015活动到pages/activity/1015

parent ddbd4f21
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"allowJs": true,
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"@/*": ["../*"]
},
"lib": ["DOM", "ESNext"]
}
}
......@@ -47,6 +47,23 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/activity/1015/home",
"style": {
"navigationBarTitleText": "",
"shareAppMessage": true,
"shareTimeline": false,
"navigationStyle": "custom",
"backgroundColor": "#FBE8C2"
}
},
{
"path": "pages/activity/1015/lottery/index",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "pages/search/search",
"style": {
......@@ -293,28 +310,6 @@
}
]
},
{
"root": "activities/1015",
"pages": [
{
"path": "home",
"style": {
"navigationBarTitleText": "",
"shareAppMessage": true,
"shareTimeline": false,
"navigationStyle": "custom",
"backgroundColor": "#FBE8C2"
}
},
{
"path": "lottery/index",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
}
]
},
{
"root": "subPackages",
"pages": [
......
......@@ -96,7 +96,7 @@ async function initComponent() {
await updateInvitationInfo()
updateShareData({
pathWithCode: '/activities/1015/home?invitationCode=' + invitationInfo.value.invitationCode,
pathWithCode: '/pages/activity/1015/home?invitationCode=' + invitationInfo.value.invitationCode,
})
const {unclaimedPrizes} = invitationInfo.value
......
......@@ -50,7 +50,7 @@ const loading = ref(true) // 加载状态
const shareData = ref({
title: '星妈会超级品牌周来啦!',
imageUrl: 'https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png',
path: '/activities/1015/home',
path: '/pages/activity/1015/home',
})
// 获取store实例
......
......@@ -237,14 +237,14 @@ const handleBack = () => {
fail: () => {
// 如果返回失败,跳转到首页
uni.redirectTo({
url: '/activities/1015/home'
url: '/pages/activity/1015/home'
})
}
})
} catch (error) {
console.log('返回失败:', error)
uni.redirectTo({
url: '/activities/1015/home'
url: '/pages/activity/1015/home'
})
}
}
......
......@@ -13,7 +13,7 @@ export function homeConfig(){
},
shareConfig: {
title: '星妈会超级品牌周来啦!北纬47°六水香大米上新!',
path: '/activities/1015/home',
path: '/pages/activity/1015/home',
imageUrl: 'https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png',
},
components: [
......@@ -168,7 +168,7 @@ export function homeConfig(){
},
link: {
"type": 1,
"url": "/activities/1015/lottery/index"
"url": "/pages/activity/1015/lottery/index"
},
"needLogin": true,
},
......
......@@ -9,7 +9,7 @@
},
"shareConfig": {
"title": "星妈会超级品牌周来啦!北纬47°六水香大米上新!",
"path": "/activities/1015/home",
"path": "/pages/activity/1015/home",
"imageUrl": "https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png"
},
"components": [
......@@ -220,7 +220,7 @@
},
"link": {
"type": 1,
"url": "/activities/1015/lottery/index"
"url": "/pages/activity/1015/lottery/index"
},
"needLogin": true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment