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
c0881899
Commit
c0881899
authored
Sep 25, 2025
by
劳琪峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 页面url生成器
parent
cd1fc9b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
gen-webview-urls.js
scripts/gen-webview-urls.js
+19
-0
No files found.
scripts/gen-webview-urls.js
0 → 100644
View file @
c0881899
const
hosts
=
[
{
value
:
'https://guide-api.feihe.com'
,
alias
:
'生产环境域名'
},
{
value
:
'https://guide-api-test.feihe.com'
,
alias
:
'test环境域名'
},
{
value
:
'https://guide-api-uat.feihe.com'
,
alias
:
'uat环境域名'
},
]
const
pages
=
[
{
value
:
'/mini/#/page/momHome/index'
,
alias
:
'妈妈爱活动入口'
},
{
value
:
'/mini/#/page/home/index'
,
alias
:
'路演活动入口'
},
]
const
mpPage
=
'/pages/webview/webview'
for
(
const
host
of
hosts
)
{
for
(
const
page
of
pages
)
{
const
url
=
`
${
mpPage
}
?url=
${
encodeURIComponent
(
host
.
value
+
page
.
value
)}
`
console
.
log
(
`
${
host
.
alias
}
-
${
page
.
alias
}
:
${
url
}
`
)
}
}
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