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