Initial commit to Gitea

This commit is contained in:
root
2026-05-04 00:43:20 +08:00
parent a41fbbd663
commit b3c6fc67c9
15 changed files with 830 additions and 835 deletions
+10 -7
View File
@@ -125,7 +125,7 @@ import { follow } from "../../uniCloud-alipay/cloudfunctions/follow/index.obj";
return [
db.collection("follow")
.where(this.where)
.where(this.followWhere)
.field("_id,fid,create_time")
.getTemp(),
db.collection("uni-id-users")
@@ -133,6 +133,13 @@ import { follow } from "../../uniCloud-alipay/cloudfunctions/follow/index.obj";
.getTemp()
];
},
followWhere() {
return this.userInfo && this.userInfo._id ? {
uid: this.userInfo._id
} : {
uid: '__empty__'
}
}
},
data() {
@@ -151,9 +158,7 @@ import { follow } from "../../uniCloud-alipay/cloudfunctions/follow/index.obj";
listData: [], // 列表数据
loadType: null,
followLst: [],
where:{},
followLst: []
}
},
methods: {
@@ -283,8 +288,6 @@ import { follow } from "../../uniCloud-alipay/cloudfunctions/follow/index.obj";
this.listHeight = uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight - this
.navBarHeight + 'px'; // 计算列表高度
this.where = {uid: this.userInfo._id};
console.log(this.where)
this.$refs.udb.loadData();
},
@@ -476,4 +479,4 @@ import { follow } from "../../uniCloud-alipay/cloudfunctions/follow/index.obj";
background: #F8F8F8;
}
</style>
</style>