mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 11:56:47 +08:00
page css edit
This commit is contained in:
@@ -169,20 +169,11 @@
|
||||
apiLecturerCert.lecturerCertificationInfo({
|
||||
teacherId: teacherId
|
||||
}).then(res => {
|
||||
console.log('submit res::', res)
|
||||
console.log('submit res::', res.data.length)
|
||||
if (res.code == 200 &&res.data.length) {
|
||||
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;
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
this.lecturersInfo = res.data[0] || {}
|
||||
} else {
|
||||
this.lecturersInfo = {}
|
||||
this.$refs.uToast.show({message:res.msg,type:'error'});
|
||||
}
|
||||
});
|
||||
@@ -193,9 +184,11 @@
|
||||
teacherId: parseInt(this.teacherId),
|
||||
score: this.scoreNum,
|
||||
}).then(res => {
|
||||
console.log('submit res::', res)
|
||||
// 评分完成回列表
|
||||
if (res.code == 200) {
|
||||
this.lecturersList = res.data
|
||||
uni.navigateTo({
|
||||
url:'/pages/lecturer/certification/list?reviewId='+this.teacherId
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({message:res.msg,type:'error'});
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<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>
|
||||
@@ -28,7 +29,7 @@
|
||||
<view v-if="!itemes.score" class="status" style="color:#409EFF">去评分</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>
|
||||
@@ -58,7 +59,8 @@
|
||||
if (res.code == 200) {
|
||||
this.lecturersList = res.data
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
this.lecturersList = []
|
||||
this.$refs.uToast.show({message:res.msg,type:'error'});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user