mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -275,9 +275,12 @@
|
||||
list.forEach((item,index)=>{
|
||||
res.result.some(author=>{
|
||||
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= author.avatar;
|
||||
item.sex=author.sex;
|
||||
item.orgInfo=author.orgInfo;
|
||||
return true;
|
||||
|
||||
@@ -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-txt">{{data.praises}}</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 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>
|
||||
@@ -36,6 +32,10 @@
|
||||
<!-- <view class="interact-bar-txt">{{data.favorites}}</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>
|
||||
|
||||
|
||||
@@ -383,6 +383,7 @@ export default {
|
||||
// } else {
|
||||
// res.result.avatar='';
|
||||
// }
|
||||
res.result.avatar=author.avatar;
|
||||
res.result.sex = author.sex;
|
||||
res.result.orgInfo=author.orgInfo;
|
||||
res.result.ucode=author.code;
|
||||
@@ -591,6 +592,7 @@ export default {
|
||||
// if(author.avatar!=''){
|
||||
// item.avatar=$this.fileUrl+author.avatar;
|
||||
// }
|
||||
item.avatar=author.avatar;
|
||||
item.sex=author.sex;
|
||||
item.ucode=author.code;
|
||||
item.orgInfo=author.orgInfo;
|
||||
|
||||
Reference in New Issue
Block a user