Commit a66df8e5 authored by lvtz's avatar lvtz

fix

parent fc8d03ee
......@@ -2,8 +2,8 @@
/*
该页面当中的from代表从哪个页面跳转到这个页面,选择校区之后还需要跳转回上一个页面
key page
1 business/pages/organizationalmgt/index?sid=${sid} 机构管理页面
2 business/pages/campusindex/index?sid=${sid} 机构首页
1 登录
2 个人中心设置切换校区
*/
import {
schoolList,
......@@ -40,7 +40,7 @@ Page({
const {sid,from} = options;
this.setData({
sid: sid || 0,
from
from: from || 2
})
let user = LocalStorage.getItem('user');
let dakarole = LocalStorage.getItem('dakarole');
......@@ -109,11 +109,12 @@ Page({
})
},
goLogin(){
wx.redirectTo({
wx.reLaunch({
url: `/business/pages/loginregistermgt/login`
})
LocalStorage.removeItem('dakarole');
LocalStorage.removeItem('user');
LocalStorage.removeItem('teacher');
},
goShopedit(){
wx.navigateTo({
......
......@@ -53,6 +53,7 @@ page{
color:rgba(0,0,0,1);
line-height:1;
padding-bottom: 36rpx;
word-break: break-all;
}
.header-box .top-box .info-box .list-box {
display: flex;
......
import {
LocalStorage
} from '../../../utilities/index.js';
var app = getApp();
Page({
......@@ -40,6 +43,7 @@ Page({
exitBusiness(){
LocalStorage.removeItem('user');
LocalStorage.removeItem('dakarole');
LocalStorage.removeItem('teacher');
wx.reLaunch({
url: '/business/pages/loginregistermgt/login'
})
......
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