Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
6ef06be8
Commit
6ef06be8
authored
Nov 03, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
page/index/index md
parent
bfca9ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
index.vue
pages/index/index.vue
+12
-1
No files found.
pages/index/index.vue
View file @
6ef06be8
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</
template
>
</
template
>
<
script
setup
>
<
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
{
onLoad
,
onShareAppMessage
,
onShareTimeline
,
onPageScroll
,
onShow
}
from
"@dcloudio/uni-app"
;
import
TabBar
from
"@/components/TabBar.vue"
;
import
TabBar
from
"@/components/TabBar.vue"
;
import
Home
from
"@/views/Home.vue"
;
import
Home
from
"@/views/Home.vue"
;
...
@@ -148,6 +148,17 @@ const handleLaunchAppError = (e) => {
...
@@ -148,6 +148,17 @@ const handleLaunchAppError = (e) => {
function
handleTabClick
({
index
})
{
function
handleTabClick
({
index
})
{
globalStore
.
setCurTabIndex
(
index
);
globalStore
.
setCurTabIndex
(
index
);
// tab切换时,如果授权手机号模块显示,触发曝光埋点
if
(
!
userStore
.
memberInfo
?.
mobile
)
{
nextTick
(()
=>
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
`
${[
'首页'
,
'品牌'
,
'积分'
,
'我的'
][
index
]}
`
,
componentName
:
"去授权手机号引导"
,
componentContent
:
"去授权手机号引导"
});
});
}
}
}
// 处理授权手机号按钮点击
// 处理授权手机号按钮点击
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment