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
958a9aac
Commit
958a9aac
authored
Oct 28, 2025
by
lg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: appId为wxab14ac8f684ad962的都为半屏拉起
parent
f02b7703
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
169 additions
and
161 deletions
+169
-161
manifest.json
manifest.json
+1
-1
index.js
utils/index.js
+163
-158
Integral.vue
views/Integral.vue
+5
-2
No files found.
manifest.json
View file @
958a9aac
...
...
@@ -66,7 +66,7 @@
}
},
"requiredBackgroundModes"
:
[
"share"
],
"embeddedAppIdList"
:
[
"wx4205ec55b793245e"
]
"embeddedAppIdList"
:
[
"wx4205ec55b793245e"
,
"wxab14ac8f684ad962"
]
},
"mp-alipay"
:
{
"usingComponents"
:
true
...
...
utils/index.js
View file @
958a9aac
// 导入全局store
import
{
useGlobalStore
}
from
"../stores/global"
;
import
{
useGlobalStore
}
from
"../stores/global"
;
// 跳转类型枚举
export
const
JumpType
=
{
...
...
@@ -8,6 +8,11 @@ export const JumpType = {
H5
:
3
,
// https 网络连接跳转
};
const
OPEN_EMBEDDED_APPS
=
[
"wx4205ec55b793245e"
,
// 星妈优选
"wxab14ac8f684ad962"
,
]
/**
* 通用跳转方法
* @param {Object} options
...
...
@@ -15,7 +20,7 @@ export const JumpType = {
* @param {string} options.url 跳转地址(页面路径/小程序路径/https链接)
* @param {Object} [options.extra] 额外参数(如 appId、extraData 等)
*/
export
function
jump
({
type
,
url
,
extra
=
{}
})
{
export
function
jump
({
type
,
url
,
extra
=
{}
})
{
switch
(
type
)
{
case
JumpType
.
INNER
:
try
{
...
...
@@ -68,7 +73,7 @@ export function jump({ type, url, extra = {} }) {
console
.
log
(
"jumpParams:"
,
jumpParams
);
if
(
extra
.
embedded
||
jumpParams
.
appId
===
'wx4205ec55b793245e'
)
{
// 星妈优选的小程序都为半屏拉起
if
(
extra
.
embedded
||
OPEN_EMBEDDED_APPS
.
includes
(
jumpParams
.
appId
))
{
console
.
log
(
'半屏拉起'
,
jumpParams
)
uni
.
openEmbeddedMiniProgram
(
jumpParams
);
}
else
{
...
...
views/Integral.vue
View file @
958a9aac
...
...
@@ -528,8 +528,11 @@ const onProgressBarError = (e) => {
function
testGoto195
()
{
return
jump
({
type
:
JumpType
.
INNER
,
url
:
'/pages/activity/1015/home'
type
:
JumpType
.
MINI
,
url
:
'/pages/my/my'
,
extra
:
{
appId
:
'wxab14ac8f684ad962'
,
}
}
)
}
...
...
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