Commit 9b2324e2 authored by lvtz's avatar lvtz

fix

parent 0f8a23eb
......@@ -241,37 +241,15 @@ Page({
const visitor = LocalStorage.getItem('visitor') || {};
let user = LocalStorage.getItem('user');
let dakarole = LocalStorage.getItem('dakarole');
// if(user && user.token){
// wx.request({
// url: apis.business.ucenter.schoolList,
// data: {
// page: 1,
// perPage: 100
// },
// header: {
// 'Authorization': user.token,
// },
// success(res){
// if (res.data.code == 200) {
// LocalStorage.setItem('user', {
// token: user.token,
// })
// LocalStorage.setItem('dakarole', 1);
// if (res.data.data.total > 0 ) {
// wx.reLaunch({
// url: `/business/pages/deskcenter/index?sid=${res.data.data.list[0].id}`
// })
// } else {
// wx.redirectTo({
// url: '/business/pages/shopeditor/index?from=1'
// })
// }
// } else {
// }
// }
// })
// return
// }
if(user && user.token){
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
url: `/business/pages/exchangebusiness/index?from=1`
})
return
}
getMember({
consumer_id: visitor && visitor.id
......@@ -291,7 +269,8 @@ Page({
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
url: `/business/pages/deskcenter/index?sid=${data.member[0].id}`
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