This commit is contained in:
daihh
2022-10-22 14:31:10 +08:00
7 changed files with 15 additions and 10 deletions

View File

@@ -79,7 +79,6 @@ export default {
courseImage courseImage
}, },
mounted() { mounted() {
console.log(this.items,'items');
}, },
methods: { methods: {
coudetail(item) { coudetail(item) {
@@ -104,8 +103,9 @@ export default {
.catch(() => {}); .catch(() => {});
}, },
contentTypeFilter(value) { contentTypeFilter(value) {
let val = Number(value);
let obj = {}; let obj = {};
switch (value) { switch (val) {
case 10: { case 10: {
obj.class = 'uc-course-type2'; obj.class = 'uc-course-type2';
obj.text = '录播'; obj.text = '录播';

View File

@@ -28,7 +28,7 @@
<div class="sign-text">{{ item.authorInfo.sign }}</div> <div class="sign-text">{{ item.authorInfo.sign }}</div>
</div> </div>
<div class="keyword-text clearfix"> <div class="keyword-text clearfix">
<div style="color:#2974D6;font-weight: 450;" v-if="item.info.orgDomain">{{ orgDomainTranslate(item.info.orgDomain) }}</div> <div style="color:#2974D6;font-weight: 450;" v-if="orgDomainTranslate(item.info.orgDomain)">{{ orgDomainTranslate(item.info.orgDomain) }}</div>
<div style="color:#2974D6;font-weight: 450;" v-if="item.info.orgDomain == '' && item.info.orgDomainParent">{{ orgDomainTranslate(item.info.orgDomainParent) }}</div> <div style="color:#2974D6;font-weight: 450;" v-if="item.info.orgDomain == '' && item.info.orgDomainParent">{{ orgDomainTranslate(item.info.orgDomainParent) }}</div>
<div style="color:#2974D6;font-weight: 450;" v-for="item,idx in item.info.majorType" :key="idx" >{{ majorTypeTranslate(item) }}</div> <div style="color:#2974D6;font-weight: 450;" v-for="item,idx in item.info.majorType" :key="idx" >{{ majorTypeTranslate(item) }}</div>
<div v-if="item.info.keyword1">{{ item.info.keyword1 }}</div> <div v-if="item.info.keyword1">{{ item.info.keyword1 }}</div>
@@ -119,7 +119,6 @@
}, },
orgDomainTranslate(code){ // 组织领域翻译 orgDomainTranslate(code){ // 组织领域翻译
if(code==''){return '';} if(code==''){return '';}
console.log(code,'code');
return this.orgDomainMap.get(code); return this.orgDomainMap.get(code);
}, },
} }

View File

@@ -119,7 +119,7 @@
apiFollow.remove(this.pageId).then(res=>{ apiFollow.remove(this.pageId).then(res=>{
if(res.status == 200) { if(res.status == 200) {
this.isFollowHas = false; this.isFollowHas = false;
this.$message.success("取消关注成功"); this.$message.success("取消关注成功");
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }

View File

@@ -52,6 +52,7 @@
}, },
mounted() { mounted() {
this.userName=this.name; this.userName=this.name;
this.usersex = this.sex;
if(this.avatar){ if(this.avatar){
if(this.avatar.startsWith('http')){ if(this.avatar.startsWith('http')){
this.userAvatar=this.avatar; this.userAvatar=this.avatar;
@@ -59,7 +60,8 @@
this.userAvatar=this.baseUrl+this.avatar; this.userAvatar=this.baseUrl+this.avatar;
} }
} }
this.usersex = this.sex; console.log(this.usersex)
}, },
methods:{ methods:{
toHome() { toHome() {

View File

@@ -14,8 +14,10 @@
</swiper> </swiper>
</div> </div>
<div class="personal-panel"> <div class="personal-panel">
<div class="personal-img"> <div class="personal-img">
<author-img v-if="userInfo.avatar" :avatar="userInfo.avatar" :aid="userInfo.aid" :noJump="false" :sex="userInfo.sex"></author-img> <author-img width="68px" height="68px" :avatar="userInfo.avatar" :aid="userInfo.aid" :noJump="false" :sex="userInfo.sex"></author-img>
{{ userInfo.avatar }}
<!-- {{ userInfo.avatar }} --> <!-- {{ userInfo.avatar }} -->
</div> </div>
<!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> --> <!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> -->
@@ -463,7 +465,7 @@
needHobbyShow:false,//是否显示兴趣爱好 needHobbyShow:false,//是否显示兴趣爱好
formatNum:formatUserNumber, formatNum:formatUserNumber,
cutOrgNamePath:cutOrgNamePath, cutOrgNamePath:cutOrgNamePath,
//userInfo: {}, // userInfo: {},
ankingList: [], ankingList: [],
answersList: [], answersList: [],
Popularity: [], Popularity: [],

View File

@@ -378,6 +378,9 @@
res.result.some(con => { res.result.some(con => {
if (con.id == item.contentId) { if (con.id == item.contentId) {
item.info = con; item.info = con;
if(typeof item.info.majorType == 'string') {
item.info.majorType = item.info.majorType.split(',');
}
return true; return true;
} else { } else {
return false; return false;

View File

@@ -562,7 +562,6 @@ export default {
if (res.status == 200) { if (res.status == 200) {
if (res.result.list.length > 0) { if (res.result.list.length > 0) {
this.isSeach = false; this.isSeach = false;
console.log(res.result.list)
res.result.list.forEach(item => { res.result.list.forEach(item => {
item.majorType = item.majorType.split(","); item.majorType = item.majorType.split(",");
item.isAll = false; item.isAll = false;