This commit is contained in:
zhaofang
2022-11-14 19:47:22 +08:00
parent feb32a7b36
commit 00cf84c906
3 changed files with 10 additions and 5 deletions

View File

@@ -275,9 +275,12 @@
list.forEach((item,index)=>{ list.forEach((item,index)=>{
res.result.some(author=>{ res.result.some(author=>{
if(author.aid==item.sysCreateAid){ if(author.aid==item.sysCreateAid){
if(author.avatar != '') { if(item.parentId == "-1" ) {
item.avatar= author.avatar;
} else if(author.avatar != ''){
item.avatar=this.$config.fileUrl + author.avatar; item.avatar=this.$config.fileUrl + author.avatar;
} }
// item.avatar= author.avatar;
item.sex=author.sex; item.sex=author.sex;
item.orgInfo=author.orgInfo; item.orgInfo=author.orgInfo;
return true; return true;

View File

@@ -25,10 +25,6 @@
<view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/artice-praise.png" alt="" ></view> <view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/artice-praise.png" alt="" ></view>
<!-- <view class="interact-bar-txt">{{data.praises}}</view> --> <!-- <view class="interact-bar-txt">{{data.praises}}</view> -->
</view> </view>
<view v-if="shares" @click="addShare" class="interact-bar-item">
<view class="interact-bar-icon"><image style="width:40upx;height: 40upx;" src="/static/images/icon/share.png" alt=""></view>
<!-- <view class="interact-bar-txt">分享</view> -->
</view>
<view v-if="favorites" @click="addFavorite()" class="interact-bar-item"> <view v-if="favorites" @click="addFavorite()" class="interact-bar-item">
<view class="interact-bar-icon" v-if="isFavorite"><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite-active.png" alt="" ></view> <view class="interact-bar-icon" v-if="isFavorite"><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite-active.png" alt="" ></view>
<view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite.png" alt="" ></view> <view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite.png" alt="" ></view>
@@ -36,6 +32,10 @@
<!-- <view class="interact-bar-txt">{{data.favorites}}</view> --> <!-- <view class="interact-bar-txt">{{data.favorites}}</view> -->
<!-- 这里需要一个是否已经收藏的变量来控制已收藏就显示收藏数 --> <!-- 这里需要一个是否已经收藏的变量来控制已收藏就显示收藏数 -->
</view> </view>
<view v-if="shares" @click="addShare" class="interact-bar-item">
<view class="interact-bar-icon"><image style="width:40upx;height: 40upx;" src="/static/images/icon/share.png" alt=""></view>
<!-- <view class="interact-bar-txt">分享</view> -->
</view>
</view> </view>
</view> </view>

View File

@@ -383,6 +383,7 @@ export default {
// } else { // } else {
// res.result.avatar=''; // res.result.avatar='';
// } // }
res.result.avatar=author.avatar;
res.result.sex = author.sex; res.result.sex = author.sex;
res.result.orgInfo=author.orgInfo; res.result.orgInfo=author.orgInfo;
res.result.ucode=author.code; res.result.ucode=author.code;
@@ -591,6 +592,7 @@ export default {
// if(author.avatar!=''){ // if(author.avatar!=''){
// item.avatar=$this.fileUrl+author.avatar; // item.avatar=$this.fileUrl+author.avatar;
// } // }
item.avatar=author.avatar;
item.sex=author.sex; item.sex=author.sex;
item.ucode=author.code; item.ucode=author.code;
item.orgInfo=author.orgInfo; item.orgInfo=author.orgInfo;