Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
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 6777f49d
authored
Dec 01, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除代码
1 parent
4bca86d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
src/store/modules/app.js
src/store/modules/app.js
View file @
6777f49
...
@@ -71,7 +71,6 @@ const actions = {
...
@@ -71,7 +71,6 @@ const actions = {
commit
(
'SET_LIVE_FULL'
,
value
)
commit
(
'SET_LIVE_FULL'
,
value
)
},
},
wxLogin
({
dispatch
},
{
code
,
redirectUrl
,
appId
})
{
wxLogin
({
dispatch
},
{
code
,
redirectUrl
,
appId
})
{
let
code_back_time
=
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
ssoApi
ssoApi
.
login
({
.
login
({
code
,
code
,
...
@@ -82,18 +81,6 @@ const actions = {
...
@@ -82,18 +81,6 @@ const actions = {
let
route
=
state
.
lastPath
==
'crowdfunding'
?
''
:
state
.
lastPath
||
''
let
route
=
state
.
lastPath
==
'crowdfunding'
?
''
:
state
.
lastPath
||
''
route
=
route
.
replace
(
'.'
,
'/'
)
route
=
route
.
replace
(
'.'
,
'/'
)
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
if
(
route
.
startsWith
(
'common/auth'
))
{
const
params
=
{
nickName
:
data
.
nickName
,
avatarUrl
:
data
.
logo
,
code_back_time
,
login_success_time
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
}
wx
.
miniProgram
.
redirectTo
({
url
:
`/pages/crowdfunding/index/index?userProfile=
${
encodeURIComponent
(
JSON
.
stringify
(
params
))}
`
})
return
}
util
.
setUserInfo
(
data
)
util
.
setUserInfo
(
data
)
util
.
setSessionId
(
data
.
sessionId
)
util
.
setSessionId
(
data
.
sessionId
)
dispatch
(
'registerHttp'
,
data
.
sessionId
)
dispatch
(
'registerHttp'
,
data
.
sessionId
)
...
@@ -136,7 +123,6 @@ const actions = {
...
@@ -136,7 +123,6 @@ const actions = {
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
//本地开发
//本地开发
if
(
code
)
{
if
(
code
)
{
let
code_back_time
=
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
const
target
=
isWxWork
?
'wwLogin'
:
'login'
const
target
=
isWxWork
?
'wwLogin'
:
'login'
const
PARAMS
=
isWxWork
const
PARAMS
=
isWxWork
?
{
?
{
...
@@ -162,18 +148,6 @@ const actions = {
...
@@ -162,18 +148,6 @@ const actions = {
userInfo
=
data
userInfo
=
data
sessionId
=
data
.
sessionId
sessionId
=
data
.
sessionId
}
}
if
(
route
.
startsWith
(
'common/auth'
))
{
const
params
=
{
nickName
:
data
.
nickName
,
avatarUrl
:
data
.
logo
,
code_back_time
,
login_success_time
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
}
wx
.
miniProgram
.
redirectTo
({
url
:
`/pages/crowdfunding/index/index?userProfile=
${
encodeURIComponent
(
JSON
.
stringify
(
params
))}
`
})
return
}
util
.
setUserInfo
(
userInfo
)
util
.
setUserInfo
(
userInfo
)
util
.
setSessionId
(
sessionId
)
util
.
setSessionId
(
sessionId
)
dispatch
(
'registerHttp'
,
sessionId
)
dispatch
(
'registerHttp'
,
sessionId
)
...
...
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