page css edit

This commit is contained in:
joshen
2024-05-14 21:02:41 +08:00
parent 258812b777
commit 6a38f22dfa
2 changed files with 43 additions and 48 deletions

View File

@@ -169,20 +169,11 @@
apiLecturerCert.lecturerCertificationInfo({ apiLecturerCert.lecturerCertificationInfo({
teacherId: teacherId teacherId: teacherId
}).then(res => { }).then(res => {
console.log('submit res::', res) console.log('submit res::', res.data.length)
if (res.code == 200 &&res.data.length) { if (res.code == 200 &&res.data.length) {
this.lecturersInfo = res.data[0] this.lecturersInfo = res.data[0] || {}
// list.forEach((item, index) => {
// res.result.some(author => {
// if (author.aid == item.aid) {
// item.authorInfo = author;
// return true;
// } else {
// return false;
// }
// });
// });
} else { } else {
this.lecturersInfo = {}
this.$refs.uToast.show({message:res.msg,type:'error'}); this.$refs.uToast.show({message:res.msg,type:'error'});
} }
}); });
@@ -193,9 +184,11 @@
teacherId: parseInt(this.teacherId), teacherId: parseInt(this.teacherId),
score: this.scoreNum, score: this.scoreNum,
}).then(res => { }).then(res => {
console.log('submit res::', res) // 评分完成回列表
if (res.code == 200) { if (res.code == 200) {
this.lecturersList = res.data uni.navigateTo({
url:'/pages/lecturer/certification/list?reviewId='+this.teacherId
})
} else { } else {
this.$refs.uToast.show({message:res.msg,type:'error'}); this.$refs.uToast.show({message:res.msg,type:'error'});
} }

View File

@@ -1,5 +1,6 @@
<template> <template>
<view class="ranking-list-info"> <view class="ranking-list-info">
<u-toast ref="uToast"></u-toast>
<view class="back-icon" @click="back()"> <view class="back-icon" @click="back()">
<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>
@@ -28,7 +29,7 @@
<view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</view> <view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</view>
</view> </view>
</view> </view>
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty> <u-empty v-if="lecturersList.length == 0 && lecturersList!==''" mode="list" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty>
</view> </view>
</view> </view>
</view> </view>
@@ -58,7 +59,8 @@
if (res.code == 200) { if (res.code == 200) {
this.lecturersList = res.data this.lecturersList = res.data
} else { } else {
this.$message.error(res.message); this.lecturersList = []
this.$refs.uToast.show({message:res.msg,type:'error'});
} }
}); });
}, },