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
0c84cc8f
Commit
0c84cc8f
authored
Aug 18, 2025
by
chenkai1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/fh/20250528_FHQ1
parents
75536242
f777a699
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
136 additions
and
15 deletions
+136
-15
pages.json
pages.json
+7
-0
thirdJumpMiddlePage.vue
pages/thirdJumpMiddlePage/thirdJumpMiddlePage.vue
+114
-0
Home.vue
views/Home.vue
+15
-15
No files found.
pages.json
View file @
0c84cc8f
...
...
@@ -162,6 +162,13 @@
"style"
:
{
"navigationBarTitleText"
:
"生长测评"
}
},
{
"path"
:
"pages/thirdJumpMiddlePage/thirdJumpMiddlePage"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
}
],
"globalStyle"
:
{
...
...
pages/thirdJumpMiddlePage/thirdJumpMiddlePage.vue
0 → 100644
View file @
0c84cc8f
<
template
>
<view
class=
"third-jump-page"
>
<image
class=
"bg-img"
:src=
"`$
{$baseUrl}thirdJumpMiddlePage/v1/syJumpPageBg.jpg`" mode="widthFix"
@click="retryJump">
</image>
</view>
</
template
>
<
script
setup
>
import
{
ref
,
onMounted
,
getCurrentInstance
}
from
'vue'
// 获取全局属性
const
{
proxy
}
=
getCurrentInstance
()
const
$baseUrl
=
proxy
.
$baseUrl
// 响应式数据
const
jumpFailed
=
ref
(
false
)
const
errorMessage
=
ref
(
''
)
const
jumpParams
=
ref
({})
const
bgImg
=
ref
(
''
)
const
bgImgObj
=
{
'sy'
:
'thirdJumpMiddlePage/v1/syJumpPageBg.jpg'
}
// 页面加载时获取参数
onMounted
(()
=>
{
// 获取页面参数
const
pages
=
getCurrentPages
()
const
currentPage
=
pages
[
pages
.
length
-
1
]
const
options
=
currentPage
.
options
||
{}
console
.
log
(
'页面参数 options:'
,
options
)
const
key
=
options
.
key
||
'sy'
bgImg
.
value
=
bgImgObj
[
key
]
// 解析跳转参数
jumpParams
.
value
=
{
appId
:
options
.
appId
||
''
,
path
:
decodeURIComponent
(
options
.
path
)
||
''
,
extraData
:
options
.
extraData
?
JSON
.
parse
(
decodeURIComponent
(
options
.
extraData
))
:
{},
envVersion
:
options
.
envVersion
||
'release'
,
}
// 执行跳转
executeJump
()
})
// 执行跳转
const
executeJump
=
()
=>
{
if
(
!
jumpParams
.
value
.
appId
)
{
showError
(
'缺少必要参数:appId'
)
return
}
console
.
log
(
'开始跳转,参数:'
,
jumpParams
.
value
)
// 调用跳转方法
uni
.
navigateToMiniProgram
({
appId
:
jumpParams
.
value
.
appId
,
path
:
jumpParams
.
value
.
path
,
extraData
:
jumpParams
.
value
.
extraData
,
envVersion
:
jumpParams
.
value
.
envVersion
,
success
:
(
res
)
=>
{
console
.
log
(
'跳转成功:'
,
res
)
// 跳转成功后可以做一些清理工作
},
fail
:
(
err
)
=>
{
console
.
error
(
'跳转失败:'
,
err
)
showError
(
`跳转失败:
${
err
.
errMsg
||
'未知错误'
}
`
)
}
})
}
// 显示错误信息
const
showError
=
(
message
)
=>
{
errorMessage
.
value
=
message
jumpFailed
.
value
=
true
}
// 重试跳转
const
retryJump
=
()
=>
{
jumpFailed
.
value
=
false
errorMessage
.
value
=
''
executeJump
()
}
// 返回上一页
const
goBack
=
()
=>
{
uni
.
navigateBack
({
delta
:
1
})
}
</
script
>
<
style
lang=
"less"
scoped
>
.third-jump-page {
background: white;
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
}
.bg-img {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
</
style
>
views/Home.vue
View file @
0c84cc8f
...
...
@@ -212,7 +212,7 @@
更多星妈会权威专家服务团
<view
class=
"desc1"
>
点击查看 >
</view>
</view>
-->
</view>
<view
class=
"channelbox"
id=
"thirdScreen"
>
<view
class=
"channelbox"
id=
"thirdScreen"
v-if=
"false"
>
<text
class=
"maintitle"
>
{{
channelTabListMianTitle
}}
</text>
<view
class=
"subtitle_box"
>
<text
class=
"subtitle"
>
用声音传递爱与智慧,守护宝贝成长的每一步
</text>
...
...
@@ -819,15 +819,15 @@
this
.
etTabSelIndex
=
index
;
},
onETMore
(
index
,
type
)
{
let
str
=
''
;
if
(
type
===
0
)
{
str
=
'名医专家'
;
}
else
if
(
type
===
1
)
{
str
=
'科研专家'
;
}
else
{
str
=
'权威机构'
;
let
str
=
''
;
if
(
type
===
0
)
{
str
=
'名医专家'
;
}
else
if
(
type
===
1
)
{
str
=
'科研专家'
;
}
else
{
str
=
'权威机构'
;
}
if
(
index
===
1
)
{
if
(
index
===
1
)
{
str
+=
'内容'
}
else
{
str
+=
'点击查看更多'
;
...
...
@@ -1024,9 +1024,9 @@
.tools_maintitle {
// font-size: 42rpx;
// color: #000;
color: @color-black-deep;
font-size: 38rpx;
// color: #000;
color: @color-black-deep;
font-size: 38rpx;
font-weight: bold;
}
...
...
@@ -1155,9 +1155,9 @@
.et_maintitle {
// font-size: 42rpx;
// color: #000;
color: @color-black-deep;
font-size: 38rpx;
// color: #000;
color: @color-black-deep;
font-size: 38rpx;
font-weight: bold;
}
...
...
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