Commit 97a76a69 authored by lvtz's avatar lvtz

fix

parent 90e3d9e5
......@@ -2,58 +2,35 @@
time: 2018-10-30
author: wxl
*/
import {
LocalStorage
} from '../utilities/index.js';
import {
wxLogin
} from '../utilities/wxApi.js';
import {
schoolList
} from '../service/business/ucenter.js';
import { LocalStorage } from "../utilities/index.js";
import { wxLogin } from "../utilities/wxApi.js";
import { schoolList } from "../service/business/ucenter.js";
import {
identitylist,
studentidentity,
identityswitch
} from '../service/customer/signup.js'
import {
noticecount,
} from '../service/customer/mynews.js';
import {
commonwaitjobGet
} from '../service/business/common.js';
import {
bTokenExchange,
authLogin
} from '../service/common.js'
import {
getActivities,
activityLog,
getMember
} from '../service/common.js';
import {
getClassInfo,
} from '../service/customer/schoolindex.js';
import {
behaviorLog
} from '../service/customer/staticlog.js';
import apis from '../constants/api.js';
import {
viewVisitors
} from '../service/customer/myinfluence.js';
} from "../service/customer/signup.js";
import { noticecount } from "../service/customer/mynews.js";
import { commonwaitjobGet } from "../service/business/common.js";
import { bTokenExchange, authLogin } from "../service/common.js";
import { getActivities, activityLog, getMember } from "../service/common.js";
import { getClassInfo } from "../service/customer/schoolindex.js";
import { behaviorLog } from "../service/customer/staticlog.js";
import apis from "../constants/api.js";
import { viewVisitors } from "../service/customer/myinfluence.js";
var app = getApp();
Page({
data: {
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
localImageRoot: '../images/',
localImageRoot: "../images/",
isAuth: false,
schoolList: [],
schoolTotal: 0,
cSchoolList: [],
cSchoolTotal: 0,
sendpath: '/ucenter/index',
sendpath: "/ucenter/index",
waitJob: {},
noticecount: { 1: 0, 2: 0, 3: 0, 4: 0 },
sid: 0,
......@@ -63,115 +40,110 @@ Page({
sid: 0,
id: 0,
tid: 0,
name: ''
name: ""
},
feedbackAppId: 'wx8abaf00ee8c3202e',
feedbackAppId: "wx8abaf00ee8c3202e",
extraData: {
id : "65621",
customData : {
id: "65621",
customData: {
// clientInfo: `iPhone OS 10.3.1 / 3.2.0.43 / 0`,
// imei: '7280BECE2FC29544172A2B858E9E90D0'
}
},
loginCode: '',
loginCode: "",
visitorList: [],
modalUsers: false,//切换用户弹窗
modalUsers: false, //切换用户弹窗
modelUsersAnimate: false,
identityList: [],//可切换的学员列表
actStudent: {}, //当前学生
identityList: [], //可切换的学员列表
actStudent: {} //当前学生
},
onLoad: function (options) { // Do some initialize when page load.
onLoad: function(options) {
// Do some initialize when page load.
const { sid } = options;
const visitor = LocalStorage.getItem('visitor');
const visitor = LocalStorage.getItem("visitor");
this.setData({
sid: sid || 0,
schoolId: sid || 0,
options,
userInfo: {
avatar: visitor && visitor.userInfo && visitor.userInfo.avatarUrl || '',
nickname: visitor && visitor.userInfo && visitor.userInfo.nickName || ''
avatar:
(visitor && visitor.userInfo && visitor.userInfo.avatarUrl) || "",
nickname:
(visitor && visitor.userInfo && visitor.userInfo.nickName) || ""
}
})
});
if (sid > 0) {
this.queryActivtySchoolInfo(sid);
activityLog({
type: 22,
open_id: visitor && visitor.openid,
school_id: sid,
remark: ''
})
remark: ""
});
app.globalData.studentSchoolId = sid;
}
wxLogin().then((res) => {
wxLogin().then(res => {
this.setData({
loginCode: res.code
})
console.log(res,this.data.loginCode,'水水飞洒')
})
loginCode: res.code
});
console.log(res, this.data.loginCode, "水水飞洒");
});
// app.getCurrentSchoolStudentId({
// source_id: this.data.sid,
// source_type: 10,
// }).then(() => {
// this.getIdentitylist()
// this.getIdentitylist()
// })
},
onReady: function () { // Do something when page ready.
onReady: function() {
// Do something when page ready.
},
queryActivtySchoolInfo (sid) {
queryActivtySchoolInfo(sid) {
let activtySchoolInfo = null;
getActivities().then((res) => {
activtySchoolInfo = res.data.list.find((ele) => ele.sid == sid);
getActivities().then(res => {
activtySchoolInfo = res.data.list.find(ele => ele.sid == sid);
if (activtySchoolInfo) {
this.setData({
activtySchoolInfo
})
});
}
})
});
},
onShow: function () { // Do something when page show.
onShow: function() {
if (this.data.sid != 0) {
this.userShow();
}
this.getStudentClassList();
wxLogin().then(res => {
this.setData({
storageUser : LocalStorage.getItem("user")
})
console.log(this.data.storageUser,'user')
if (this.data.sid != 0) {
this.userShow();
}
this.getStudentClassList();
wxLogin().then((res) => {
this.setData({
loginCode: res.code
})
console.log(res,'red')
})
loginCode: res.code
});
});
},
onHide: function () { // Do something when page hide.
wxLogin().then((res) => {
onHide: function() {
wxLogin().then(res => {
this.setData({
loginCode: res.code
})
})
loginCode: res.code
});
});
},
onUnload: function () { // Do something when page close.
onUnload: function() {
},
onPullDownRefresh: function () { // Do something when pull down.
onPullDownRefresh: function() {
},
onShareAppMessage: function () { // return custom share data when user share.
const visitor = LocalStorage.getItem('visitor');
onShareAppMessage: function() {
const visitor = LocalStorage.getItem("visitor");
app.setSharerLog({
source_path: 'ucenter/index',
source_path: "ucenter/index",
source_id: this.data.sid,
param: JSON.stringify({
query: `w=${visitor.studentId}`
})
});
return {
title: '轻校通',
title: "轻校通",
path: `/ucenter/index?w=${visitor.studentId}`
}
};
},
getStudentClassList() {
......@@ -181,209 +153,219 @@ Page({
getClassInfo({
page: 1,
perPage: 100
}).then((res) => {
wx.hideLoading();
if (res.code == 200) {
this.setData({
cSchoolTotal: res.data.total
})
this.data.cSchoolList = res.data.list
if (this.data.sid == 0) {
app.globalData.studentSchoolId = res.data.list[0].id;
})
.then(res => {
wx.hideLoading();
if (res.code == 200) {
this.setData({
sid: res.data.list[0].id
}, () => {
this.queryActivtySchoolInfo(this.data.sid);
this.userShow();
})
activityLog({
type: 22,
open_id: visitor && visitor.openid,
school_id: res.data.list[0].id,
remark: ''
})
cSchoolTotal: res.data.total
});
this.data.cSchoolList = res.data.list;
if (this.data.sid == 0) {
app.globalData.studentSchoolId = res.data.list[0].id;
this.setData(
{
sid: res.data.list[0].id
},
() => {
this.queryActivtySchoolInfo(this.data.sid);
this.userShow();
}
);
activityLog({
type: 22,
open_id: visitor && visitor.openid,
school_id: res.data.list[0].id,
remark: ""
});
}
}
}
}).catch(() => {
// wx.hideLoading();
})
})
.catch(() => {
// wx.hideLoading();
});
},
userShow () {
userShow() {
studentidentity({
school_id: this.data.sid
}).then((res) => {
const {data, code} = res;
if(code == 200 && data){
this.setData({
noUserinfo: data.is_visitor,
userInfo: data.student,
actStudent: data.student,
userStatic: {
class_times: data.class_times,
clock_days: data.clock_days,
integral_balance: data.integral_balance,
},
sendpath: `/ucenter/index?id=${data.student_id}`
})
// console.log(this.data.userInfo, 'userInfo')
this.noticecountGet();
this.viewlistGet();//获取看客列表5条数据
this.getIdentitylist();
const visitor = LocalStorage.getItem('visitor');
Object.assign(visitor, {
studentId:data.student.id
});
LocalStorage.setItem('visitor', visitor);
}else{
})
.then(res => {
const { data, code } = res;
if (code == 200 && data) {
this.setData({
noUserinfo: data.is_visitor,
userInfo: data.student,
actStudent: data.student,
userStatic: {
class_times: data.class_times,
clock_days: data.clock_days,
integral_balance: data.integral_balance
},
sendpath: `/ucenter/index?id=${data.student_id}`
});
console.log(this.data.userInfo, "userInfo");
this.noticecountGet();
this.viewlistGet(); //获取看客列表5条数据
this.getIdentitylist();
const visitor = LocalStorage.getItem("visitor");
Object.assign(visitor, {
studentId: data.student.id
});
LocalStorage.setItem("visitor", visitor);
} else {
this.setData({
noUserinfo: true
});
}
})
.catch(err => {
this.setData({
noUserinfo: true
})
}
}).catch((err)=>{
this.setData({
noUserinfo: true
})
})
});
});
},
loginToManager(){
this.log('loginToManager')
const visitor = LocalStorage.getItem('visitor') || {};
let user = LocalStorage.getItem('user');
let dakarole = LocalStorage.getItem('dakarole');
if(user && user.token){
loginToManager() {
this.log("loginToManager");
const visitor = LocalStorage.getItem("visitor") || {};
let user = LocalStorage.getItem("user");
let dakarole = LocalStorage.getItem("dakarole");
if (user && user.token) {
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
})
return
});
return;
}
getMember().then(res=>{
const {data,code} = res;
if(code==40000){
// 没绑定微信或者没有校区
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
})
}else if(code==200){
if(data.member.length + data.teacher.length > 0){
LocalStorage.setItem('user', {
token: `bearer ${data.token}`,
})
LocalStorage.setItem('teacher', {
token: `bearer ${data.token}`,
})
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
})
}else{
getMember()
.then(res => {
const { data, code } = res;
if (code == 40000) {
// 没绑定微信或者没有校区
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
})
});
} else if (code == 200) {
if (data.member.length + data.teacher.length > 0) {
LocalStorage.setItem("user", {
token: `bearer ${data.token}`
});
LocalStorage.setItem("teacher", {
token: `bearer ${data.token}`
});
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
});
} else {
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
});
}
} else {
wx.showToast({
title: "登录失败",
duration: 500
});
}
}else{
wx.showToast({
title: '登录失败',
duration: 500
})
}
}).catch((err) => {
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
})
})
.catch(err => {
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
});
});
},
loginToManagerWaitDel(){
loginToManagerWaitDel() {
wx.navigateTo({
url: `/business/pages/organizationalmgt/newinfo?sid=${this.data.sid}`
})
});
},
// 新授权
getPhoneNumber(e){
// 新授权
getPhoneNumber(e) {
let that = this;
this.log('loginToManager')
const visitor = LocalStorage.getItem('visitor') || {};
let user = LocalStorage.getItem('user');
this.log("loginToManager");
const visitor = LocalStorage.getItem("visitor") || {};
let user = LocalStorage.getItem("user");
// console.log(user,'user');
// if(user && user.token){
// wx.navigateTo({
// url: `/business/pages/exchangebusiness/index?from=1`
// })
// return
// return
// }
const { encryptedData, iv } = e.detail;
console.log(that.data.loginCode,iv,encryptedData,)
console.log(that.data.loginCode, iv, encryptedData);
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') { //用户点击拒绝
if (e.detail.errMsg == "getPhoneNumber:fail user deny") {
//用户点击拒绝
wx.showToast({
title: '获取手机号失败',
icon: 'none'
})
} else { //允许授权执行跳转
console.log(22232322)
title: "获取手机号失败",
icon: "none"
});
} else {
//允许授权执行跳转
console.log(22232322);
authLogin({
type: 5,
mobile_code: that.data.loginCode,
mobile_iv: iv,
mobile_data: encryptedData,
mobile_data: encryptedData
}).then(res => {
const { code, data } = res;
if(code == 200){
getMember().then(res=>{
const {data,code} = res;
if(code==40000){
// 没绑定微信或者没有校区
wx.navigateTo({
url: `/business/pages/organizationalmgt/newinfo`
})
}else if(code==200){
if(data.member.length + data.teacher.length > 0){
LocalStorage.setItem('user', {
token: `bearer ${data.token}`,
})
LocalStorage.setItem('teacher', {
token: `bearer ${data.token}`,
})
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
})
}else{
if (code == 200) {
getMember()
.then(res => {
const { data, code } = res;
if (code == 40000) {
// 没绑定微信或者没有校区
wx.navigateTo({
url: `/business/pages/organizationalmgt/newinfo`
})
});
} else if (code == 200) {
if (data.member.length + data.teacher.length > 0) {
LocalStorage.setItem("user", {
token: `bearer ${data.token}`
});
LocalStorage.setItem("teacher", {
token: `bearer ${data.token}`
});
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
});
} else {
wx.navigateTo({
url: `/business/pages/organizationalmgt/newinfo`
});
}
} else {
wx.showToast({
title: "登录失败",
duration: 500
});
}
}else{
wx.showToast({
title: '登录失败',
duration: 500
})
}
}).catch((err) => {
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
})
})
.catch(err => {
wx.navigateTo({
url: `/business/pages/loginregistermgt/login`
});
});
}
})
});
}
},
noticecountGet() {
noticecount({
school_id: this.data.sid
}).then((res) => {
const {
code,
data
} = res;
}).then(res => {
const { code, data } = res;
if (code == 200) {
this.setData({
zuoyecount: data.list[3],
noticecount: data.list[3] + data.list[1] + data.list[2]
})
});
}
})
});
},
// goMyLikes() {
......@@ -391,310 +373,309 @@ Page({
// url: `/src/pages/mylikes/index?sid=${this.data.sid}`,
// })
// },
goMytask() {
this.log('goMytask');
if(this.data.noUserinfo){
this.log("goMytask");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
wx.navigateTo({
url: `/src/pages/mytask/index?sid=${this.data.sid}`,
})
url: `/src/pages/mytask/index?sid=${this.data.sid}`
});
},
exchangeSchool () {
this.log('exchangeSchool')
exchangeSchool() {
this.log("exchangeSchool");
wx.navigateTo({
url: `/src/pages/exchangebusiness/index?from=2&sid=${this.data.sid}`,
})
url: `/src/pages/exchangebusiness/index?from=2&sid=${this.data.sid}`
});
},
goMyInfluence () {
this.log('goMyInfluence');
if(this.data.noUserinfo){
goMyInfluence() {
this.log("goMyInfluence");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
wx.navigateTo({
url: `/src/pages/myinfluence/index?sid=${this.data.sid}`,
})
url: `/src/pages/myinfluence/index?sid=${this.data.sid}`
});
},
// 去积分商城
toPointsMall () {
this.log('toPointsMall');
if(this.data.noUserinfo){
toPointsMall() {
this.log("toPointsMall");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
wx.navigateTo({
url: `/src/pages/mall/index?sid=${this.data.sid}&from=2`
})
});
},
// 设置
toSetting () {
toSetting() {
wx.navigateTo({
url: `/src/pages/setting/index?sid=${this.data.sid}`,
})
url: `/src/pages/setting/index?sid=${this.data.sid}`
});
},
goMyAchievement () {
this.log('goMyAchievement');
if(this.data.noUserinfo){
goMyAchievement() {
this.log("goMyAchievement");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
const userInfo = this.data.userInfo;
wx.navigateTo({
url: `/src/pages/myachievement/index?sid=${this.data.sid}&custormeId=${userInfo.id}`,
})
url: `/src/pages/myachievement/index?sid=${this.data.sid}&custormeId=${userInfo.id}`
});
},
// 消息
toMyNews () {
this.log('toMyNews');
if(this.data.noUserinfo){
toMyNews() {
this.log("toMyNews");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
wx.navigateTo({
url: `/src/pages/mynews/index?sid=${this.data.sid}`
})
});
},
// 成长记录
goGrowthRecord() {
this.log('goGrowthRecord');
if(this.data.noUserinfo){
this.log("goGrowthRecord");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
const userInfo = this.data.userInfo;
wx.navigateTo({
url: `/src/pages/growthrecord/index?consumerId=${userInfo.id}&sid=${this.data.sid}`,
})
url: `/src/pages/growthrecord/index?consumerId=${userInfo.id}&sid=${this.data.sid}`
});
},
// 上课记录
goClassRecord(){
this.log('goClassRecord');
if(this.data.noUserinfo){
goClassRecord() {
this.log("goClassRecord");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
const visitor = LocalStorage.getItem('visitor');
const visitor = LocalStorage.getItem("visitor");
wx.navigateTo({
url: `/src/pages/myclassrecord/index?sid=${this.data.sid}&custormeId=${visitor && visitor.id || 0}`,
})
url: `/src/pages/myclassrecord/index?sid=${
this.data.sid
}&custormeId=${(visitor && visitor.id) || 0}`
});
},
// 我的课表
goMySchedule(){
this.log('goMySchedule');
if(this.data.noUserinfo){
goMySchedule() {
this.log("goMySchedule");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
const visitor = LocalStorage.getItem('visitor');
const visitor = LocalStorage.getItem("visitor");
wx.navigateTo({
url: `/src/pages/myschedule/index?sid=${this.data.sid}&custormeId=${visitor && visitor.id || 0}`,
})
url: `/src/pages/myschedule/index?sid=${
this.data.sid
}&custormeId=${(visitor && visitor.id) || 0}`
});
},
// 我的课程
goMyCourses(){
this.log('goMyCourses');
if(this.data.noUserinfo){
goMyCourses() {
this.log("goMyCourses");
if (this.data.noUserinfo) {
wx.showToast({
title: '您还未加入该校区',
title: "您还未加入该校区",
duration: 2000,
icon: 'none'
})
return
icon: "none"
});
return;
}
const visitor = LocalStorage.getItem('visitor');
const visitor = LocalStorage.getItem("visitor");
wx.navigateTo({
url: `/src/pages/mycourses/index?sid=${this.data.sid}&custormeId=${visitor && visitor.id || 0}`,
})
url: `/src/pages/mycourses/index?sid=${
this.data.sid
}&custormeId=${(visitor && visitor.id) || 0}`
});
},
feedbackLog(){
this.log('feedback');
feedbackLog() {
this.log("feedback");
},
log(btnName){
const {
originParams,
originScene,
} = app.globalData;
log(btnName) {
const { originParams, originScene } = app.globalData;
behaviorLog({
source_path: `ucenter/index:${btnName}`,
source_id: this.data.sid,
source_type_model: 1,
scene: originScene || '',
scene: originScene || "",
param: JSON.stringify({
from: originParams,
source: this.data.options,
source: this.data.options
})
})
});
},
// 修改头像昵称
userInfoUpdate(){
userInfoUpdate() {
wx.navigateTo({
url: `/src/pages/setting/userinfoupdate?sid=${this.data.sid}`,
})
url: `/src/pages/setting/userinfoupdate?sid=${this.data.sid}`
});
},
viewlistGet(){
viewlistGet() {
viewVisitors({
school_id: this.data.sid,
page: 1,
perPage: 5,
}).then((res) => {
const {code,data} = res;
if(code==200){
perPage: 5
}).then(res => {
const { code, data } = res;
if (code == 200) {
this.setData({
visitorList: data.list || []
})
});
}
})
});
},
showUsersModal(){
showUsersModal() {
let that = this;
that.setData({
modalUsers: true
})
});
},
hideUsersModal(){
hideUsersModal() {
let that = this;
that.setData({
modelUsersAnimate: true
})
});
setTimeout(() => {
that.setData({
modalUsers: false,
modelUsersAnimate: false
})
}, 200)
});
}, 200);
},
getIdentitylist(){
getIdentitylist() {
identitylist({
school_id: this.data.sid
}).then((res) => {
const {data, code} = res;
if(code == 200 && data){
}).then(res => {
const { data, code } = res;
if (code == 200 && data) {
this.setData({
identityList: data.list,
})
identityList: data.list
});
}
})
});
},
selectUserHandle(e){
selectUserHandle(e) {
let that = this;
const { sid, actStudent } = this.data;
const { item } = e.currentTarget.dataset;
that.setData({
modelUsersAnimate: true
})
});
setTimeout(() => {
that.setData({
modalUsers: false,
modelUsersAnimate: false
})
}, 200)
if(item.id == actStudent.id){
return
});
}, 200);
if (item.id == actStudent.id) {
return;
}
identityswitch({
school_id: sid,
student_id: item.id
}).then((res)=>{
const {data, code} = res;
if(code == 200 ) {
this.setData({
actStudent: item
})
const visitor = LocalStorage.getItem('visitor');
Object.assign(visitor, {
studentId:item.id
});
LocalStorage.setItem('visitor', visitor);
wx.showToast({
title: '切换成功',
icon: 'success',
duration: 2000
})
this.onShow()
}else{
})
.then(res => {
const { data, code } = res;
if (code == 200) {
this.setData({
actStudent: item
});
const visitor = LocalStorage.getItem("visitor");
Object.assign(visitor, {
studentId: item.id
});
LocalStorage.setItem("visitor", visitor);
wx.showToast({
title: "切换成功",
icon: "success",
duration: 2000
});
this.onShow();
} else {
wx.showToast({
title: "切换失败",
icon: "none",
duration: 2000
});
}
})
.catch(res => {
wx.showToast({
title: '切换失败',
icon: 'none',
title: "切换失败",
icon: "none",
duration: 2000
})
}
}).catch((res)=>{
wx.showToast({
title: '切换失败',
icon: 'none',
duration: 2000
})
})
});
});
},
opendia () { // 点击我也要用小程序
const {
originParams,
originScene,
} = app.globalData;
opendia() {
// 点击我也要用小程序
const { originParams, originScene } = app.globalData;
behaviorLog({
source_path: `ucenter/index:useqxt`,
source_id: this.data.sid,
source_type_model: 1,
scene: originScene || '',
scene: originScene || "",
param: JSON.stringify({
from: originParams,
source: this.data.options,
source: this.data.options
})
})
});
},
godialog () { // 点击进入客服消息
const {
originParams,
originScene,
} = app.globalData;
godialog() {
// 点击进入客服消息
const { originParams, originScene } = app.globalData;
behaviorLog({
source_path: `ucenter/index:gogetqxt`,
source_id: this.data.sid,
source_type_model: 1,
scene: originScene || '',
scene: originScene || "",
param: JSON.stringify({
from: originParams,
source: this.data.options,
source: this.data.options
})
})
});
},
true(){}
})
\ No newline at end of file
true() {}
});
......@@ -129,7 +129,7 @@
<view class="menu-item">
<loginbtn loginCode="{{loginCode}}"/>
<view class="menu-item-inner" bindtap="loginToManager" wx:if="{{ storageUser && storageUser.token }}">
<view class="menu-item-inner" bindtap="loginToManager" wx:if="{{ userInfo.mobile }}">
<image class="menuicon" src="{{imageRoot}}2c/ucenter2/icon_tologin.png?{{imageVersion}}"></image>
<text class="title">机构登录(新)</text>
<text class="desc">老师/校长在这里登录</text>
......
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