Commit e9823d25 authored by sujie@126.com's avatar sujie@126.com

dd

parent acc43c57
......@@ -53,6 +53,7 @@ Page({
sid,
my: 1
})
console.log(dakarole, 'dakarole');
this.getschoolList()
},
......
......@@ -314,6 +314,9 @@ Page({
token: `bearer ${res2.data.token}`,
mobile,
})
LocalStorage.setItem('teacher', {
token: `bearer ${res2.data.token}`,
})
wx.showToast({
title: '登录成功',
mask: true,
......
......@@ -25,6 +25,7 @@ function setInfo(data) {
})
}
function getCategory (data) {
console.log(data,'datagetCategory')
return wxRequest({
role: '2b',
url: apis.business.shopeditor.getCategory,
......
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment