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
@@ -220,7 +220,7 @@
// 连表查询,返回两个集合的查询结果
colList() {
return [
db.collection(articleDBName).where(this.where).field(
db.collection(articleDBName).where(this.articleWhere).field(
'thumbnail,article_status,title,publish_date,user_id,excerpt').getTemp(), // 文章集合
db.collection(userDBName).field('_id,nickname').getTemp() // 用户集合
@@ -230,7 +230,7 @@
colList1() {
return [
db.collection("cms-articles-collect")
.where(this.where)
.where(this.collectWhere)
.getTemp(),
db.collection(articleDBName)
.field('_id,thumbnail,title,publish_date,user_id, excerpt, article_status')
@@ -240,6 +240,20 @@
.getTemp()
];
},
articleWhere() {
return this.uid ? {
user_id: this.uid
} : {
user_id: '__empty__'
}
},
collectWhere() {
return this.uid ? {
user_id: this.uid
} : {
user_id: '__empty__'
}
}
},
data() {
@@ -269,9 +283,6 @@
},
where_flag: false,
where:{
user_id: ""
},
Information: '本人性格热情开朗,待人友好,为人诚实谦虚。工作勤奋,认真负责,能吃苦耐劳,尽职 尽责,有耐心。具有亲和力,平易近人,善于与人沟通',
membertype: '',
showedit: true, //信息编辑按钮
@@ -384,14 +395,8 @@
this.uid = option.uid;
if (this.uid) { // ID 不为空,则发起查询
console.log(this.uid);
this.where= {
user_id: this.uid
}
console.log(this.where)
this.where_flag = true;
console.log(this.where)
const res = await uniCloud.importObject("user-info").get_user_info({
uid: this.uid
});
@@ -762,4 +767,4 @@
.pages .uni-list ::v-deep .uni-list--border:after {
background-color: #f5f5f5;
}
</style>
</style>