From 62f5fa0bb30f9864cce13aa318f8e6300e315975 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Fri, 11 Nov 2022 15:41:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E6=94=B6=E8=97=8F=E5=A4=B4?=
=?UTF-8?q?=E5=83=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/my/myFavorites.vue | 35 ++++++++++++++++++++++++++++-------
1 file changed, 28 insertions(+), 7 deletions(-)
diff --git a/pages/my/myFavorites.vue b/pages/my/myFavorites.vue
index 562ad75..4ae1e63 100644
--- a/pages/my/myFavorites.vue
+++ b/pages/my/myFavorites.vue
@@ -13,7 +13,6 @@
问答
-
@@ -29,8 +28,7 @@
-
- {{ item.authorName }}
+
@@ -212,7 +210,13 @@ export default {
let userIds = [];
if (this.conType == 1) {
rs.result.list.forEach(item => {
+ console.log(item)
+ item.avatar = '';
+ item.orgInfo = '';
+ item.sex = null;
+ userIds.push(item.authorId);
this.courseList.push(item);
+ this.loadUserInfos(rs.result.list, userIds);
});
}
if (this.conType == 2) {
@@ -256,7 +260,7 @@ export default {
res.result.some(author => {
if (author.aid == item.sysCreateAid) {
if (author.avatar != '') {
- item.avatar = $this.$config.fileUrl + author.avatar;
+ item.avatar = author.avatar;
} else {
item.avatar = '';
}
@@ -267,12 +271,29 @@ export default {
return false;
});
});
- } else {
+ } else if (this.conType == 1){
+ list.forEach(item => {
+ res.result.some(author => {
+ if (author.aid == item.authorId) {
+ if (author.avatar != '') {
+ item.avatar = author.avatar;
+ } else {
+ item.avatar = '';
+ }
+ item.sex = author.sex;
+ item.orgInfo = author.orgInfo;
+ return true;
+ }
+ return false;
+ });
+ });
+ }
+ else if (this.conType == 4) {
list.forEach(item => {
res.result.some(author => {
if (author.aid == item.question.sysCreateAid) {
if (author.avatar != '') {
- item.avatar = $this.$config.fileUrl + author.avatar;
+ item.avatar = author.avatar;
} else {
item.avatar = '';
}
@@ -575,7 +596,7 @@ export default {
/deep/ .course-info {
display: flex;
uni-image{
- border-radius:8upx;
+ // border-radius:8upx;
}
.course-title{
display: flex;