hookehuyr

fix(扫码打卡详情页): 修正注册参数赋值逻辑

新增扫码阶段注册来源常量,更新跳转欢迎页的注释说明,调整注册相关参数的赋值逻辑
...@@ -68,6 +68,7 @@ import { ...@@ -68,6 +68,7 @@ import {
68 68
69 const defaultCover = 69 const defaultCover =
70 'https://cdn.ipadbiz.cn/lls_prog/images/check_detail_img.png?imageMogr2/strip/quality/60' 70 'https://cdn.ipadbiz.cn/lls_prog/images/check_detail_img.png?imageMogr2/strip/quality/60'
71 +const REGISTER_SOURCE_SCAN_STAGE = 'SCAN_STAGE'
71 72
72 const detail = reactive({ 73 const detail = reactive({
73 activityId: '', 74 activityId: '',
...@@ -127,9 +128,8 @@ const normalizedRichTextContent = computed(() => { ...@@ -127,9 +128,8 @@ const normalizedRichTextContent = computed(() => {
127 }) 128 })
128 129
129 const navigateToWelcome = () => { 130 const navigateToWelcome = () => {
130 - // 扫码入口沿用首页广告位的判断路线: 131 + // 扫码详情页缺少家庭时,沿用 Welcome -> AddProfile/建家庭/加家庭 的准入链路。
131 - // 先判断是否有家庭,没有则先去 Welcome,再由 Welcome 决定补资料/创建家庭/加入家庭。 132 + // 这里的来源归因固定表示“从扫码打卡详情页进入补资料”。
132 - // 现在这条链路不再要求“完成后回到当前详情页继续扫码”,而是完成家庭准入后回首页。
133 const params = new URLSearchParams({ 133 const params = new URLSearchParams({
134 reg_source: detail.regSource, 134 reg_source: detail.regSource,
135 reg_stage_id: detail.regStageId, 135 reg_stage_id: detail.regStageId,
...@@ -425,8 +425,8 @@ const initPage = options => { ...@@ -425,8 +425,8 @@ const initPage = options => {
425 options.stage_id || 425 options.stage_id ||
426 options.id || 426 options.id ||
427 '' 427 ''
428 - detail.regSource = options.reg_source || '' 428 + detail.regSource = REGISTER_SOURCE_SCAN_STAGE
429 - detail.regStageId = options.reg_stage_id || '' 429 + detail.regStageId = detailId
430 detail.entrySceneRaw = sceneParams.rawScene || '' 430 detail.entrySceneRaw = sceneParams.rawScene || ''
431 detail.entryMode = resolveEntryMode(sceneParams, options) 431 detail.entryMode = resolveEntryMode(sceneParams, options)
432 detail.id = detailId 432 detail.id = detailId
......