Commit 6ef06be8 authored by spc's avatar spc

page/index/index md

parent bfca9ac7
......@@ -67,7 +67,7 @@
</template>
<script setup>
import { ref, getCurrentInstance, onMounted } from "vue";
import { ref, getCurrentInstance, onMounted, nextTick } from "vue";
import { onLoad, onShareAppMessage, onShareTimeline, onPageScroll, onShow } from "@dcloudio/uni-app";
import TabBar from "@/components/TabBar.vue";
import Home from "@/views/Home.vue";
......@@ -148,6 +148,17 @@ const handleLaunchAppError = (e) => {
function handleTabClick({ index }) {
globalStore.setCurTabIndex(index);
// tab切换时,如果授权手机号模块显示,触发曝光埋点
if (!userStore.memberInfo?.mobile) {
nextTick(() => {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: `${['首页', '品牌', '积分', '我的'][index]}`,
componentName: "去授权手机号引导",
componentContent: "去授权手机号引导"
});
});
}
}
// 处理授权手机号按钮点击
......
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