Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 27d052dd
authored
Nov 28, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
82b91c62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
api/env/index.js
packageMine/pages/questionnaire/questionnaire.js
pages/Login/Login.wxss
pages/loading/loading.js
api/env/index.js
View file @
27d052d
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
3
let
index
=
2
/**
*
...
...
packageMine/pages/questionnaire/questionnaire.js
View file @
27d052d
...
...
@@ -25,7 +25,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
this
.
setData
(
options
)
},
async
getQuestionnaireDetail
(
options
)
{
const
res
=
await
wx
.
p
.
router
.
intercept
()
...
...
pages/Login/Login.wxss
View file @
27d052d
...
...
@@ -50,7 +50,7 @@
}
.nav-bar .back .icon {
width:
16
rpx;
width:
28
rpx;
height: 28rpx;
}
...
...
pages/loading/loading.js
View file @
27d052d
...
...
@@ -52,7 +52,7 @@ Page({
}
console
.
log
(
'登陆信息:'
,
data
)
if
(
options
.
url
)
{
return
this
.
jumpPage
(
options
.
url
)
return
this
.
jumpPage
(
options
)
}
// 默认跳转到首页
wx
.
p
.
router
.
goHome
()
...
...
@@ -83,12 +83,13 @@ Page({
this
.
login
()
}
},
jumpPage
(
val
)
{
console
.
log
(
val
);
const
targetPath
=
decodeURIComponent
(
va
l
),
jumpPage
(
options
)
{
console
.
log
(
options
);
const
targetPath
=
decodeURIComponent
(
options
.
ur
l
),
{
url
,
events
}
=
this
.
setRouteData
(
targetPath
),
routeName
=
this
.
tabList
.
findIndex
(
e
=>
`/
${
e
.
pagePath
}
`
==
`
${
url
}
.html`
)
>
-
1
?
'switchTab'
:
'redirectTo'
events
.
notIntercept
=
true
events
.
merchantId
=
options
.
merchantId
||
''
wx
.
p
.
router
[
routeName
](
url
,
events
)
},
setRouteData
(
targetPath
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment