暂存
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,8 @@
|
||||
<!-- <view class="curseSet" slot="right" @click="shuomingPage('/pages/course/courseSet',tagId,pid)"> -->
|
||||
<!-- <uni-icons type="info" size="24"></uni-icons> 课程说明</view> -->
|
||||
</z-nav-bar>
|
||||
<view class="classNewBtn">
|
||||
<!-- 主任和副主任可以创建班级 -->
|
||||
<view class="classNewBtn" v-if="isDirector">
|
||||
<view class="box88 flex_box">
|
||||
<view class="" style="width: 60%; text-align: center;">
|
||||
<button type="primary" @click="pupShow = true">新开一个班级</button>
|
||||
@@ -132,6 +133,9 @@
|
||||
status: 3, // 0 不显示, 1 加载中,2 加载全部完成,3 暂无数据
|
||||
page: 1,
|
||||
flag: true, // 函数是否执行完
|
||||
userMes: undefined,
|
||||
isMonitor :undefined,
|
||||
isDirector :undefined,
|
||||
|
||||
};
|
||||
},
|
||||
@@ -145,6 +149,7 @@
|
||||
this.pageTitle = e.title
|
||||
this.pid = e.pid
|
||||
console.log(e, '传入分类id')
|
||||
this.getUserInfo()
|
||||
this.getData()
|
||||
// this.getCateList(this.tagId)
|
||||
},
|
||||
@@ -185,6 +190,21 @@
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
getUserInfo() {
|
||||
// 获取个人信息
|
||||
if (this.userInfo.id != undefined) {
|
||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||
this.userMes = res.result;
|
||||
this.isMonitor = res.isMonitor
|
||||
this.isDirector = res.isDirector
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: '获取用户信息失败',
|
||||
icon: 'none'
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
// 加入班级
|
||||
enterClass(){
|
||||
|
||||
@@ -350,8 +370,8 @@
|
||||
}
|
||||
.curseSet{margin-right: 20rpx; font-size: 28rpx; display: flex; align-items: center;}
|
||||
.fixed {
|
||||
position: fixed; top: 120rpx;
|
||||
z-index: 1; width: 100%; background-color: #fff;
|
||||
// position: fixed; top: 120rpx;
|
||||
// z-index: 1; width: 100%; background-color: #fff;
|
||||
}
|
||||
|
||||
.newBox {
|
||||
|
||||
Reference in New Issue
Block a user