From 8e35b74d861bd6b6da6981e74e033b3d90f430fc Mon Sep 17 00:00:00 2001 From: cs10086086 <1291454411@qq.com> Date: Thu, 20 Mar 2025 19:32:09 +0800 Subject: [PATCH] info --- App.vue | 5 +- main.js | 3 + pages.json | 676 ++++----- pages/my/my.vue | 149 +- .../arctcleCollectList/arctcleCollectList.vue | 10 +- pages2/historyList/historyList.vue | 81 +- pages2/replyCommentList/replyCommentList.vue | 7 +- uni.scss | 4 + .../database/cms-articles-collect.schema.json | 2 +- .../components/hb-comment/hb-comment.vue | 94 +- .../uni-cms-article/pages/detail/detail.uvue | 2 +- .../uni-cms-article/pages/detail/detail.vue | 872 ++++++++++-- .../uni-cms-article/pages/list/list.nvue | 139 +- .../uni-cms-article/pages/search/search.nvue | 1217 +++++++++-------- uni_modules/uni-id-pages/common/store.js | 2 +- .../database/uni-id-users.schema.json | 974 ++++++------- .../pages/personalpage/personalpage.vue | 773 +++++++++-- 17 files changed, 3170 insertions(+), 1840 deletions(-) diff --git a/App.vue b/App.vue index d271472..fbc4eb0 100644 --- a/App.vue +++ b/App.vue @@ -15,6 +15,9 @@ - diff --git a/main.js b/main.js index a652dbd..5f1f4be 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,8 @@ import App from './App' +import uView from '@/uni_modules/uview-ui' +Vue.use(uView) + // ================== Vue2 逻辑 ================== // // #ifndef VUE3 import Vue from 'vue' diff --git a/pages.json b/pages.json index 1f6e5fb..4848430 100644 --- a/pages.json +++ b/pages.json @@ -1,326 +1,352 @@ { - "pages": [{ - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "首页" - } - }, - { - "path": "pages/articleContentDetail/articleContentDetail", - "style": { - "navigationBarTitleText": "鱼水情" - } - }, - { - "path": "pages/editor/editor", - "style": { - "navigationBarTitleText": "编辑文章" - } - }, - { - "path": "pages/my/my", - "style": { - "navigationBarTitleText": "个人中心" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/register/register", - "style": { - "navigationBarTitleText": "注册" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/login/login-withoutpwd", - "style": { - "navigationBarTitleText": "登录" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/login/login-withpwd", - "style": { - "navigationBarTitleText": "账号密码登录" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/login/login-smscode", - "style": { - "navigationBarTitleText": "手机验证码登录" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/userinfo", - "style": { - "navigationBarTitleText": "个人资料" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile", - "style": { - "navigationBarTitleText": "绑定手机号码" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/register/register-by-email", - "style": { - "navigationBarTitleText": "邮箱验证码注册" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/retrieve/retrieve", - "style": { - "navigationBarTitleText": "重置密码" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email", - "style": { - "navigationBarTitleText": "通过邮箱重置密码" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/common/webview/webview", - "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd", - "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "修改密码" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/register/register-admin", - "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "注册管理员账号" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd", - "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "设置密码" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate", - "style": { - "navigationBarTitleText": "注销账号" - } - }, - { - "path": "uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify", - "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "实名认证" - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "login" - } - }, - { - "path": "pages/test/test", - "style": { - "navigationBarTitleText": "test" - } - }, - { - "path": "pages/preview/preview", - "style": { - "navigationBarTitleText": "preview" - } - }, - { - "path": "uni_modules/uni-cms/pages/article/list/list", - "style": { - "navigationBarTitleText": "文章列表" - } - }, - { - "path": "uni_modules/uni-cms/pages/article/add/add", - "style": { - "leftWindow": false, - "navigationBarTitleText": "新增文章", - "topWindow": true - } - }, - { - "path": "uni_modules/uni-cms/pages/article/edit/edit", - "style": { - "leftWindow": false, - "navigationBarTitleText": "编辑文章", - "topWindow": true - } - }, - { - "path": "uni_modules/uni-cms/pages/categories/list/list", - "style": { - "navigationBarTitleText": "分类列表" - } - }, - { - "path": "uni_modules/uni-cms/pages/categories/add/add", - "style": { - "navigationBarTitleText": "新增分类" - } - }, - { - "path": "uni_modules/uni-cms/pages/categories/edit/edit", - "style": { - "navigationBarTitleText": "编辑分类" - } - }, - { - "path": "uni_modules/uni-media-library/pages/index/index", - "style": { - "navigationBarTitleText": "媒体库" - } - }, - { - "path": "uni_modules/uni-cms-article/pages/list/list", - "style": { - "backgroundColor": "#FFFFFF", - "disableScroll": true, - "navigationStyle": "custom" - } - }, - { - "path": "uni_modules/uni-cms-article/pages/list/slist", - "style": { - "backgroundColor": "#FFFFFF", - "disableScroll": true, - "navigationStyle": "custom" - } - }, - { - "path": "uni_modules/uni-cms-article/pages/search/search", - "style": { - "navigationBarTitleText": "搜索" - } - }, - { - "path": "uni_modules/uni-cms-article/pages/detail/detail", - "style": { - "backgroundColor": "#FFFFFF", - "navigationBarTitleText": "" - } - }, - { - "path": "uni_modules/uni-cms-article/pages/detail/preview", - "style": { - "backgroundColor": "#FFFFFF", - "navigationBarTitleText": "" - } - }, - { - "path": "uni_modules/uni-cms-article/pages/webview/webview", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "uni_modules/uni-pay/pages/success/success", - "style": { - "backgroundColor": "#F8F8F8", - "navigationBarTitleText": "支付成功" - } - }, - { - "path": "uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview", - "style": { - "backgroundColor": "#F8F8F8", - "navigationBarTitleText": "ad" - } - }, - { - "path": "uni_modules/uni-pay/pages/pay-desk/pay-desk", - "style": { - "backgroundColor": "#F8F8F8", - "navigationBarTitleText": "收银台" - } - }, - { - "path": "uni_modules/zetank-personalpage/pages/personalpage/personalpage", - "style": { - "navigationBarTitleText": "个人主页", - "enablePullDownRefresh": false, - "navigationStyle": "custom", - "app-plus": { - "bounce": "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') - }, - "mp-alipay": { - "allowsBounceVertical": "NO" - } // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') - } - - } - ], - "subPackages": [{ - "root": "pages2", - "pages": [{ - "path": "historyList/historyList", - "style": { - "backgroundColor": "#F8F8F8", - "navigationBarTitleText": "历史浏览" - } - }, - { - "path": "arctcleCollectList/arctcleCollectList", - "style": { - "navigationBarTitleText": "我的收藏" - } - }, - { - "path": "arctcleLikeList/arctcleLikeList", - "style": { - "navigationBarTitleText": "我的喜欢" - } - }, - { - "path": "replyCommentList/replyCommentList", - "style": { - "navigationBarTitleText": "" - } - } - - ] - }], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "军歌嘹亮", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8" - }, - "uniIdRouter": {}, - "tabBar": { - "color": "#7A7E83", - "selectedColor": "#3cc51f", - "borderStyle": "black", - "backgroundColor": "#ffffff", - "list": [{ - "pagePath": "uni_modules/uni-cms-article/pages/list/list", - "text": "首页" - }, - { - "pagePath": "uni_modules/uni-cms-article/pages/list/slist", - "text": "搜索" - }, - { - "pagePath": "pages/my/my", - "text": "我的" - } - ] - } -} \ No newline at end of file + "easycom" : { + "^u-(.*)" : "@/uni_modules/uview-ui/components/u-$1/u-$1.vue" + }, + "pages" : [ + { + "path" : "pages/index/index", + "style" : { + "navigationBarTitleText" : "首页" + } + }, + { + "path" : "pages/articleContentDetail/articleContentDetail", + "style" : { + "navigationBarTitleText" : "鱼水情" + } + }, + { + "path" : "pages/editor/editor", + "style" : { + "navigationBarTitleText" : "编辑文章" + } + }, + { + "path" : "pages/my/my", + "style" : { + "navigationBarTitleText" : "个人中心" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/register/register", + "style" : { + "navigationBarTitleText" : "注册" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/login/login-withoutpwd", + "style" : { + "navigationBarTitleText" : "登录" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/login/login-withpwd", + "style" : { + "navigationBarTitleText" : "账号密码登录" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/login/login-smscode", + "style" : { + "navigationBarTitleText" : "手机验证码登录" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/userinfo", + "style" : { + "navigationBarTitleText" : "个人资料" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile", + "style" : { + "navigationBarTitleText" : "绑定手机号码" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage", + "style" : { + "navigationBarTitleText" : "" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/register/register-by-email", + "style" : { + "navigationBarTitleText" : "邮箱验证码注册" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/retrieve/retrieve", + "style" : { + "navigationBarTitleText" : "重置密码" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email", + "style" : { + "navigationBarTitleText" : "通过邮箱重置密码" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/common/webview/webview", + "style" : { + "enablePullDownRefresh" : false, + "navigationBarTitleText" : "" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd", + "style" : { + "enablePullDownRefresh" : false, + "navigationBarTitleText" : "修改密码" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/register/register-admin", + "style" : { + "enablePullDownRefresh" : false, + "navigationBarTitleText" : "注册管理员账号" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd", + "style" : { + "enablePullDownRefresh" : false, + "navigationBarTitleText" : "设置密码" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate", + "style" : { + "navigationBarTitleText" : "注销账号" + } + }, + { + "path" : "uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify", + "style" : { + "enablePullDownRefresh" : false, + "navigationBarTitleText" : "实名认证" + } + }, + { + "path" : "pages/login/login", + "style" : { + "navigationBarTitleText" : "login" + } + }, + { + "path" : "pages/test/test", + "style" : { + "navigationBarTitleText" : "test" + } + }, + { + "path" : "pages/preview/preview", + "style" : { + "navigationBarTitleText" : "preview" + } + }, + { + "path" : "uni_modules/uni-cms/pages/article/list/list", + "style" : { + "navigationBarTitleText" : "文章列表" + } + }, + { + "path" : "uni_modules/uni-cms/pages/article/add/add", + "style" : { + "leftWindow" : false, + "navigationBarTitleText" : "新增文章", + "topWindow" : true + } + }, + { + "path" : "uni_modules/uni-cms/pages/article/edit/edit", + "style" : { + "leftWindow" : false, + "navigationBarTitleText" : "编辑文章", + "topWindow" : true + } + }, + { + "path" : "uni_modules/uni-cms/pages/categories/list/list", + "style" : { + "navigationBarTitleText" : "分类列表" + } + }, + { + "path" : "uni_modules/uni-cms/pages/categories/add/add", + "style" : { + "navigationBarTitleText" : "新增分类" + } + }, + { + "path" : "uni_modules/uni-cms/pages/categories/edit/edit", + "style" : { + "navigationBarTitleText" : "编辑分类" + } + }, + { + "path" : "uni_modules/uni-media-library/pages/index/index", + "style" : { + "navigationBarTitleText" : "媒体库" + } + }, + { + "path" : "uni_modules/uni-cms-article/pages/list/list", + "style" : { + "backgroundColor" : "#FFFFFF", + "disableScroll" : true, + "navigationStyle" : "custom" + } + }, + { + "path" : "uni_modules/uni-cms-article/pages/list/slist", + "style" : { + "backgroundColor" : "#FFFFFF", + "disableScroll" : true, + "navigationStyle" : "custom" + } + }, + { + "path" : "uni_modules/uni-cms-article/pages/search/search", + "style" : { + "navigationBarTitleText" : "搜索" + } + }, + { + "path" : "uni_modules/uni-cms-article/pages/detail/detail", + "style" : { + "backgroundColor" : "#FFFFFF", + "navigationBarTitleText" : "" + } + }, + { + "path" : "uni_modules/uni-cms-article/pages/detail/preview", + "style" : { + "backgroundColor" : "#FFFFFF", + "navigationBarTitleText" : "" + } + }, + { + "path" : "uni_modules/uni-cms-article/pages/webview/webview", + "style" : { + "navigationBarTitleText" : "" + } + }, + { + "path" : "uni_modules/uni-pay/pages/success/success", + "style" : { + "backgroundColor" : "#F8F8F8", + "navigationBarTitleText" : "支付成功" + } + }, + { + "path" : "uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview", + "style" : { + "backgroundColor" : "#F8F8F8", + "navigationBarTitleText" : "ad" + } + }, + { + "path" : "uni_modules/uni-pay/pages/pay-desk/pay-desk", + "style" : { + "backgroundColor" : "#F8F8F8", + "navigationBarTitleText" : "收银台" + } + }, + { + "path" : "uni_modules/zetank-personalpage/pages/personalpage/personalpage", + "style" : { + "app-plus" : { + "bounce" : "none" + }, + "enablePullDownRefresh" : false, + "mp-alipay" : { + "allowsBounceVertical" : "NO" + }, + "navigationBarTitleText" : "个人主页" + } + } + ], + "subPackages" : [ + { + "root" : "pages2", + "easycom" : { + "^u-(.*)" : "../../uni_modules/uview-ui/components/u-$1/u-$1.vue" + }, + "pages" : [ + { + "path" : "historyList/historyList", + "style" : { + "backgroundColor" : "#F8F8F8", + "navigationBarTitleText" : "历史浏览" + } + }, + { + "path" : "arctcleCollectList/arctcleCollectList", + "style" : { + "navigationBarTitleText" : "我的收藏" + } + }, + { + "path" : "arctcleLikeList/arctcleLikeList", + "style" : { + "navigationBarTitleText" : "我的喜欢" + } + }, + { + "path" : "replyCommentList/replyCommentList", + "style" : { + "navigationBarTitleText" : "" + } + }, + { + "path" : "balance/balance", + "style" : { + "navigationBarTitleText" : "" + } + }, + { + "path" : "withdraw/withdraw", + "style" : { + "navigationBarTitleText" : "" + } + }, + { + "path" : "setting/setting", + "style" : { + "navigationBarTitleText" : "" + } + } + ] + } + ], + "globalStyle" : { + "navigationBarTextStyle" : "black", + "navigationBarTitleText" : "军歌嘹亮", + "navigationBarBackgroundColor" : "#F8F8F8", + "backgroundColor" : "#F8F8F8" + }, + "uniIdRouter" : {}, + "tabBar" : { + "color" : "#7A7E83", + "selectedColor" : "#3cc51f", + "borderStyle" : "black", + "backgroundColor" : "#ffffff", + "list" : [ + { + "pagePath" : "uni_modules/uni-cms-article/pages/list/list", + "text" : "首页" + }, + { + "pagePath" : "uni_modules/uni-cms-article/pages/list/slist", + "text" : "搜索" + }, + { + "pagePath" : "pages/my/my", + "text" : "我的" + } + ] + } +} diff --git a/pages/my/my.vue b/pages/my/my.vue index 213577b..03b612f 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -25,7 +25,7 @@ @click="toSetting()"> - + @@ -157,7 +153,7 @@ return item; }, async listLoad(data) { - if(data[0].article_id) { + if(data.length !== 0) { const listData = data.map(item => { if (typeof item.article_id.thumbnail === 'string') { item.article_id[0].thumbnail = [item.article_id[0].thumbnail] @@ -179,6 +175,10 @@ this.listData = this.loadType === 'loadMore' ? this.listData.concat(listData) : listData this.loadType = null + } else { + + this.listData = this.loadType === 'loadMore' ? this.listData.concat([]) : [] + this.loadType = null } }, diff --git a/pages2/historyList/historyList.vue b/pages2/historyList/historyList.vue index 59992ac..4613aef 100644 --- a/pages2/historyList/historyList.vue +++ b/pages2/historyList/historyList.vue @@ -26,7 +26,18 @@ @@ -159,13 +168,18 @@ return item; }, async listLoad(data) { + if (data.lenght === 0) return; + console.log(data); if(data[0].article_id) { const listData = data.map(item => { + if (item.article_id.length === 0 ) return; if (typeof item.article_id.thumbnail === 'string') { item.article_id[0].thumbnail = [item.article_id[0].thumbnail] } - item.article_id[0].user_id = item.user_id[0]; console.log(item); + item.article_id[0].user_id = item.user_id[0]; + + item.article_id[0].last_view_time = new Date(item.last_view_time).getTime(); return item.article_id[0]; }) @@ -174,6 +188,7 @@ // 处理腾讯云文件链接 for (const article of listData) { + if (!article) continue; const parseImages = await parseImageUrl(article.thumbnail) article.thumbnail = parseImages ? parseImages.map(image => image.src) : [] @@ -272,7 +287,8 @@ } - \ No newline at end of file diff --git a/pages2/replyCommentList/replyCommentList.vue b/pages2/replyCommentList/replyCommentList.vue index d02a2ce..52e096c 100644 --- a/pages2/replyCommentList/replyCommentList.vue +++ b/pages2/replyCommentList/replyCommentList.vue @@ -216,7 +216,9 @@ update_time: new Date().getTime(item.update_time) }) }) - this.listData = listData; + + this.listData = this.loadType === 'loadMore' ? this.listData.concat(listData) : listData + this.loadType = null }, // 初始化导航栏大小 initNavBarSize() { @@ -252,9 +254,12 @@ // 刷新 refresh() { this.loadType = 'refresh' + console.log(this.$refs.udb); this.$refs.udb.loadData({ clear: true }, () => { + + console.log(1); uni.stopPullDownRefresh() // #ifdef APP-NVUE this.showRefresh = false diff --git a/uni.scss b/uni.scss index b9249e9..004b7b5 100644 --- a/uni.scss +++ b/uni.scss @@ -14,6 +14,10 @@ /* 颜色变量 */ +/* uni.scss */ +@import '@/uni_modules/uview-ui/theme.scss'; +@import '@/uni_modules/uview-ui/index.scss'; + /* 行为相关颜色 */ $uni-color-primary: #007aff; $uni-color-success: #4cd964; diff --git a/uniCloud-alipay/database/cms-articles-collect.schema.json b/uniCloud-alipay/database/cms-articles-collect.schema.json index 2dae666..ba3ed0b 100644 --- a/uniCloud-alipay/database/cms-articles-collect.schema.json +++ b/uniCloud-alipay/database/cms-articles-collect.schema.json @@ -2,7 +2,7 @@ "bsonType": "object", "required": ["user_id", "article_id", "last_view_time", "first_view_time"], "permission": { - "read": "doc.user_id == auth.uid || 'admin' in auth.role", // 用户仅查看自己记录 + "read": true, // 用户仅查看自己记录 "create": "auth.uid != null", // 登录用户自动记录 "update": "false", // 日志不可修改 "delete": "'admin' in auth.role" // 仅管理员可删除 diff --git a/uni_modules/hb-comment/components/hb-comment/hb-comment.vue b/uni_modules/hb-comment/components/hb-comment/hb-comment.vue index 0551d1b..09a95ee 100644 --- a/uni_modules/hb-comment/components/hb-comment/hb-comment.vue +++ b/uni_modules/hb-comment/components/hb-comment/hb-comment.vue @@ -1,7 +1,7 @@ + .author, + .publish_date { + font-size: 28rpx; + color: #999999; + } + \ No newline at end of file diff --git a/uni_modules/uni-id-pages/common/store.js b/uni_modules/uni-id-pages/common/store.js index 70c1a2a..9481578 100644 --- a/uni_modules/uni-id-pages/common/store.js +++ b/uni_modules/uni-id-pages/common/store.js @@ -45,7 +45,7 @@ export const mutations = { }) try { let res = await usersTable.where("'_id' == $cloudEnv_uid") - .field('mobile,nickname,username,email,avatar_file') + .field('mobile,gender,nickname,username,email,avatar_file,available,frozen,total_recharge,total_withdraw') .get() const realNameRes = await uniIdCo.getRealNameInfo() diff --git a/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json b/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json index 6aea856..4072926 100644 --- a/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json +++ b/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json @@ -2,488 +2,524 @@ "bsonType": "object", "permission": { "read": true, - "create": "'CREATE_UNI_ID_USERS' in auth.permission", - "update": "doc._id == auth.uid || 'UPDATE_UNI_ID_USERS' in auth.permission", - "delete": "'DELETE_UNI_ID_USERS' in auth.permission" + "create": "doc._id == auth.uid || 'admin' in auth.role", + "update": "doc._id == auth.uid || 'admin' in auth.role", + "delete": "doc._id == auth.uid || 'admin' in auth.role" }, + "properties": { "_id": { "description": "存储文档 ID(用户 ID),系统自动生成" }, - "ali_openid": { - "bsonType": "string", - "description": "支付宝平台openid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "apple_openid": { - "bsonType": "string", - "description": "苹果登录openid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "avatar": { - "bsonType": "string", - "description": "头像地址", - "title": "头像地址", - "trim": "both", - "permission": { - "read": true, - "write": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "avatar_file": { - "bsonType": "file", - "description": "用file类型方便使用uni-file-picker组件", - "title": "头像文件", - "permission": { - "read": true, - "write": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "comment": { - "bsonType": "string", - "description": "备注", - "title": "备注", - "trim": "both", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "dcloud_appid": { - "bsonType": "array", - "description": "允许登录的客户端的appid列表", - "foreignKey": "opendb-app-list.appid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "department_id": { - "bsonType": "array", - "description": "部门ID", - "enum": { - "collection": "opendb-department", - "field": "_id as value, name as text", - "orderby": "name asc" - }, - "enumType": "tree", - "title": "部门", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "email": { - "bsonType": "string", - "description": "邮箱地址", - "format": "email", - "title": "邮箱", - "trim": "both", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "email_confirmed": { - "bsonType": "int", - "defaultValue": 0, - "description": "邮箱验证状态:0 未验证 1 已验证", - "enum": [{ - "text": "未验证", - "value": 0 - }, - { - "text": "已验证", - "value": 1 - } - ], - "title": "邮箱验证状态", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "gender": { - "bsonType": "int", - "defaultValue": 0, - "description": "用户性别:0 未知 1 男性 2 女性", - "enum": [{ - "text": "未知", - "value": 0 - }, - { - "text": "男", - "value": 1 - }, - { - "text": "女", - "value": 2 - } - ], - "title": "性别", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "invite_time": { - "bsonType": "timestamp", - "description": "受邀时间", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "inviter_uid": { - "bsonType": "array", - "description": "用户全部上级邀请者", - "trim": "both", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "last_login_date": { - "bsonType": "timestamp", - "description": "最后登录时间", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "last_login_ip": { - "bsonType": "string", - "description": "最后登录时 IP 地址", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "mobile": { - "bsonType": "string", - "description": "手机号码", - "pattern": "^\\+?[0-9-]{3,20}$", - "title": "手机号码", - "trim": "both", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "mobile_confirmed": { - "bsonType": "int", - "defaultValue": 0, - "description": "手机号验证状态:0 未验证 1 已验证", - "enum": [{ - "text": "未验证", - "value": 0 - }, - { - "text": "已验证", - "value": 1 - } - ], - "title": "手机号验证状态", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "my_invite_code": { - "bsonType": "string", - "description": "用户自身邀请码", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "nickname": { - "bsonType": "string", - "description": "用户昵称", - "title": "昵称", - "trim": "both", - "permission": { - "read": true, - "write": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "password": { - "bsonType": "password", - "description": "密码,加密存储", - "title": "密码", - "trim": "both" - }, - "password_secret_version": { - "bsonType": "int", - "description": "密码使用的passwordSecret版本", - "title": "passwordSecret", - "permission": { - "read": false, - "write": false - } - }, - "realname_auth": { - "bsonType": "object", - "description": "实名认证信息", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - }, - "properties": { - "auth_date": { - "bsonType": "timestamp", - "description": "认证通过时间" - }, - "auth_status": { - "bsonType": "int", - "description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败", - "maximum": 3, - "minimum": 0 - }, - "contact_email": { - "bsonType": "string", - "description": "联系人邮箱" - }, - "contact_mobile": { - "bsonType": "string", - "description": "联系人手机号码" - }, - "contact_person": { - "bsonType": "string", - "description": "联系人姓名" - }, - "id_card_back": { - "bsonType": "string", - "description": "身份证反面照 URL" - }, - "id_card_front": { - "bsonType": "string", - "description": "身份证正面照 URL" - }, - "identity": { - "bsonType": "string", - "description": "身份证号码/营业执照号码" - }, - "in_hand": { - "bsonType": "string", - "description": "手持身份证照片 URL" - }, - "license": { - "bsonType": "string", - "description": "营业执照 URL" - }, - "real_name": { - "bsonType": "string", - "description": "真实姓名/企业名称" - }, - "type": { - "bsonType": "int", - "description": "用户类型:0 个人用户 1 企业用户", - "maximum": 1, - "minimum": 0 + "bsonType": "object", + "properties": { + "available": { + "bsonType": "int", + "minimum": 0, + "description": "可用余额(分)", + "defaultValue":0, + "permission": { + "update": "'admin' in auth.role" // 仅管理员可直接修改 } }, - "required": [ - "type", - "auth_status" - ] - }, - "register_date": { - "bsonType": "timestamp", - "description": "注册时间", - "forceDefaultValue": { - "$env": "now" + "frozen": { + "bsonType": "int", + "minimum": 0, + "defaultValue":0, + "description": "冻结金额" }, - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "register_ip": { - "bsonType": "string", - "description": "注册时 IP 地址", - "forceDefaultValue": { - "$env": "clientIP" + "total_recharge": { + "bsonType": "int", + "defaultValue":0, + "description": "累计充值" }, - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "role": { - "bsonType": "array", - "description": "用户角色", - "enum": { - "collection": "uni-id-roles", - "field": "role_id as value, role_name as text" + "total_withdraw": { + "bsonType": "int", + "defaultValue":0, + "description": "累计提现" }, - "foreignKey": "uni-id-roles.role_id", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - }, - "title": "角色" - }, - "tags":{ - "bsonType": "array", - "description": "用户标签", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - }, - "title": "标签" - }, - "score": { - "bsonType": "int", - "description": "用户积分,积分变更记录可参考:uni-id-scores表定义", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "status": { - "bsonType": "int", - "defaultValue": 0, - "description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - }, - "enum": [{ - "text": "正常", - "value": 0 - }, - { - "text": "禁用", - "value": 1 - }, - { - "text": "审核中", - "value": 2 - }, - { - "text": "审核拒绝", - "value": 3 - } - ], - "title": "用户状态" - }, - "token": { - "bsonType": "array", - "description": "用户token", - "permission": { - "read": false, - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "username": { - "bsonType": "string", - "description": "用户名,不允许重复", - "title": "用户名", - "trim": "both", - "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "wx_openid": { - "bsonType": "object", - "description": "微信各个平台openid", - "properties": { - "app": { - "bsonType": "string", - "description": "app平台微信openid" - }, - "mp": { - "bsonType": "string", - "description": "微信小程序平台openid" - }, - "h5": { - "bsonType": "string", - "description": "微信公众号登录openid" - }, - "web": { - "bsonType": "string", - "description": "PC页面扫码登录openid" + "ali_openid": { + "bsonType": "string", + "description": "支付宝平台openid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" } }, - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "wx_unionid": { - "bsonType": "string", - "description": "微信unionid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "qq_openid": { - "bsonType": "object", - "description": "QQ各个平台openid", - "properties": { - "app": { - "bsonType": "string", - "description": "app平台QQ openid" - }, - "mp": { - "bsonType": "string", - "description": "QQ小程序平台openid" + "apple_openid": { + "bsonType": "string", + "description": "苹果登录openid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" } }, - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + "avatar": { + "bsonType": "string", + "description": "头像地址", + "title": "头像地址", + "trim": "both", + "permission": { + "read": true, + "create": "doc._id == auth.uid || 'admin' in auth.role", + "update": "doc._id == auth.uid || 'admin' in auth.role", + "delete": "doc._id == auth.uid || 'admin' in auth.role" + } + + }, + "avatar_file": { + "bsonType": "file", + "description": "用file类型方便使用uni-file-picker组件", + "title": "头像文件", + "permission": { + "read": true, + "create": "doc._id == auth.uid || 'admin' in auth.role", + "update": "doc._id == auth.uid || 'admin' in auth.role", + "delete": "doc._id == auth.uid || 'admin' in auth.role" + } + + }, + "comment": { + "bsonType": "string", + "description": "个人简介", + "title": "个人简介", + "trim": "both", + "permission": { + "read": true, + "create": "doc._id == auth.uid || 'admin' in auth.role", + "update": "doc._id == auth.uid || 'admin' in auth.role", + "delete": "doc._id == auth.uid || 'admin' in auth.role" + } + + }, + "personal_profile": { + "bsonType": "string", + "description": "个人简介", + "title": "个人简介", + "trim": "both", + "defaultValue": "" + }, + "gender": { + "bsonType": "int", + "description": "性别 0 未知 1 男 2 女", + "title": "性别", + "defaultValue": 0, + "permission": { + "read": true, + "create": "doc._id == auth.uid || 'admin' in auth.role", + "update": "doc._id == auth.uid || 'admin' in auth.role", + "delete": "doc._id == auth.uid || 'admin' in auth.role" + } + + }, + "dcloud_appid": { + "bsonType": "array", + "description": "允许登录的客户端的appid列表", + "foreignKey": "opendb-app-list.appid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "department_id": { + "bsonType": "array", + "description": "部门ID", + "enum": { + "collection": "opendb-department", + "field": "_id as value, name as text", + "orderby": "name asc" + }, + "enumType": "tree", + "title": "部门", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "email": { + "bsonType": "string", + "description": "邮箱地址", + "format": "email", + "title": "邮箱", + "trim": "both", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "email_confirmed": { + "bsonType": "int", + "defaultValue": 0, + "description": "邮箱验证状态:0 未验证 1 已验证", + "enum": [{ + "text": "未验证", + "value": 0 + }, + { + "text": "已验证", + "value": 1 + } + ], + "title": "邮箱验证状态", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "invite_time": { + "bsonType": "timestamp", + "description": "受邀时间", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "inviter_uid": { + "bsonType": "array", + "description": "用户全部上级邀请者", + "trim": "both", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "last_login_date": { + "bsonType": "timestamp", + "description": "最后登录时间", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "last_login_ip": { + "bsonType": "string", + "description": "最后登录时 IP 地址", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "mobile": { + "bsonType": "string", + "description": "手机号码", + "pattern": "^\\+?[0-9-]{3,20}$", + "title": "手机号码", + "trim": "both", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "mobile_confirmed": { + "bsonType": "int", + "defaultValue": 0, + "description": "手机号验证状态:0 未验证 1 已验证", + "enum": [{ + "text": "未验证", + "value": 0 + }, + { + "text": "已验证", + "value": 1 + } + ], + "title": "手机号验证状态", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "my_invite_code": { + "bsonType": "string", + "description": "用户自身邀请码", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "nickname": { + "bsonType": "string", + "description": "用户昵称", + "title": "昵称", + "trim": "both", + "permission": { + "read": true, + "write": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission", + "update": "doc._id == auth.uid || 'user_edit' in auth.permission" + } + }, + "password": { + "bsonType": "password", + "description": "密码,加密存储", + "title": "密码", + "trim": "both" + }, + "password_secret_version": { + "bsonType": "int", + "description": "密码使用的passwordSecret版本", + "title": "passwordSecret", + "permission": { + "read": false, + "write": false + } + }, + "realname_auth": { + "bsonType": "object", + "description": "实名认证信息", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + }, + "properties": { + "auth_date": { + "bsonType": "timestamp", + "description": "认证通过时间" + }, + "auth_status": { + "bsonType": "int", + "description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败", + "maximum": 3, + "minimum": 0 + }, + "contact_email": { + "bsonType": "string", + "description": "联系人邮箱" + }, + "contact_mobile": { + "bsonType": "string", + "description": "联系人手机号码" + }, + "contact_person": { + "bsonType": "string", + "description": "联系人姓名" + }, + "id_card_back": { + "bsonType": "string", + "description": "身份证反面照 URL" + }, + "id_card_front": { + "bsonType": "string", + "description": "身份证正面照 URL" + }, + "identity": { + "bsonType": "string", + "description": "身份证号码/营业执照号码" + }, + "in_hand": { + "bsonType": "string", + "description": "手持身份证照片 URL" + }, + "license": { + "bsonType": "string", + "description": "营业执照 URL" + }, + "real_name": { + "bsonType": "string", + "description": "真实姓名/企业名称" + }, + "type": { + "bsonType": "int", + "description": "用户类型:0 个人用户 1 企业用户", + "maximum": 1, + "minimum": 0 + } + }, + "required": [ + "type", + "auth_status" + ] + }, + "register_date": { + "bsonType": "timestamp", + "description": "注册时间", + "forceDefaultValue": { + "$env": "now" + }, + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "register_ip": { + "bsonType": "string", + "description": "注册时 IP 地址", + "forceDefaultValue": { + "$env": "clientIP" + }, + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "role": { + "bsonType": "array", + "description": "用户角色", + "enum": { + "collection": "uni-id-roles", + "field": "role_id as value, role_name as text" + }, + "foreignKey": "uni-id-roles.role_id", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + }, + "title": "角色" + }, + "tags": { + "bsonType": "array", + "description": "用户标签", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + }, + "title": "标签" + }, + "score": { + "bsonType": "int", + "description": "用户积分,积分变更记录可参考:uni-id-scores表定义", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "status": { + "bsonType": "int", + "defaultValue": 0, + "description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + }, + "enum": [{ + "text": "正常", + "value": 0 + }, + { + "text": "禁用", + "value": 1 + }, + { + "text": "审核中", + "value": 2 + }, + { + "text": "审核拒绝", + "value": 3 + } + ], + "title": "用户状态" + }, + "token": { + "bsonType": "array", + "description": "用户token", + "permission": { + "read": false, + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "username": { + "bsonType": "string", + "description": "用户名,不允许重复", + "title": "用户名", + "trim": "both", + "permission": { + "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "wx_openid": { + "bsonType": "object", + "description": "微信各个平台openid", + "properties": { + "app": { + "bsonType": "string", + "description": "app平台微信openid" + }, + "mp": { + "bsonType": "string", + "description": "微信小程序平台openid" + }, + "h5": { + "bsonType": "string", + "description": "微信公众号登录openid" + }, + "web": { + "bsonType": "string", + "description": "PC页面扫码登录openid" + } + }, + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "wx_unionid": { + "bsonType": "string", + "description": "微信unionid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "qq_openid": { + "bsonType": "object", + "description": "QQ各个平台openid", + "properties": { + "app": { + "bsonType": "string", + "description": "app平台QQ openid" + }, + "mp": { + "bsonType": "string", + "description": "QQ小程序平台openid" + } + }, + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "qq_unionid": { + "bsonType": "string", + "description": "QQ unionid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "huawei_openid": { + "bsonType": "string", + "description": "Huawei openid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "huawei_unionid": { + "bsonType": "string", + "description": "Huawei unionid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } + }, + "third_party": { + "bsonType": "object", + "description": "三方平台凭证", + "permission": { + "read": false, + "write": false + } + }, + "identities": { + "bsonType": "array", + "description": "三方平台身份信息;一个对象代表一个身份,参数支持: provider 身份源, userInfo 三方用户信息, openid 三方openid, unionid 三方unionid, uid 三方uid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } } }, - "qq_unionid": { - "bsonType": "string", - "description": "QQ unionid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "huawei_openid": { - "bsonType": "string", - "description": "Huawei openid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "huawei_unionid": { - "bsonType": "string", - "description": "Huawei unionid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - }, - "third_party": { - "bsonType": "object", - "description": "三方平台凭证", - "permission": { - "read": false, - "write": false - } - }, - "identities": { - "bsonType": "array", - "description": "三方平台身份信息;一个对象代表一个身份,参数支持: provider 身份源, userInfo 三方用户信息, openid 三方openid, unionid 三方unionid, uid 三方uid", - "permission": { - "read": "'READ_UNI_ID_USERS' in auth.permission", - "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" - } - } - }, - "required": [] -} + "required": [] + } +} \ No newline at end of file diff --git a/uni_modules/zetank-personalpage/pages/personalpage/personalpage.vue b/uni_modules/zetank-personalpage/pages/personalpage/personalpage.vue index 8f61b6c..30c29af 100644 --- a/uni_modules/zetank-personalpage/pages/personalpage/personalpage.vue +++ b/uni_modules/zetank-personalpage/pages/personalpage/personalpage.vue @@ -3,84 +3,297 @@ - - - - - - - - - - - + + + + + + + + + + - - - - {{userinfo.nickname}} - - - - - - - - {{userinfo.city}} - - - + + + + {{userinfo.nickname}} + + + + + + + + {{userinfo.city}} + + + --> + + - + {{Information==''?'暂无简介':Information}} - + + - - - 导航一 - 导航二 + - + + 动态 + 他的收藏 + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + + + /* #ifndef APP-NVUE */ + .pages view { + display: flex; + box-sizing: border-box; + flex-direction: column; + } + + /* #endif */ + + .pages { + background-color: #FFFFFF; + } + + .refresh { + text-align: center; + } + + .nav-box { + background-color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + right: 0; + + /* #ifndef APP-PLUS */ + z-index: 9; + /* #endif */ + } + + .pages .nav { + display: flex; + align-items: center; + flex-direction: row; + } + + .uni-search-box { + flex: 1; + padding: 0 10px; + } + + .uni-search-box ::v-deep .uni-searchbar { + padding: 0; + } + + .uni-search-box ::v-deep .uni-searchbar__box { + height: 32px; + flex-direction: row; + } + + .cover-search-bar { + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + /* #ifndef APP-NVUE */ + z-index: 999; + /* #endif */ + } + + .pages .uni-list ::v-deep .uni-list-item__container { + flex-direction: row; + width: 100%; + } + + .pages .uni-list ::v-deep .uni-list-item { + align-items: flex-start; + } + + .pages .uni-list ::v-deep .uni-load-more { + display: flex; + } + + .pages .uni-list ::v-deep .uni-list--border:after { + background-color: #f5f5f5; + } + \ No newline at end of file