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