Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 ba703fd3
authored
Aug 14, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
免登录逻辑修改
1 parent
7968c9dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
login/loading/loading.js
project.config.json
utils/request/environment.js
login/loading/loading.js
View file @
ba703fd
...
...
@@ -27,6 +27,7 @@ Page({
*/
onShow
()
{
const
appEnter
=
wx
.
getEnterOptionsSync
()
console
.
log
(
appEnter
,
'appEnter'
);
if
(
appEnter
.
scene
==
1037
)
{
if
(
Object
.
keys
(
appEnter
.
referrerInfo
).
length
)
{
const
{
extraData
}
=
appEnter
.
referrerInfo
...
...
@@ -34,6 +35,8 @@ Page({
else
this
.
init
()
}
else
this
.
init
()
}
else
if
([
1047
,
1048
,
1049
].
includes
(
appEnter
.
scene
))
{
// debugger
console
.
log
(
!
this
.
options
.
scene
,
this
.
options
,
'!this.options.scene'
);
if
(
!
this
.
options
.
scene
)
{
this
.
init
()
return
...
...
@@ -169,6 +172,7 @@ Page({
const
{
sessionId
,
loginUserInfoList
}
=
data
var
routeParams
=
{}
var
list
=
[]
console
.
log
(
obj
,
'obj'
);
if
(
obj
.
url
==
'/packagesList/packageOutput/pages/summary'
)
{
routeParams
=
{
merchantId
:
obj
.
merchantId
,
...
...
@@ -182,6 +186,7 @@ Page({
list
.
push
(
item
+
"="
+
routeParams
[
item
])
})
this
.
options
.
targetPath
=
obj
.
url
+
"?"
+
list
.
join
(
"&"
)
this
.
options
.
targetPath
=
'/pages/tab/output/output'
+
"?"
+
list
.
join
(
"&"
)
}
setLoginInfo
(
loginUserInfoList
[
0
],
sessionId
)
}
else
{
...
...
project.config.json
View file @
ba703fd
...
...
@@ -86,7 +86,8 @@
},
"useCompilerPlugins"
:
[
"sass"
]
],
"condition"
:
false
},
"editorSetting"
:
{
"tabIndent"
:
"insertSpaces"
,
...
...
utils/request/environment.js
View file @
ba703fd
...
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
release
=
false
let
index
=
1
let
index
=
3
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
...
...
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