This commit is contained in:
@fawn-nine
2024-08-05 09:31:18 +08:00
parent f0cba9303a
commit 1c670dfc27
2 changed files with 718 additions and 503 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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 {