Initial commit to Gitea
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user