mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
合并
This commit is contained in:
@@ -92,7 +92,7 @@ const jsonRequest=function(method,url,data){
|
||||
header: headers,
|
||||
success:function(rs,statusCode){
|
||||
if(rs.statusCode==200 || rs.code.code == 200){
|
||||
if(rs.data.status==401 || rs.data.status==402 || rs.data.data.status==401){
|
||||
if(rs.data.status==401 || rs.data.status==402 || (rs.data.data && rs.data.data.status==401)){
|
||||
removeToken();
|
||||
toLogin(reUrl);
|
||||
// let loginPath=config.loginPath;
|
||||
|
||||
@@ -78,8 +78,8 @@
|
||||
{"path" : "pages/study/courseStudy","style" : {"navigationBarTitleText": "课程学习"}},
|
||||
{"path" : "pages/study/audioTest","style" : {"navigationBarTitleText": "音频测试"}},
|
||||
{"path" : "pages/study/videoTest","style" : {"navigationBarTitleText": "视频频测试"}},
|
||||
{"path" : "pages/lecturer/certification/list","style" : {"navigationBarTitleText": "个人信息"}},
|
||||
{"path" : "pages/lecturer/certification/info","style" : {"navigationBarTitleText": "个人信息"}}
|
||||
{"path" : "pages/lecturer/certification/list","style" : {"navigationBarTitleText": "讲师信息"}},
|
||||
{"path" : "pages/lecturer/certification/info","style" : {"navigationBarTitleText": "讲师信息"}}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
<template>
|
||||
<view class="main">
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
<view class="back-icon" @click="back()">
|
||||
<u-icon style="position: absolute;" name="arrow-left"></u-icon>
|
||||
<text class="back-icon-title">讲师信息</text>
|
||||
</view>
|
||||
<u-modal :show="showFlag" :closeOnClickOverlay="true" :showCancelButton="true" @cancel="hideDialog" @confirm="submit" :content="scoreNum>80?'您给讲师打的分数是'+scoreNum+'分, 是否确认提交?':'您给讲师打的分数是'+scoreNum+'分, 低于认证通过的标准80分, 是否确认提交?'"></u-modal>
|
||||
<div class="info">
|
||||
<div class="info_top">
|
||||
<div class="header_img">
|
||||
<img style="width: 144rpx;height: 144rpx;border-radius: 72rpx;" :src="lecturersInfo.avatar&&imageBaseUrl+lecturersInfo.avatar || (lecturersInfo.gender==2?'../../../static/images/lecturer/teacher-girl.png':'../../../static/images/lecturer/teacher.png')"></img>
|
||||
<div class="header_img" v-if="lecturersInfo.id">
|
||||
<img style="width: 144rpx;height: 144rpx;border-radius: 72rpx;" :src="lecturersInfo.avatar&&imageBaseUrl+lecturersInfo.avatar || (lecturersInfo.gender==2?'../../../static/images/lecturer/teacher-girl.png':lecturersInfo.gender==1?'../../../static/images/lecturer/teacher.png':'')"></img>
|
||||
</div>
|
||||
<div class="base_info">
|
||||
<div class="base_info_1">
|
||||
@@ -101,7 +105,7 @@
|
||||
<u-number-box v-model="score.eight" :disabled="scoreDisabled" min="0" max="5" @change="stepperChange('eight')"></u-number-box>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" style="border: none;padding-bottom: 100px;margin-bottom: 0px;">
|
||||
<div class="topic">
|
||||
<div class="substance">
|
||||
3.普通话标准,语言文明健康,讲授适度、接地气;
|
||||
<span>(5分)</span>
|
||||
@@ -111,6 +115,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="curriculumDevelopment">
|
||||
<div class="title">评语</div>
|
||||
<div class="topic" style="border: none;padding-bottom: 100px;margin-bottom: 0px;">
|
||||
<u--textarea v-model="remark" placeholder="请输入内容" count maxlength="50" :disabled="scoreDisabled"></u--textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="foot" >
|
||||
<view class="fraction">您的评分:<span>{{scoreNum}}分</span></view>
|
||||
<view class="submit" v-if="!lecturersInfo.scores" @click="showDialog()">提交</view>
|
||||
@@ -139,7 +149,8 @@
|
||||
},
|
||||
scoreDisabled: false,
|
||||
scoreNum: 0,
|
||||
reviewId: ''
|
||||
reviewId: '',
|
||||
remark: '',
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
@@ -154,6 +165,9 @@
|
||||
this.info(options.teacherId)
|
||||
},
|
||||
methods:{
|
||||
back(){
|
||||
uni.navigateBack();
|
||||
},
|
||||
showDialog(){
|
||||
if(this.scoreNum<=0){
|
||||
this.$refs.uToast.show({message:"请先进行评份",type:'error'});
|
||||
@@ -175,8 +189,8 @@
|
||||
}).then(res => {
|
||||
console.log('res::',res)
|
||||
if (res.code == 200 && res.data) {
|
||||
|
||||
this.lecturersInfo = res.data || {}
|
||||
this.lecturersInfo = res.data.examineTeacher || {}
|
||||
this.remark = this.lecturersInfo.comment
|
||||
//this.lecturersInfo.scores="" //"1,2,3,1,2,3,1,2,3"
|
||||
if(this.lecturersInfo.scores&&this.lecturersInfo.scores.length>1){
|
||||
this.scoreDisabled = true
|
||||
@@ -204,7 +218,8 @@
|
||||
apiLecturerCert.lecturerCertificationSave({
|
||||
teacherId: parseInt(this.teacherId),
|
||||
score: this.scoreNum,
|
||||
scores: String(scores)
|
||||
scores: String(scores),
|
||||
comment: this.remark
|
||||
}).then(res => {
|
||||
// 评分完成回列表
|
||||
if (res.code == 200) {
|
||||
@@ -221,6 +236,18 @@
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.back-icon{
|
||||
background: #ffffff;
|
||||
background-position: 0 0;
|
||||
position: relative;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.back-icon-title{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.main {
|
||||
background: #F9F9F9;
|
||||
overflow:hidden ;
|
||||
@@ -233,6 +260,7 @@
|
||||
display: flex;
|
||||
margin-left: 9px;
|
||||
align-items: center;
|
||||
min-height: 87px;;
|
||||
.header_img {
|
||||
img {
|
||||
width: 144rpx;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view class="ranking-list-info">
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
<view class="back-icon" @click="back()">
|
||||
<u-icon style="position: absolute;" name="arrow-left"></u-icon>
|
||||
<text class="back-icon-title">个人信息</text>
|
||||
<view class="back-icon">
|
||||
<!-- <u-icon style="position: absolute;" name="arrow-left"></u-icon> -->
|
||||
<text class="back-icon-title">讲师信息</text>
|
||||
</view>
|
||||
<view class="ranking-list-box">
|
||||
<view class="main">
|
||||
@@ -11,7 +11,7 @@
|
||||
<view class="lecturers">
|
||||
<view v-for="( itemes, index) in lecturersList" :key="itemes.id" class="lecturers_item" @click="gotoInfo(itemes)">
|
||||
<view class="avatar">
|
||||
<image style="width: 144rpx;height: 144rpx;border-radius: 72rpx;" :src="itemes.avatar&&imageBaseUrl+itemes.avatar || (itemes.gender==2?'../../../static/images/lecturer/teacher-girl.png':'../../../static/images/lecturer/teacher.png')"></image>
|
||||
<img style="width: 144rpx;height: 144rpx;border-radius: 72rpx;" :src="itemes.avatar&&imageBaseUrl+itemes.avatar || (itemes.gender==2?'../../../static/images/lecturer/teacher-girl.png':(itemes.gender==1?'../../../static/images/lecturer/teacher.png':''))"></img>
|
||||
</view>
|
||||
<view class="information">
|
||||
<view class="information_1">
|
||||
@@ -24,9 +24,10 @@
|
||||
<!-- <view class="rank">{{ itemes.bandCode }}</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="itemes.score && itemes.score<=80" class="status" style="color: #FF4040">{{itemes.score}}分</view>
|
||||
<view v-if="itemes.score && itemes.score>80" class="status" style="color:#31AF0D">{{itemes.score}}分</view>
|
||||
<view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</view>
|
||||
<view v-if="itemes.score && itemes.score<80" class="status" style="color: #FF4040">{{itemes.score}}分</view>
|
||||
<view v-if="itemes.score && itemes.score>=80" class="status" style="color:#31AF0D">{{itemes.score}}分</view>
|
||||
<view v-if="!itemes.score && examineResult==0" class="status" style="color:#409EFF">去评分</view>
|
||||
<view v-if="!itemes.score && examineResult==1" class="status" style="color:#d9d9d9">已结束</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-empty v-if="lecturersList.length == 0 && lecturersList!==''" mode="data" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty>
|
||||
@@ -42,6 +43,7 @@
|
||||
data() {
|
||||
return {
|
||||
lecturersList: '',
|
||||
examineResult: '',
|
||||
imageBaseUrl: config.fileUrl
|
||||
}
|
||||
},
|
||||
@@ -58,6 +60,7 @@
|
||||
reviewId: this.reviewId
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.examineResult = res.data.examineResult
|
||||
this.lecturersList = res.data.list
|
||||
} else {
|
||||
this.lecturersList = []
|
||||
@@ -67,10 +70,11 @@
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
back(){
|
||||
uni.navigateBack();
|
||||
},
|
||||
gotoInfo(item){
|
||||
if(this.examineResult==1&&!item.score){
|
||||
this.$refs.uToast.show({message:"该评审已结束",type:'error'});
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
url:'/pages/lecturer/certification/info?reviewId='+this.reviewId+'&teacherId='+item.id
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user