暂存
This commit is contained in:
@@ -6,8 +6,10 @@
|
|||||||
<view class="mainContent" v-if="thisClass.id">
|
<view class="mainContent" v-if="thisClass.id">
|
||||||
<view class="className">
|
<view class="className">
|
||||||
<h3>{{thisClass.title}}</h3>
|
<h3>{{thisClass.title}}</h3>
|
||||||
<text class="kaiban" v-if="thisClass.state == '0' && isMonitor || thisClass.state == '0' && isDirector" @click="changeClassStatu('1')">开班</text>
|
<text class="kaiban" v-if="thisClass.state == '0' && isMonitor || thisClass.state == '0' && isDirector"
|
||||||
<text class="jieban" v-if="thisClass.state == '1' && isMonitor || thisClass.state == '1' && isDirector" @click="changeClassStatu('2')">结班</text>
|
@click="changeClassStatu('1')">开班</text>
|
||||||
|
<text class="jieban" v-if="thisClass.state == '1' && isMonitor || thisClass.state == '1' && isDirector"
|
||||||
|
@click="changeClassStatu('2')">结班</text>
|
||||||
<text class="tuichu" v-if="!isMonitor && !isDirector && isHave" @click="outClass()">退出班级</text>
|
<text class="tuichu" v-if="!isMonitor && !isDirector && isHave" @click="outClass()">退出班级</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="otherItems flex_box">
|
<view class="otherItems flex_box">
|
||||||
@@ -26,10 +28,7 @@
|
|||||||
<view class="" v-if="thisClass.content != ''">
|
<view class="" v-if="thisClass.content != ''">
|
||||||
<text class="adminName">教学目标/班级简介</text>
|
<text class="adminName">教学目标/班级简介</text>
|
||||||
</view>
|
</view>
|
||||||
<rich-text
|
<rich-text class="banjiJianjie" :nodes="formatRichText(thisClass.content)"></rich-text>
|
||||||
class="banjiJianjie"
|
|
||||||
:nodes="formatRichText(thisClass.content)"
|
|
||||||
></rich-text>
|
|
||||||
<!-- <view class="banjiJianjie" v-html="thisClass.content"></view> -->
|
<!-- <view class="banjiJianjie" v-html="thisClass.content"></view> -->
|
||||||
|
|
||||||
|
|
||||||
@@ -41,7 +40,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 课程列表 -->
|
<!-- 课程列表 -->
|
||||||
<view class="newBox" v-show="courses.length > 0 && tabId == '0'">
|
<view class="newBox" v-show="courses.length > 0 && tabId == '0'">
|
||||||
<view class="item flexbox" v-for="(item, index) in courses" :key="index" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
<view class="item flexbox" v-for="(item, index) in courses" :key="index"
|
||||||
|
@click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||||
<view class="imgcontainer">
|
<view class="imgcontainer">
|
||||||
<image :src="item.image" mode="aspectFit"></image>
|
<image :src="item.image" mode="aspectFit"></image>
|
||||||
@@ -64,22 +64,23 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 班内同学 -->
|
<!-- 班内同学 -->
|
||||||
<view class="classMateBox" v-show="students.length> 0 && tabId == '2'">
|
<view class="classMateBox" v-show="students.length> 0 && tabId == '2'">
|
||||||
<view class="newBox" >
|
<view class="newBox">
|
||||||
<view
|
<view :class="['item','flexbox',
|
||||||
:class="['item','flexbox',
|
|
||||||
item.vip == '1' ? 'superVip' : '',
|
item.vip == '1' ? 'superVip' : '',
|
||||||
item.vip == '2' ? 'wumenVip' : '',
|
item.vip == '2' ? 'wumenVip' : '',
|
||||||
item.vip == '3' ? 'zmVip' : '']" v-for="(item, index) in students" :key="index">
|
item.vip == '3' ? 'zmVip' : '']" v-for="(item, index) in students" :key="index">
|
||||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||||
<view class="classmateImg">
|
<view class="classmateImg">
|
||||||
<image v-if="item.avatar != null && item.avatar != ''" :src="item.avatar" mode="aspectFit"></image>
|
<image v-if="item.avatar != null && item.avatar != ''" :src="item.avatar"
|
||||||
|
mode="aspectFit"></image>
|
||||||
<image v-else src="/static/icon/morenAvavter.png" mode="aspectFit"></image>
|
<image v-else src="/static/icon/morenAvavter.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="textItems flex_box">
|
<view class="textItems flex_box">
|
||||||
<text class="txt555" v-if="item.nickname != null && item.nickname != ''">
|
<text class="txt555" v-if="item.nickname != null && item.nickname != ''">
|
||||||
{{item.nickname}}
|
{{item.nickname}}
|
||||||
<template v-if="isDirector || isMonitor">
|
<template v-if="isDirector || isMonitor">
|
||||||
<text >({{item.tel}})</text> <text @click="outClass(item.id)" class="outBtn">踢出班级</text>
|
<text>({{item.tel}})</text> <text @click="outClass(item.id)"
|
||||||
|
class="outBtn">踢出班级</text>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</text>
|
</text>
|
||||||
@@ -100,7 +101,8 @@
|
|||||||
<!-- 班内提交 -->
|
<!-- 班内提交 -->
|
||||||
<view class="" v-if=" tabId == '3'">
|
<view class="" v-if=" tabId == '3'">
|
||||||
<view class="flex_box tijiaoTitle">
|
<view class="flex_box tijiaoTitle">
|
||||||
<text :class="tijiaoTitleId == item.id ? 'active' :''" @click="titleClick(item)" v-for="(item, index) in tijiaoTitleList" :key="index">{{item.name}}</text>
|
<text :class="tijiaoTitleId == item.id ? 'active' :''" @click="titleClick(item)"
|
||||||
|
v-for="(item, index) in tijiaoTitleList" :key="index">{{item.name}}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 班内任务 -->
|
<!-- 班内任务 -->
|
||||||
<view class="">
|
<view class="">
|
||||||
@@ -137,12 +139,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottomBox" v-if="!isHave && !isDirector && !isMonitor">
|
<view class="bottomBox" v-if="!isHave && !isDirector && !isMonitor && students.length < thisClass.number">
|
||||||
<button type="primary" @click="addClass">一键加入班级</button>
|
<button type="primary" @click="addClass">一键加入班级</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottomBox manBtnBox flex_box" v-if="isDirector || isMonitor">
|
<view class="bottomBox manBtnBox flex_box" v-if="isDirector || isMonitor">
|
||||||
<text class="edit" v-show="isDirector && thisClass.state == '0'" @click="onPageJump('/pages/miniClass/addClass',thisClass.id, classModel.type)">修改班级</text>
|
|
||||||
<text class="set" @click="onPageJump('/pages/miniClass/memberSet',thisClass.id)">管理人员设置</text>
|
<text class="set" @click="onPageJump('/pages/miniClass/memberSet',thisClass.id)">管理人员设置</text>
|
||||||
|
<template v-show="isDirector && thisClass.state == '0'">
|
||||||
|
<text class="edit"
|
||||||
|
@click="onPageJump('/pages/miniClass/addClass',thisClass.id, classModel.type)">修改班级</text>
|
||||||
|
<text class="del" @click="delClass()">删除班级</text>
|
||||||
|
</template>
|
||||||
</view>
|
</view>
|
||||||
<!-- 管理弹出 -->
|
<!-- 管理弹出 -->
|
||||||
<u-popup key="1" :show="showMan" :round="10" @close="closeManager">
|
<u-popup key="1" :show="showMan" :round="10" @close="closeManager">
|
||||||
@@ -207,7 +213,7 @@
|
|||||||
return {
|
return {
|
||||||
thisClass: {},
|
thisClass: {},
|
||||||
students: [],
|
students: [],
|
||||||
tabId:'0',
|
tabId: '0',
|
||||||
curTagIndex: 0,
|
curTagIndex: 0,
|
||||||
scrollable: false,
|
scrollable: false,
|
||||||
tabList: [{
|
tabList: [{
|
||||||
@@ -224,7 +230,8 @@
|
|||||||
}, {
|
}, {
|
||||||
name: '班内提交',
|
name: '班内提交',
|
||||||
id: '3'
|
id: '3'
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
admins: {
|
admins: {
|
||||||
list: [],
|
list: [],
|
||||||
monitor: {},
|
monitor: {},
|
||||||
@@ -241,33 +248,35 @@
|
|||||||
// backgroundColor: '#258feb'
|
// backgroundColor: '#258feb'
|
||||||
|
|
||||||
},
|
},
|
||||||
classModel:{},
|
classModel: {},
|
||||||
courses: [],
|
courses: [],
|
||||||
classId: undefined,
|
classId: undefined,
|
||||||
refresh: true,
|
refresh: true,
|
||||||
userMes:{},
|
userMes: {},
|
||||||
isMonitor:false, // 是管理者
|
isMonitor: false, // 是管理者
|
||||||
isDirector:false, // 是主任
|
isDirector: false, // 是主任
|
||||||
isHave:false,
|
isHave: false,
|
||||||
showMan:false,
|
showMan: false,
|
||||||
tijiaoTitleList:[
|
tijiaoTitleList: [{
|
||||||
{name:'班内任务', id:'0'},
|
name: '班内任务',
|
||||||
{name:'医案', id:'1'},
|
id: '0'
|
||||||
{name:'心得', id:'2'},
|
},
|
||||||
|
{
|
||||||
|
name: '医案',
|
||||||
|
id: '1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '心得',
|
||||||
|
id: '2'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
tijiaoTitleId:'0'
|
tijiaoTitleId: '0'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
this.classId = e.id
|
this.classId = e.id
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
|
||||||
// if(e.have == 'isNotHave'){
|
|
||||||
// this.isHave = false // 未加入
|
|
||||||
// }else if(e.have == 'have'){
|
|
||||||
// this.isHave = true // 已加入
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
this.getClassInfo()
|
this.getClassInfo()
|
||||||
@@ -280,7 +289,43 @@
|
|||||||
...mapState(["userInfo"]),
|
...mapState(["userInfo"]),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
titleClick(item){
|
delClass() {
|
||||||
|
var that = this
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '您正在执行删除班级操作,是否继续?',
|
||||||
|
success: function(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
$http.request({
|
||||||
|
url: "common/class/joinClass",
|
||||||
|
method: "POST",
|
||||||
|
data: {
|
||||||
|
"classId": that.thisClass.id
|
||||||
|
},
|
||||||
|
header: { //默认 无 说明:请求头
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '删除成功',
|
||||||
|
icon: 'success'
|
||||||
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/miniClass/miniClassMan'
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
}).catch(e => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '删除失败',
|
||||||
|
icon: 'error'
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
titleClick(item) {
|
||||||
this.tijiaoTitleId = item.id
|
this.tijiaoTitleId = item.id
|
||||||
},
|
},
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
@@ -292,14 +337,14 @@
|
|||||||
this.isDirector = res.isDirector
|
this.isDirector = res.isDirector
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'获取用户信息失败',
|
title: '获取用户信息失败',
|
||||||
icon:'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 跳转
|
// 跳转
|
||||||
onPageJump(url,id,modeType) {
|
onPageJump(url, id, modeType) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `${url}?id=${id}&type=${modeType}`
|
url: `${url}?id=${id}&type=${modeType}`
|
||||||
});
|
});
|
||||||
@@ -309,11 +354,11 @@
|
|||||||
this.tabId = e.id
|
this.tabId = e.id
|
||||||
},
|
},
|
||||||
formatRichText(html) {
|
formatRichText(html) {
|
||||||
if(html == ''){
|
if (html == '') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//控制图片大小
|
//控制图片大小
|
||||||
let newContent = html.replace(/<img[^>]*>/gi, function (match, capture) {
|
let newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
|
||||||
match = match
|
match = match
|
||||||
.replace(/style="[^"]+"/gi, "")
|
.replace(/style="[^"]+"/gi, "")
|
||||||
.replace(/style='[^']+'/gi, "");
|
.replace(/style='[^']+'/gi, "");
|
||||||
@@ -327,7 +372,7 @@
|
|||||||
});
|
});
|
||||||
newContent = newContent.replace(
|
newContent = newContent.replace(
|
||||||
/style="[^"]+"/gi,
|
/style="[^"]+"/gi,
|
||||||
function (match, capture) {
|
function(match, capture) {
|
||||||
match = match
|
match = match
|
||||||
.replace(/width:[^;]+;/gi, "max-width:100%;")
|
.replace(/width:[^;]+;/gi, "max-width:100%;")
|
||||||
.replace(/width:[^;]+;/gi, "max-width:100%;");
|
.replace(/width:[^;]+;/gi, "max-width:100%;");
|
||||||
@@ -342,12 +387,13 @@
|
|||||||
return newContent;
|
return newContent;
|
||||||
},
|
},
|
||||||
// 加入班级
|
// 加入班级
|
||||||
addClass(){
|
addClass() {
|
||||||
|
|
||||||
$http.request({
|
$http.request({
|
||||||
url: "common/class/joinClass",
|
url: "common/class/joinClass",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
"classId": this.classId ,
|
"classId": this.classId,
|
||||||
},
|
},
|
||||||
header: { //默认 无 说明:请求头
|
header: { //默认 无 说明:请求头
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
@@ -360,9 +406,9 @@
|
|||||||
title: `加入成功!`,
|
title: `加入成功!`,
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
this.getClassInfo()
|
this.getClassInfo()
|
||||||
},200)
|
}, 200)
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e, '数据报错')
|
console.log(e, '数据报错')
|
||||||
@@ -374,19 +420,19 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 显示班级成员
|
// 显示班级成员
|
||||||
seeManager(){
|
seeManager() {
|
||||||
this.showMan = true
|
this.showMan = true
|
||||||
},
|
},
|
||||||
closeManager(){
|
closeManager() {
|
||||||
this.showMan = false
|
this.showMan = false
|
||||||
},
|
},
|
||||||
// 改变班级状态
|
// 改变班级状态
|
||||||
changeClassStatu(statusCode){
|
changeClassStatu(statusCode) {
|
||||||
if(statusCode == '1'){
|
if (statusCode == '1') {
|
||||||
// console.log('this.admins',this.admins);
|
// console.log('this.admins',this.admins);
|
||||||
if(this.admins.list.length == 0){
|
if (this.admins.list.length == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'请先完成管理人员的设置',
|
title: '请先完成管理人员的设置',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
@@ -424,25 +470,25 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 退出班级 // 踢出班级
|
// 退出班级 // 踢出班级
|
||||||
outClass(userId){
|
outClass(userId) {
|
||||||
let that = this
|
let that = this
|
||||||
var _useId = undefined
|
var _useId = undefined
|
||||||
if(userId){
|
if (userId) {
|
||||||
_useId = userId
|
_useId = userId
|
||||||
}else{
|
} else {
|
||||||
_useId = this.userInfo.id
|
_useId = this.userInfo.id
|
||||||
}
|
}
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '您即将退出当前班级,是否继续?',
|
content: '您即将退出当前班级,是否继续?',
|
||||||
success: function (res) {
|
success: function(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
// console.log('用户点击确定');
|
// console.log('用户点击确定');
|
||||||
$http.request({
|
$http.request({
|
||||||
url: "common/class/quitClass",
|
url: "common/class/quitClass",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
"classId": that.classId ,
|
"classId": that.classId,
|
||||||
"userId": _useId
|
"userId": _useId
|
||||||
},
|
},
|
||||||
header: { //默认 无 说明:请求头
|
header: { //默认 无 说明:请求头
|
||||||
@@ -456,11 +502,11 @@
|
|||||||
title: `退出成功!`,
|
title: `退出成功!`,
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/miniClass/myClassList'
|
url: '/pages/miniClass/myClassList'
|
||||||
})
|
})
|
||||||
},200)
|
}, 200)
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e, '数据报错')
|
console.log(e, '数据报错')
|
||||||
@@ -550,61 +596,166 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "@/style/mixin.scss";
|
@import "@/style/mixin.scss";
|
||||||
|
|
||||||
.flexbox{display: flex;}
|
.flexbox {
|
||||||
.manBtnBox{ justify-content: center;
|
display: flex;
|
||||||
text{width:30% ; font-size: 28rpx; padding: 20rpx 0; border-radius: 10rpx; display: block; margin: 0 20rpx; color:#fff;}
|
}
|
||||||
.edit{background-color: $themeColor;}
|
|
||||||
.set{background-color:#ffca7e ;}
|
.manBtnBox {
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
text {
|
||||||
|
width: 30%;
|
||||||
|
font-size: 28rpx;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
display: block;
|
||||||
|
margin: 0 20rpx;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit {
|
||||||
|
background-color: $themeColor;
|
||||||
|
}
|
||||||
|
.del{
|
||||||
|
background-color: #ffa4a6;
|
||||||
|
}
|
||||||
|
.set {
|
||||||
|
background-color: #ffca7e;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.submitRecode{background-color: #fff; border-radius: 20rpx; padding: 20rpx;
|
|
||||||
.newBox{
|
.submitRecode {
|
||||||
.classmateImg{width:60rpx !important; height: 60rpx !important;
|
background-color: #fff;
|
||||||
image{
|
border-radius: 20rpx;
|
||||||
width:60rpx !important; height: 60rpx;
|
padding: 20rpx;
|
||||||
|
|
||||||
|
.newBox {
|
||||||
|
.classmateImg {
|
||||||
|
width: 60rpx !important;
|
||||||
|
height: 60rpx !important;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 60rpx !important;
|
||||||
|
height: 60rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item{
|
|
||||||
box-shadow: none !important; border-bottom: 1px solid #eee; border-radius: 0 !important;
|
.item {
|
||||||
.leve1{align-items: center; border-bottom: 1px dashed #eee; padding-bottom: 20rpx; margin-bottom: 20rpx;
|
box-shadow: none !important;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
|
||||||
|
.leve1 {
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px dashed #eee;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
// .userName{}
|
// .userName{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nobg{background-color: transparent !important; }
|
.nobg {
|
||||||
.bottomBox{position: fixed; padding: 20rpx 0; text-align: center; bottom: 100rpx; left: 0; z-index: 2; width: 100%; background-color: #fff;
|
background-color: transparent !important;
|
||||||
button{width: 80%; margin: 0 auto; border-radius: 40rpx; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bottomBox {
|
||||||
|
position: fixed;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
text-align: center;
|
||||||
|
bottom: 100rpx;
|
||||||
|
left: 0;
|
||||||
|
z-index: 2;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
button {
|
||||||
|
width: 80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mainContent {
|
.mainContent {
|
||||||
color: #333;
|
color: #333;
|
||||||
padding: 0 20rpx; padding-bottom: 20rpx;
|
padding: 0 20rpx;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
background-image: linear-gradient(30deg, #d4eaf0 0%, #d4eaf0 50%, #fdf0ed 100%);
|
background-image: linear-gradient(30deg, #d4eaf0 0%, #d4eaf0 50%, #fdf0ed 100%);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
.classMateBox{
|
|
||||||
.zmVip{background-image: linear-gradient(-60deg, #53966a 0%, #e1feef 50%, #e1feef 100%);}
|
.classMateBox {
|
||||||
.wumenVip{background-image: linear-gradient(-60deg, #578df0 0%, #f1f4fd 50%, #f1f4fd 100%);}
|
.zmVip {
|
||||||
.superVip{background-image: linear-gradient(-60deg, #965af0 0%, #fdf0ed 50%, #fdf0ed 100%);}
|
background-image: linear-gradient(-60deg, #53966a 0%, #e1feef 50%, #e1feef 100%);
|
||||||
.item{width: 100%; position: relative;
|
}
|
||||||
.textItems{width: 100%; align-items: center;
|
|
||||||
.outBtn{padding: 6rpx 10rpx; display: inline-block; border-radius: 10rpx; color:$themeColor; border: 1px solid $themeColor; font-size: 26rpx;}
|
.wumenVip {
|
||||||
.txt555{font-size: 28rpx; color: #333; }
|
background-image: linear-gradient(-60deg, #578df0 0%, #f1f4fd 50%, #f1f4fd 100%);
|
||||||
.userType{position: absolute; font-size: 26rpx; right: 30rpx; top: 8rpx; color: #fff;}
|
}
|
||||||
|
|
||||||
|
.superVip {
|
||||||
|
background-image: linear-gradient(-60deg, #965af0 0%, #fdf0ed 50%, #fdf0ed 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.textItems {
|
||||||
|
width: 100%;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.outBtn {
|
||||||
|
padding: 6rpx 10rpx;
|
||||||
|
display: inline-block;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
color: $themeColor;
|
||||||
|
border: 1px solid $themeColor;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.txt555 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.userType {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 26rpx;
|
||||||
|
right: 30rpx;
|
||||||
|
top: 8rpx;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.classmateImg{width:80rpx; margin-right: 40rpx; height: 80rpx; border-radius: 100rpx;
|
}
|
||||||
image{
|
|
||||||
width:80rpx; height: 80rpx;
|
.classmateImg {
|
||||||
|
width: 80rpx;
|
||||||
|
margin-right: 40rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
border-radius: 100rpx;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 80rpx;
|
||||||
|
height: 80rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mainBox{
|
|
||||||
|
.mainBox {
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
.tabList{border-radius: 20rpx; overflow: hidden; margin-bottom: 20rpx;}
|
|
||||||
|
.tabList {
|
||||||
|
border-radius: 20rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
// background-color: #f4f7ff;
|
// background-color: #f4f7ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newBox {
|
.newBox {
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
@@ -614,8 +765,7 @@
|
|||||||
@include ptop_bottm(10px);
|
@include ptop_bottm(10px);
|
||||||
@include pleft_right(10px);
|
@include pleft_right(10px);
|
||||||
|
|
||||||
@include mshadow(10px, 1)
|
@include mshadow(10px, 1) .imgcontainer {
|
||||||
.imgcontainer {
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 80rpx;
|
width: 80rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
@@ -625,26 +775,35 @@
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
// @include ptop_bottm(10px);
|
// @include ptop_bottm(10px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
// @include pleft_right(10px);
|
// @include pleft_right(10px);
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btn_box{ text-align: right;
|
|
||||||
text{
|
.btn_box {
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
text {
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 3px 5px; @include theme("btn_bg");
|
padding: 3px 5px;
|
||||||
font-size: 28rpx; color: #fff;
|
@include theme("btn_bg");
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.buyItems {
|
.buyItems {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jianjie {
|
.jianjie {
|
||||||
line-height: 30rpx; height: 60rpx; overflow: hidden;
|
line-height: 30rpx;
|
||||||
overflow: hidden!important;
|
height: 60rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
overflow: hidden !important;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
@include bov();
|
@include bov();
|
||||||
@@ -658,6 +817,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.otherItems {
|
.otherItems {
|
||||||
// border: 1px solid #dadada;
|
// border: 1px solid #dadada;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
@@ -665,6 +825,7 @@
|
|||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin: 20rpx 0;
|
margin: 20rpx 0;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
@@ -675,25 +836,50 @@
|
|||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tijiaoTitle{ justify-content: space-between;
|
|
||||||
text{display: block; width: 30%; padding: 8rpx 0; border-radius: 10rpx; text-align: center; border: 1px solid $themeColor; color:$themeColor;}
|
.tijiaoTitle {
|
||||||
text.active{background-color: $themeColor; color: #fff;}
|
justify-content: space-between;
|
||||||
|
|
||||||
|
text {
|
||||||
|
display: block;
|
||||||
|
width: 30%;
|
||||||
|
padding: 8rpx 0;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid $themeColor;
|
||||||
|
color: $themeColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
text.active {
|
||||||
|
background-color: $themeColor;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.guanli {
|
.guanli {
|
||||||
padding: 40rpx;
|
padding: 40rpx;
|
||||||
h3{text-align: center; margin-bottom: 20rpx; color: #333;}
|
|
||||||
.item { color: #333;
|
h3 {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
color: #333;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
|
||||||
.personbox {
|
.personbox {
|
||||||
display: inline-block; color: #666;
|
display: inline-block;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.arryItem {
|
.arryItem {
|
||||||
.arryItemSub {
|
.arryItemSub {
|
||||||
display: inline-block; color: #666;
|
display: inline-block;
|
||||||
|
color: #666;
|
||||||
// padding-left: 80rpx;
|
// padding-left: 80rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -702,11 +888,19 @@
|
|||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.adminName {color: #333;
|
|
||||||
|
.adminName {
|
||||||
|
color: #333;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.banjiJianjie{ color: #666; font-size: 30rpx; margin-top: 20rpx;}
|
|
||||||
|
.banjiJianjie {
|
||||||
|
color: #666;
|
||||||
|
font-size: 30rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.className {
|
.className {
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -733,6 +927,7 @@
|
|||||||
text.jieban {
|
text.jieban {
|
||||||
background-color: $themeColor
|
background-color: $themeColor
|
||||||
}
|
}
|
||||||
|
|
||||||
text.tuichu {
|
text.tuichu {
|
||||||
background-color: #f4a2a6;
|
background-color: #f4a2a6;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
<!-- <view class="curseSet" slot="right" @click="shuomingPage('/pages/course/courseSet',tagId,pid)"> -->
|
<!-- <view class="curseSet" slot="right" @click="shuomingPage('/pages/course/courseSet',tagId,pid)"> -->
|
||||||
<!-- <uni-icons type="info" size="24"></uni-icons> 课程说明</view> -->
|
<!-- <uni-icons type="info" size="24"></uni-icons> 课程说明</view> -->
|
||||||
</z-nav-bar>
|
</z-nav-bar>
|
||||||
<view class="classNewBtn">
|
<!-- 主任和副主任可以创建班级 -->
|
||||||
|
<view class="classNewBtn" v-if="isDirector">
|
||||||
<view class="box88 flex_box">
|
<view class="box88 flex_box">
|
||||||
<view class="" style="width: 60%; text-align: center;">
|
<view class="" style="width: 60%; text-align: center;">
|
||||||
<button type="primary" @click="pupShow = true">新开一个班级</button>
|
<button type="primary" @click="pupShow = true">新开一个班级</button>
|
||||||
@@ -132,6 +133,9 @@
|
|||||||
status: 3, // 0 不显示, 1 加载中,2 加载全部完成,3 暂无数据
|
status: 3, // 0 不显示, 1 加载中,2 加载全部完成,3 暂无数据
|
||||||
page: 1,
|
page: 1,
|
||||||
flag: true, // 函数是否执行完
|
flag: true, // 函数是否执行完
|
||||||
|
userMes: undefined,
|
||||||
|
isMonitor :undefined,
|
||||||
|
isDirector :undefined,
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -145,6 +149,7 @@
|
|||||||
this.pageTitle = e.title
|
this.pageTitle = e.title
|
||||||
this.pid = e.pid
|
this.pid = e.pid
|
||||||
console.log(e, '传入分类id')
|
console.log(e, '传入分类id')
|
||||||
|
this.getUserInfo()
|
||||||
this.getData()
|
this.getData()
|
||||||
// this.getCateList(this.tagId)
|
// this.getCateList(this.tagId)
|
||||||
},
|
},
|
||||||
@@ -185,6 +190,21 @@
|
|||||||
},
|
},
|
||||||
//方法
|
//方法
|
||||||
methods: {
|
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(){
|
enterClass(){
|
||||||
|
|
||||||
@@ -350,8 +370,8 @@
|
|||||||
}
|
}
|
||||||
.curseSet{margin-right: 20rpx; font-size: 28rpx; display: flex; align-items: center;}
|
.curseSet{margin-right: 20rpx; font-size: 28rpx; display: flex; align-items: center;}
|
||||||
.fixed {
|
.fixed {
|
||||||
position: fixed; top: 120rpx;
|
// position: fixed; top: 120rpx;
|
||||||
z-index: 1; width: 100%; background-color: #fff;
|
// z-index: 1; width: 100%; background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newBox {
|
.newBox {
|
||||||
|
|||||||
Reference in New Issue
Block a user