暂存
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
]">
|
||||
{{getClassStatus}}
|
||||
</view>
|
||||
<h3 style="margin-top: 20rpx; font-size: 28rpx;">班级名称:{{thisClass.title}}</h3>
|
||||
<view class="welComeText">
|
||||
<text>【 班内职务:{{getRoleName}} 】</text>
|
||||
</view>
|
||||
@@ -129,7 +130,7 @@
|
||||
<rich-text class="banjiJianjie" :nodes="formatRichText(thisClass.content)"></rich-text>
|
||||
<view class="qrcode" v-if="thisClass.qrcode != ''">
|
||||
<uni-section class="mb-10 nobg" title="群二维码" type="line"></uni-section>
|
||||
<image :src="thisClass.qrcode" mode="widthFix"></image>
|
||||
<image :src="thisClass.qrcode" mode="widthFix" @click="previewImage(thisClass.qrcode)"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -313,13 +314,13 @@
|
||||
beforeDestroy() {
|
||||
clearInterval(this.interval)
|
||||
},
|
||||
onBackPress() {
|
||||
if (this.$refs.fab.isShow) {
|
||||
this.$refs.fab.close()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
// onBackPress() {
|
||||
// if (this.$refs.fab.isShow) {
|
||||
// this.$refs.fab.close()
|
||||
// return true
|
||||
// }
|
||||
// return false
|
||||
// },
|
||||
onShow() {
|
||||
this.getClassInfo()
|
||||
|
||||
@@ -469,6 +470,18 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
previewImage(url) {
|
||||
console.log(url);
|
||||
uni.previewImage({
|
||||
urls: [url],
|
||||
// longPressActions: {
|
||||
// itemList: ["很抱歉,暂不支持保存图片到本地"],
|
||||
// success: function(res) {
|
||||
// // console.log(res,'+++++')
|
||||
// },
|
||||
// },
|
||||
});
|
||||
},
|
||||
titleClick(item, textIndex) {
|
||||
this.tijiaoTitleId = textIndex
|
||||
console.log('e班内提交子按钮');
|
||||
@@ -507,6 +520,7 @@
|
||||
// 获取个人信息
|
||||
if (this.userInfo.id != undefined) {
|
||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||
uni.hideLoading()
|
||||
this.userMes = res.result;
|
||||
this.isMonitor = res.isMonitor
|
||||
this.isDirector = res.isDirector
|
||||
@@ -520,6 +534,7 @@
|
||||
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: '获取用户信息失败',
|
||||
icon: 'none'
|
||||
@@ -615,7 +630,7 @@
|
||||
// 改变班级状态
|
||||
changeClassStatu(statusCode) {
|
||||
if (statusCode == '1') {
|
||||
// console.log('this.admins',this.admins);
|
||||
console.log('this.admins',this.admins);
|
||||
if (this.admins.list.length == 0) {
|
||||
uni.showToast({
|
||||
title: '请先完成管理人员的设置',
|
||||
@@ -630,6 +645,7 @@
|
||||
data: {
|
||||
"id": this.thisClass.id,
|
||||
"title": this.thisClass.title,
|
||||
"qrcode": this.thisClass.qrcode,
|
||||
"state": statusCode, //小班状态0待开班1已开班2完成
|
||||
"icon": this.thisClass.icon,
|
||||
"content": this.thisClass.content,
|
||||
@@ -652,10 +668,10 @@
|
||||
}).catch(e => {
|
||||
console.log(e, '数据报错')
|
||||
// this.status = 3
|
||||
uni.showToast({
|
||||
title: e.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: e.msg,
|
||||
// icon: 'error'
|
||||
// })
|
||||
});
|
||||
},
|
||||
taskEdit(item) {
|
||||
@@ -739,6 +755,7 @@
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
console.log('res--------',this.classId,res,);
|
||||
this.refresh = false
|
||||
if (res.code == 0) {
|
||||
this.isHave = res.result.isJoin
|
||||
@@ -800,7 +817,7 @@
|
||||
}
|
||||
|
||||
.welComeText {
|
||||
|
||||
font-size: 28rpx;
|
||||
padding:20rpx 0;
|
||||
color: #e58d44;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user