Commit 0c59f9d5 authored by spc's avatar spc

fixed

parent 3b6e209a
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
xcxClick: '我的页面点击', xcxClick: '我的页面点击',
pageName: '我的页面', pageName: '我的页面',
buttonName: '宝宝信息切换', buttonName: '宝宝信息切换',
}" > }">
<text class="nickname" @click="handleEditProfile">{{ <text class="nickname" @click="handleEditProfile">{{
babyInfo?.babyStage === 0 babyInfo?.babyStage === 0
? "备孕" ? "备孕"
: babyInfo?.babyStage === 1 : babyInfo?.babyStage === 1
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</view> </view>
</view> </view>
<!-- 积分账户 --> <!-- 积分账户 -->
<view class="integral-account" @click="handleEditProfile"> <view class="integral-account" @click="handleEditProfile">
<text class="integral-account-text"> 账号: </text> <text class="integral-account-text"> 账号: </text>
<text class="integral-account-value"> <text class="integral-account-value">
{{ userStore.memberInfo?.mobile || '' }}</text> {{ userStore.memberInfo?.mobile || '' }}</text>
...@@ -420,7 +420,7 @@ const navigateTo = (url) => { ...@@ -420,7 +420,7 @@ const navigateTo = (url) => {
const navigateToWithLogin = (url) => { const navigateToWithLogin = (url) => {
console.warn('navigateToWithLogin', url); console.warn('navigateToWithLogin', url);
console.warn('cfgStatus.value.isRegister', cfgStatus.value.isRegister); console.warn('cfgStatus.value.isRegister', cfgStatus.value.isRegister);
// 添加点击埋点 - 根据 URL 判断是哪个菜单项 // 添加点击埋点 - 根据 URL 判断是哪个菜单项
let componentContent = ''; let componentContent = '';
if (url.includes('/v3/orderList/orderList')) { if (url.includes('/v3/orderList/orderList')) {
...@@ -430,7 +430,7 @@ const navigateToWithLogin = (url) => { ...@@ -430,7 +430,7 @@ const navigateToWithLogin = (url) => {
} else if (url.includes('/v3/more/index')) { } else if (url.includes('/v3/more/index')) {
componentContent = '更多'; componentContent = '更多';
} }
if (componentContent) { if (componentContent) {
md.sensorComponentLogTake({ md.sensorComponentLogTake({
xcxComponentClick: "true", xcxComponentClick: "true",
...@@ -576,6 +576,27 @@ const handleWheelChange = (val) => { ...@@ -576,6 +576,27 @@ const handleWheelChange = (val) => {
const initExposure = () => { const initExposure = () => {
// 添加宝宝信息引导模块曝光埋点
if (cfgStatus.value.isRegister && (!babyInfo.value?.allBabyBaseInfo || babyInfo.value?.allBabyBaseInfo?.length === 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "添加宝宝信息引导",
componentContent: "添加宝宝信息引导"
});
}
// 添加做任务赚更多积分模块曝光埋点
if (!cfgStatus.value.isRegister || (babyInfo.value?.allBabyBaseInfo && babyInfo.value?.allBabyBaseInfo?.length > 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "做任务赚更多积分",
componentContent: "去做任务"
});
}
md.sensorComponentLogTake({ md.sensorComponentLogTake({
xcxComponentExposure: "true", xcxComponentExposure: "true",
pageName: "我的页面", pageName: "我的页面",
...@@ -657,26 +678,7 @@ onShow(async () => { ...@@ -657,26 +678,7 @@ onShow(async () => {
await userStore.loadMemberInfo(); await userStore.loadMemberInfo();
points.value = userStore.memberInfo?.points; points.value = userStore.memberInfo?.points;
console.log('userStore.memberInfo=', userStore.memberInfo) console.log('userStore.memberInfo=', userStore.memberInfo)
// 添加宝宝信息引导模块曝光埋点
if (cfgStatus.value.isRegister && (!babyInfo.value?.allBabyBaseInfo || babyInfo.value?.allBabyBaseInfo?.length === 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "添加宝宝信息引导",
componentContent: "添加宝宝信息引导"
});
}
// 添加做任务赚更多积分模块曝光埋点
if (!cfgStatus.value.isRegister || (babyInfo.value?.allBabyBaseInfo && babyInfo.value?.allBabyBaseInfo?.length > 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "做任务赚更多积分",
componentContent: "去做任务"
});
}
// 添加拓展工具菜单曝光埋点 // 添加拓展工具菜单曝光埋点
md.sensorComponentLogTake({ md.sensorComponentLogTake({
......
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