This commit is contained in:
cansnow
2025-12-02 03:05:52 +08:00
parent b4c9ae1b67
commit 29be534f22
24 changed files with 1118 additions and 372 deletions
@@ -13,8 +13,7 @@
:style="'height:'+scrollViewHeight+'px'">
<!-- 我的朋友圈基本信息 -->
<view class="content-imgbox">
<!--circleBgImg是vuex变量不在本页面定义 -->
<image class="bgimg" v-if="circleBgImg" :src="circleBgImg" mode="scaleToFill" @tap="showSheet"></image>
<image class="bgimg" v-if="settings.bg" :src="settings.bg" mode="scaleToFill" @tap="showSheet"></image>
<view class="bgimg" v-else @tap="showSheet"></view>
<MyAvatar class="headimg" :src="selfInfo.faceURL" :desc="selfInfo.nickname || selfInfo.remark"
@@ -269,12 +268,21 @@
selfInfo() {
return this.$store.getters.storeSelfInfo;
},
circleData() {
return this.$store.getters.storeCircleData;
},
vuex_friendCircleUnreadCount() {
return this.$store.getters.storeCircleUnreadCount;
},
last_unread_item() {
return this.$store.getters.storeCircleLastUnreadItem;
},
settings() {
return this.$store.getters.storeCircleSettings;
},
},
data() {
return {
circleData:[],
circleBgImg:"",
vuex_friendCircleUnreadCount:0,
loadMoreFlag:true,//可以分页加载吗
platFrom:'',
girdItemCustomStyle:{
@@ -352,9 +360,8 @@
let newPraise= friendCircleMessage.content.praise;
const index = that.circleData.findIndex(i => i.id ==id);
that.circleData[index].praise=JSON.parse(newPraise);
let unreadCount=that.vuex_friendCircleUnreadCount?that.vuex_friendCircleUnreadCount:0;
if(friendCircleMessage.content.isPraise&&friendCircleMessage.userId!=that.selfInfo.userID){
that.$u.vuex("vuex_friendCircleUnreadCount",unreadCount+1)
that.$store.dispatch('circle/updateUnreadCount',1);
}
})
},
@@ -376,12 +383,13 @@
methods: {
clearUnReadCount(){
this.$u.vuex("vuex_friendCircleUnreadCount",0);
this.localGroupApi.setTabBarBadge(2,"0");
this.$store.dispatch('circle/updateUnreadCount',0-this.vuex_friendCircleUnreadCount);
},
//初始化朋友圈
getCircleDataList:function(param){
let that=this;
this.$store.dispatch('circle/getFriendCircleList',param);
return ;
getFriendCircle(param).then(res => {
//console.log("朋友圈列表",res);
let circleDataList=res.data;