Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
2cc8100a
Commit
2cc8100a
authored
Jun 14, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: relogin_wechatInfo_null
parent
930ec6aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
authorization-modal.js
src/component/authorization-modal/authorization-modal.js
+0
-1
wxService.js
src/utils/wxService.js
+7
-2
No files found.
src/component/authorization-modal/authorization-modal.js
View file @
2cc8100a
...
...
@@ -90,7 +90,6 @@ Component({
const
urls
=
getCurrentPages
()
setTimeout
(()
=>
{
const
item
=
urls
[
0
].
options
console
.
log
(
'----'
,
item
.
route
)
if
(
item
.
route
)
{
try
{
const
options
=
JSON
.
parse
(
item
.
options
)
...
...
src/utils/wxService.js
View file @
2cc8100a
...
...
@@ -47,7 +47,10 @@ class WXService extends Http {
this
.
setPageLoadStatus
()
wx
.
hideLoading
()
}).
catch
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
'catch'
,
res
)
// this.reLogin()
if
(
res
.
msg
.
indexOf
(
'未登录'
)
>
-
1
)
{
// 重新登陆 更新缓存
this
.
reLogin
()
...
...
@@ -137,6 +140,7 @@ class WXService extends Http {
*
*/
reLogin
()
{
console
.
log
(
'rrrrrrrrrrrrrrrrrrrrr'
)
wx
.
setStorageSync
(
'token'
,
''
)
const
app
=
getApp
()
var
_this
=
this
...
...
@@ -145,7 +149,8 @@ class WXService extends Http {
if
(
result
.
code
){
_this
.
post
(
`/member/minaLogin`
,
{
code
:
result
.
code
,
wechatInfo
:
accreditUserInfo
,
// wechatInfo: accreditUserInfo,
wechatInfo
:
null
,
brandId
:
app
.
globalData
.
brandId
,
}).
then
(
response
=>
{
let
dataResp
=
response
.
data
.
data
...
...
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