暂存
This commit is contained in:
@@ -12,11 +12,8 @@
|
||||
</view>
|
||||
<view class="className">
|
||||
<h3>{{thisClass.title}}</h3>
|
||||
<text class="tuichu" v-if="thisClass.state == 0" @click="outClass()">退出班级</text>
|
||||
</view>
|
||||
<!-- <view class="gotoExams" v-if="thisClass.state == '2'">
|
||||
<text>去考试</text>
|
||||
</view> -->
|
||||
<text class="tuichu" v-if="thisClass.state == 0 && isHave" @click="outClass()">退出班级</text>
|
||||
</view>
|
||||
<view class="otherItems flex_box">
|
||||
<view v-if="thisClass.state == 0">
|
||||
<text class="ciyao">创建日期</text><text
|
||||
@@ -59,8 +56,23 @@
|
||||
</view>
|
||||
<view><text class="ciyao">思考题分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.questionScore}}</i>分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="optionsBox" >
|
||||
<view class="">
|
||||
<view class="gotoExams" >
|
||||
<text>去考试</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="chengji">
|
||||
<view>总成绩为:<text class="scoreNumber greenScore">90</text>分 <text class="c999">(50考试分+40平时表现分)</text></view>
|
||||
<view style="margin-top: 20rpx;">恭喜您获得<text class="greenScore">A证</text>, <text class="small_btn border_radius_10 zhengshu">查看证书</text></view>
|
||||
<view style="margin-top: 20rpx; text-align: center;">很遗憾,您的成绩未达标</view>
|
||||
<view class="" style="margin-top: 20rpx; text-align: center;">
|
||||
<text class="small_btn chongxiu border_radius_10">加入新班级重修</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="mainBox">
|
||||
<view class="">
|
||||
@@ -168,11 +180,15 @@
|
||||
<view class="leve1 flex_box">
|
||||
<text>{{item.title}}</text>
|
||||
</view>
|
||||
<view class="leve2">
|
||||
{{item.content}}
|
||||
<view :class="['leve2']">
|
||||
<view :class="[item.zhedie ? '' : 'zhedie']">
|
||||
{{item.content}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="leve3">
|
||||
<view class="tips flex_box">
|
||||
<view class="btn1" @click.stop="changeZheDie(item, index)">{{item.zhedie ? '收起' : '展开'}}</view>
|
||||
<!-- <text>发布者:{{item.createUser.nickname != null && item.createUser.nickname != '' ? item.createUser.nickname : '匿名用户'}}</text> -->
|
||||
<text style="" class="date">日期:{{item.createTime}}</text>
|
||||
</view>
|
||||
@@ -203,12 +219,10 @@
|
||||
<u-divider text="暂无数据"></u-divider>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomBox" v-if=" thisClass.state == '0'&& students.length < thisClass.number">
|
||||
<view class="bottomBox" v-if=" thisClass.state == '0' && !isHave && students.length < thisClass.number">
|
||||
<button type="primary" @click="addClass">一键加入班级</button>
|
||||
</view>
|
||||
<!-- 管理弹出 -->
|
||||
@@ -264,7 +278,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<z-navigation></z-navigation>
|
||||
<!-- <z-navigation></z-navigation> -->
|
||||
|
||||
</view>
|
||||
</template>
|
||||
@@ -454,6 +468,10 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
changeZheDie(item, index){
|
||||
|
||||
this.taskList[index].zhedie = !this.taskList[index].zhedie
|
||||
},
|
||||
// 查询平时表现分
|
||||
getScore() {
|
||||
$http.request({
|
||||
@@ -565,7 +583,6 @@
|
||||
this.loadFlag = true;
|
||||
this.pPage++;
|
||||
var data = {
|
||||
|
||||
"limit": 10,
|
||||
"page": this.pPage,
|
||||
"classId": this.thisClass.id,
|
||||
@@ -587,6 +604,9 @@
|
||||
if (res.page.records.length > 0) {
|
||||
console.log('数据获取成功', res.page.records);
|
||||
var lis = res.page.records
|
||||
lis.forEach(item => {
|
||||
item.zhedie = false
|
||||
})
|
||||
this.taskList = this.taskList.concat(lis)
|
||||
if (res.page.pages > 1) {
|
||||
this.taskHaveMore = true
|
||||
@@ -1078,7 +1098,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.zhengshu{color: #ffaa7f; border:1px solid #ffaa7f}
|
||||
.chongxiu{color: #00aaff; border:1px solid #00aaff}
|
||||
.greenScore{color: #55aa00;}
|
||||
.blueScore{color: #00aaff;}
|
||||
.redScore{color: #ff8a8c;}
|
||||
.scoreNumber{font-size: 60rpx;}
|
||||
.chengji{padding-top: 20rpx; margin-top: 20rpx; border-top: 1px solid #eee; }
|
||||
.manBtnBox {
|
||||
justify-content: center;
|
||||
|
||||
@@ -1167,7 +1193,7 @@
|
||||
}
|
||||
|
||||
.date {}
|
||||
|
||||
.btn1{color: $themeColor; font-size: 30rpx;}
|
||||
.btn {
|
||||
border: 1px solid $themeColor;
|
||||
margin-top: 20rpx;
|
||||
@@ -1185,7 +1211,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.zhedie{
|
||||
@include bov(2);
|
||||
}
|
||||
.nobg {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user