Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello_uni-id-pages
提交
f712164c
H
hello_uni-id-pages
项目概览
DCloud
/
hello_uni-id-pages
通知
1054
Star
31
Fork
43
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
2
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello_uni-id-pages
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f712164c
编写于
10月 14, 2022
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.0.24
上级
dd55e774
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
441 addition
and
457 deletion
+441
-457
uniCloud-aliyun/database/db_init.json
uniCloud-aliyun/database/db_init.json
+8
-1
uni_modules/uni-id-pages/changelog.md
uni_modules/uni-id-pages/changelog.md
+2
-0
uni_modules/uni-id-pages/common/store.js
uni_modules/uni-id-pages/common/store.js
+1
-1
uni_modules/uni-id-pages/package.json
uni_modules/uni-id-pages/package.json
+1
-1
uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json
...s/uni-id-pages/uniCloud/database/uni-id-users.schema.json
+429
-454
未找到文件。
uniCloud-aliyun/database/db_init.json
浏览文件 @
f712164c
//
在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/hellodb?id=db-init
//
编写完毕后对本文件点右键,可按配置规则创建表和添加数据
{
"opendb-device"
:{},
"opendb-open-data"
:{},
"opendb-verify-codes"
:{},
"uni-id-device"
:{},
"uni-id-log"
:{},
"uni-id-permissions"
:{},
"uni-id-roles"
:{},
"uni-id-users"
:{}
}
uni_modules/uni-id-pages/changelog.md
浏览文件 @
f712164c
## 1.0.24(2022-10-08)
-
修复 报uni-id-users表schema内错误的bug
## 1.0.23(2022-10-08)
-
修复 vue3下vite编译发行打包失败
-
修复 某些情况下注册账号,报TypeErroe:Cannot read properties of undefined (reading ’showToast‘)的错误
...
...
uni_modules/uni-id-pages/common/store.js
浏览文件 @
f712164c
...
...
@@ -94,7 +94,7 @@ export const mutations = {
delta++
}
})
console.log('判断需要返回几层:', pages
, delta);
// console.log('判断需要返回几层:'
, delta);
if (uniIdRedirectUrl) {
return uni.reLaunch({
url: uniIdRedirectUrl
...
...
uni_modules/uni-id-pages/package.json
浏览文件 @
f712164c
{
"id"
:
"uni-id-pages"
,
"displayName"
:
"uni-id-pages"
,
"version"
:
"1.0.2
2
"
,
"version"
:
"1.0.2
4
"
,
"description"
:
"云端一体简单、统一、可扩展的用户中心页面模版"
,
"keywords"
:
[
"用户管理"
,
...
...
uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json
浏览文件 @
f712164c
{
"bsonType"
:
"object"
,
"required"
:
[
"username"
,
"password"
],
"permission"
:
{
"read"
:
true
,
"create"
:
"'CREATE_UNI_ID_USERS' in auth.permission"
,
...
...
@@ -14,36 +15,28 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"avatar"
:
{
"bsonType"
:
"string"
,
"description"
:
"头像地址"
,
"title"
:
"头像地址"
,
"trim"
:
"both"
,
"permission"
:
{
"read"
:
"doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission"
,
"write"
:
"doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
}
"trim"
:
"both"
},
"avatar_file"
:
{
"bsonType"
:
"file"
,
"description"
:
"用file类型方便使用uni-file-picker组件"
,
"title"
:
"头像文件"
,
"permission"
:
{
"read"
:
"doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission"
,
"write"
:
"doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
}
"title"
:
"头像文件"
},
"comment"
:
{
"bsonType"
:
"string"
,
...
...
@@ -51,8 +44,8 @@
"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"
"
write"
:
false
,
"
read"
:
false
}
},
"dcloud_appid"
:
{
...
...
@@ -60,8 +53,8 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"department_id"
:
{
...
...
@@ -75,8 +68,8 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"email"
:
{
...
...
@@ -86,8 +79,8 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"email_confirmed"
:
{
...
...
@@ -105,8 +98,8 @@
],
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"gender"
:
{
...
...
@@ -128,16 +121,16 @@
],
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"inviter_uid"
:
{
...
...
@@ -145,24 +138,24 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"mobile"
:
{
...
...
@@ -172,8 +165,8 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"mobile_confirmed"
:
{
...
...
@@ -191,50 +184,50 @@
],
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"nickname"
:
{
"bsonType"
:
"string"
,
"description"
:
"用户昵称"
,
"title"
:
"昵称"
,
"trim"
:
"both"
,
"permission"
:
{
"read"
:
"doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission"
,
"write"
:
"doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
}
"trim"
:
"both"
},
"password"
:
{
"bsonType"
:
"password"
,
"description"
:
"密码,加密存储"
,
"title"
:
"密码"
,
"trim"
:
"both"
"trim"
:
"both"
,
"permission"
:
{
"write"
:
false
,
"read"
:
false
}
},
"password_secret_version"
:
{
"bsonType"
:
"int"
,
"description"
:
"密码使用的passwordSecret版本"
,
"title"
:
"passwordSecret"
,
"permission"
:
{
"
read"
:
false
,
"
write"
:
false
"
write"
:
false
,
"
read"
:
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"
}
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
,
"properties"
:
{
"auth_date"
:
{
"bsonType"
:
"timestamp"
,
...
...
@@ -298,22 +291,16 @@
"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"
"$env"
:
"now"
,
"read"
:
"doc._id == auth.uid"
}
},
"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"
"$env"
:
"clientIP"
,
"read"
:
"doc._id == auth.uid"
}
},
"role"
:
{
...
...
@@ -324,10 +311,9 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
},
"title"
:
"角色"
},
...
...
@@ -335,8 +321,8 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"status"
:
{
...
...
@@ -344,8 +330,8 @@
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
},
"enum"
:
[{
"text"
:
"正常"
,
...
...
@@ -370,8 +356,7 @@
"bsonType"
:
"array"
,
"description"
:
"用户token"
,
"permission"
:
{
"read"
:
"'READ_UNI_ID_USERS' in auth.permission"
,
"write"
:
"'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
"read"
:
"doc._id == auth.uid"
}
},
"username"
:
{
...
...
@@ -380,8 +365,7 @@
"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"
"write"
:
false
}
},
"wx_openid"
:
{
...
...
@@ -406,16 +390,16 @@
}
},
"permission"
:
{
"
read"
:
"'READ_UNI_ID_USERS' in auth.permission"
,
"
write"
:
"'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"qq_openid"
:
{
...
...
@@ -432,26 +416,17 @@
}
},
"permission"
:
{
"
read"
:
"'READ_UNI_ID_USERS' in auth.permission"
,
"
write"
:
"'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"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"
"
write"
:
false
,
"
read"
:
"doc._id == auth.uid"
}
},
"third_party"
:
{
"bsonType"
:
"object"
,
"description"
:
"三方平台凭证"
,
"permission"
:
{
"read"
:
false
,
"write"
:
false
}
}
},
"required"
:
[]
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录