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 @@ ...@@ -47,6 +47,23 @@
"navigationStyle": "custom" "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", "path": "pages/search/search",
"style": { "style": {
...@@ -293,28 +310,6 @@ ...@@ -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", "root": "subPackages",
"pages": [ "pages": [
......
...@@ -96,7 +96,7 @@ async function initComponent() { ...@@ -96,7 +96,7 @@ async function initComponent() {
await updateInvitationInfo() await updateInvitationInfo()
updateShareData({ updateShareData({
pathWithCode: '/activities/1015/home?invitationCode=' + invitationInfo.value.invitationCode, pathWithCode: '/pages/activity/1015/home?invitationCode=' + invitationInfo.value.invitationCode,
}) })
const {unclaimedPrizes} = invitationInfo.value const {unclaimedPrizes} = invitationInfo.value
......
...@@ -50,7 +50,7 @@ const loading = ref(true) // 加载状态 ...@@ -50,7 +50,7 @@ const loading = ref(true) // 加载状态
const shareData = ref({ const shareData = ref({
title: '星妈会超级品牌周来啦!', title: '星妈会超级品牌周来啦!',
imageUrl: 'https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png', imageUrl: 'https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png',
path: '/activities/1015/home', path: '/pages/activity/1015/home',
}) })
// 获取store实例 // 获取store实例
......
...@@ -237,14 +237,14 @@ const handleBack = () => { ...@@ -237,14 +237,14 @@ const handleBack = () => {
fail: () => { fail: () => {
// 如果返回失败,跳转到首页 // 如果返回失败,跳转到首页
uni.redirectTo({ uni.redirectTo({
url: '/activities/1015/home' url: '/pages/activity/1015/home'
}) })
} }
}) })
} catch (error) { } catch (error) {
console.log('返回失败:', error) console.log('返回失败:', error)
uni.redirectTo({ uni.redirectTo({
url: '/activities/1015/home' url: '/pages/activity/1015/home'
}) })
} }
} }
......
...@@ -13,7 +13,7 @@ export function homeConfig(){ ...@@ -13,7 +13,7 @@ export function homeConfig(){
}, },
shareConfig: { shareConfig: {
title: '星妈会超级品牌周来啦!北纬47°六水香大米上新!', title: '星妈会超级品牌周来啦!北纬47°六水香大米上新!',
path: '/activities/1015/home', path: '/pages/activity/1015/home',
imageUrl: 'https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png', imageUrl: 'https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png',
}, },
components: [ components: [
...@@ -168,7 +168,7 @@ export function homeConfig(){ ...@@ -168,7 +168,7 @@ export function homeConfig(){
}, },
link: { link: {
"type": 1, "type": 1,
"url": "/activities/1015/lottery/index" "url": "/pages/activity/1015/lottery/index"
}, },
"needLogin": true, "needLogin": true,
}, },
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}, },
"shareConfig": { "shareConfig": {
"title": "星妈会超级品牌周来啦!北纬47°六水香大米上新!", "title": "星妈会超级品牌周来啦!北纬47°六水香大米上新!",
"path": "/activities/1015/home", "path": "/pages/activity/1015/home",
"imageUrl": "https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png" "imageUrl": "https://course.feihe.com/momclub-picture/activity/1015/v2/share-image.png"
}, },
"components": [ "components": [
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
}, },
"link": { "link": {
"type": 1, "type": 1,
"url": "/activities/1015/lottery/index" "url": "/pages/activity/1015/lottery/index"
}, },
"needLogin": true "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