This commit is contained in:
zhaofang
2022-11-16 14:51:16 +08:00
parent 4caa17aadb
commit 0fdce434dc
5 changed files with 28 additions and 12 deletions

View File

@@ -28,6 +28,9 @@ send 姓名
const pagelist=function(query){
return ajax.post('/xboe/m/comment/tome/page',query);
}
const mobilepage=function(query){
return ajax.post('/xboe/m/comment/tome/mobilepage',query);
}
/*
保存评论
{Object }
@@ -87,5 +90,6 @@ export default{
pageQuery,
reply,
replyList,
delReply
delReply,
mobilepage
}

View File

@@ -18,12 +18,11 @@
<view v-if="users.length>0" style="overflow-x: auto;height: 160upx;white-space: nowrap;overflow-y: hidden;">
<view style="line-height: 60upx;display: inline-block;margin: 10upx;" v-for="(su,suidx) in users" :key="suidx" @click="confirmShare(su)">
<view style="text-align: center;"><!--用户头像-->
<view v-if="su.avatar"><image :src="su.avatar" shape="circle" style="width: 80upx;height: 80upx;"></image></view>
<view v-if="su.avatar" style="border-radius: 50%;"><image :src="$config.fileUrl+su.avatar" shape="circle" style="width: 80upx;height: 80upx;border-radius: 50%;"></image></view>
<view v-else>
<image v-if="su.sex === 1 " shape="circle" src="../../static/images/man.png" style="width: 80upx;height: 80upx;" alt=""></image>
<image v-else shape="circle" src="../../static/images/woman.png" style="width: 80upx;height: 80upx;" alt=""></image>
</view>
</view>
<view style="text-align: center;font-size: 22upx;">{{su.name}}({{su.code}})</view>
</view>
@@ -144,7 +143,7 @@
// item.sex=1;
// ids.push(item.aid);
// }
item.avatar='';
// item.avatar='';
item.sex=1;
ids.push(item.aid);
});
@@ -242,9 +241,9 @@
item.avatar= author.avatar;
item.code= author.code;
item.sex=author.sex;
if(author.avatar != '') {
item.avatar=this.$config.fileUrl + author.avatar;
}
// if(author.avatar != '') {
// item.avatar=this.$config.fileUrl + author.avatar;
// }
return true;
}else{
return false;

View File

@@ -147,7 +147,10 @@
} else {
$this.follow.list.splice(this.cancelIndex,1);
}
this.$refs.messager.show({message:'停止关注成功',type:'info'});
uni.showToast({
title:'停止关注成功'
})
// this.$refs.messager.show({message:'停止关注成功',type:'info'});
}
})
},
@@ -226,7 +229,7 @@
});
});
} else {
this.$message.error(res.message);
// this.$message.error(res.message);
}
});
},

View File

@@ -46,7 +46,6 @@
loadStatus:'noMore',//more,loading,noMore
query:{
pageIndex:1,//当前页
type:null,//当前只限于文章
pageSize:10,//条数
},//查询条件
message:{
@@ -133,7 +132,7 @@
this.data=[]
this.pageIndex=1
}
apiComments.pagelist(this.query).then(res=>{
apiComments.mobilepage(this.query).then(res=>{
if (res.status == 200) {
this.total=res.result.count;
let ids = [];

View File

@@ -743,6 +743,17 @@
})
}
}
}
</script>
<style lang="scss" scoped>
/deep/ .u-modal{
width: 288px !important;
border-radius: 28upx;
}
/deep/ .u-modal__content{
text-align: center;
font-size: 36upx;
font-weight: 600;
color: #333333;
padding: 33px 25px 33px 25px;