Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-main
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 97c28f3d
authored
Feb 24, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
f91952c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
src/store/modules/app.js
src/views/common/accountList.vue
src/store/modules/app.js
View file @
97c28f3
...
@@ -139,21 +139,17 @@ const actions = {
...
@@ -139,21 +139,17 @@ const actions = {
navigation
({
dispatch
},
to
)
{
navigation
({
dispatch
},
to
)
{
let
{
redirect_uri
,
corpId
}
=
getParams
()
let
{
redirect_uri
,
corpId
}
=
getParams
()
let
userInfo
=
util
.
getLocalStorage
(
'dj_scrm_userInfo'
)
let
userInfo
=
util
.
getLocalStorage
(
'dj_scrm_userInfo'
)
if
(
corpId
)
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
{
corpId
})
if
(
redirect_uri
)
util
.
setLocalStorage
(
'dj_scrm_redirect_uri'
,
redirect_uri
)
if
(
redirect_uri
)
util
.
setLocalStorage
(
'dj_scrm_redirect_uri'
,
redirect_uri
)
let
dj_scrm
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
let
dj_scrm
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
if
(
dj_scrm
&&
userInfo
)
{
if
(
dj_scrm
&&
userInfo
)
{
if
(
dj_scrm
.
corpId
!=
userInfo
.
entmicroId
)
{
if
(
dj_scrm
.
corpId
!=
userInfo
.
entmicroId
)
{
util
.
showLoading
()
util
.
showLoading
()
window
.
vm
.
testView
=
'清空了'
removeStoreage
()
removeStoreage
()
}
}
}
}
if
(
corpId
&&
dj_scrm
)
{
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
{
corpId
})
if
(
corpId
!=
dj_scrm
.
corpId
)
{
util
.
showLoading
()
removeStoreage
()
}
}
login
({
login
({
dispatch
,
dispatch
,
to
to
...
...
src/views/common/accountList.vue
View file @
97c28f3
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"title"
>
请选择登录商户号
</div>
<div
class=
"title"
>
请选择登录商户号
{{
testView
}}
</div>
<div
class=
"box"
>
<div
class=
"box"
>
<template
v-for=
"(item,index) in accountList"
>
<template
v-for=
"(item,index) in accountList"
>
<div
<div
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
2
:
'省代'
,
2
:
'省代'
,
3
:
'市代'
,
3
:
'市代'
,
4
:
'门店'
4
:
'门店'
}
}
,
}
}
},
},
mounted
()
{
mounted
()
{
...
...
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