Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
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
wangxuelai
wechatapp.shangjiadao.com
Commits
e9823d25
Commit
e9823d25
authored
Oct 16, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
acc43c57
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
tindex.js
business/pages/classservice/tindex.js
+1
-0
login.js
business/pages/loginregistermgt/login.js
+3
-0
shopeditor.js
service/business/shopeditor.js
+1
-0
index.js
ucenter/index.js
+4
-5
No files found.
business/pages/classservice/tindex.js
View file @
e9823d25
...
...
@@ -53,6 +53,7 @@ Page({
sid
,
my
:
1
})
console
.
log
(
dakarole
,
'dakarole'
);
this
.
getschoolList
()
},
...
...
business/pages/loginregistermgt/login.js
View file @
e9823d25
...
...
@@ -314,6 +314,9 @@ Page({
token
:
`bearer
${
res2
.
data
.
token
}
`
,
mobile
,
})
LocalStorage
.
setItem
(
'teacher'
,
{
token
:
`bearer
${
res2
.
data
.
token
}
`
,
})
wx
.
showToast
({
title
:
'登录成功'
,
mask
:
true
,
...
...
service/business/shopeditor.js
View file @
e9823d25
...
...
@@ -25,6 +25,7 @@ function setInfo(data) {
})
}
function
getCategory
(
data
)
{
console
.
log
(
data
,
'datagetCategory'
)
return
wxRequest
({
role
:
'2b'
,
url
:
apis
.
business
.
shopeditor
.
getCategory
,
...
...
ucenter/index.js
View file @
e9823d25
...
...
@@ -260,16 +260,15 @@ Page({
url
:
`/business/pages/loginregistermgt/login`
})
}
else
if
(
code
==
200
){
if
(
data
.
member
.
length
>
0
){
if
(
data
.
member
.
length
+
data
.
teacher
.
length
>
0
){
LocalStorage
.
setItem
(
'user'
,
{
// expires_in: data.expires_in,
token
:
`bearer
${
data
.
token
}
`
,
})
LocalStorage
.
setItem
(
'dakarole'
,
1
);
LocalStorage
.
setItem
(
'teacher'
,
{
token
:
`bearer
${
data
.
token
}
`
,
})
wx
.
navigateTo
({
url
:
`/business/pages/exchangebusiness/index?from=1`
// url: `/business/pages/deskcenter/index?sid=${data.member[0].id}`
})
}
else
{
wx
.
navigateTo
({
...
...
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