暂存
This commit is contained in:
@@ -62,8 +62,7 @@
|
||||
</text>
|
||||
<text class="txt555" v-else>
|
||||
匿名用户
|
||||
</text>
|
||||
<!-- <text @click.stop="outClass(item.student.id)" class="outBtn">踢出班级</text> -->
|
||||
</text>
|
||||
<!-- <text class="userType" v-if="item.student.vip == '1'">超级VIP用户</text>
|
||||
<text class="userType" v-if="item.student.vip == '2' ">医学VIP用户</text>
|
||||
<text class="userType" v-if="item.student.vip == '3' ">国学VIP用户</text> -->
|
||||
@@ -78,9 +77,22 @@
|
||||
</view>
|
||||
<view class="" v-if="tabId == '0'">
|
||||
<view class="otherItems flex_box">
|
||||
<view><text class="ciyao">创建日期</text><text
|
||||
<view class="itt" v-if="thisClass.state == 0">
|
||||
<text class="ciyao">创建日期</text>
|
||||
<text
|
||||
class="mainTxt">{{thisClass.createTime.substring(0,10)}}</text>
|
||||
</view>
|
||||
<view class="itt" v-if="thisClass.state == 1">
|
||||
<text class="ciyao">开班日期</text>
|
||||
<text
|
||||
class="mainTxt">{{thisClass.startTime.substring(0,10)}}</text>
|
||||
</view>
|
||||
|
||||
<view class="itt" v-if="thisClass.state == 2">
|
||||
<text class="ciyao">结班日期</text>
|
||||
<text
|
||||
class="mainTxt">{{thisClass.endTime.substring(0,10)}}</text>
|
||||
</view>
|
||||
<view><text class="ciyao">班级类型</text>
|
||||
<text class="mainTxt" v-if="classModel.type == '0'">普通小班</text>
|
||||
<text class="mainTxt" v-if="classModel.type == '1'">联合班</text>
|
||||
@@ -724,63 +736,7 @@
|
||||
},
|
||||
taskEdit(item) {
|
||||
console.log('taskEdit'.item);
|
||||
},
|
||||
// 退出班级 // 踢出班级
|
||||
outClass(userId) {
|
||||
let that = this
|
||||
var _useId = undefined
|
||||
var _txt = ''
|
||||
if (userId) {
|
||||
_useId = userId
|
||||
_txt = '即将踢出该学员,是否继续?'
|
||||
} else {
|
||||
_useId = this.userInfo.id
|
||||
_txt = '您即将退出当前班级,是否继续?'
|
||||
}
|
||||
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: `${_txt}`,
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
// console.log('用户点击确定');
|
||||
$http.request({
|
||||
url: "common/class/quitClass",
|
||||
method: "POST",
|
||||
data: {
|
||||
"classId": that.classId,
|
||||
"userId": _useId
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
that.isHave = true
|
||||
uni.showToast({
|
||||
title: `操作成功!`,
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.getClassInfo()
|
||||
}, 200)
|
||||
}
|
||||
}).catch(e => {
|
||||
console.log(e, '数据报错')
|
||||
// this.status = 3
|
||||
uni.showToast({
|
||||
title: `操作失败`,
|
||||
icon: 'error'
|
||||
})
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
return
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
showmoreTask() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/miniClass/classCaskList?id=${this.thisClass.id}&type=${this.tijiaoTitleId}`
|
||||
|
||||
Reference in New Issue
Block a user