mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 11:26:47 +08:00
提交
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user