提交 e09da5ed 编写于 作者: DCloud_JSON's avatar DCloud_JSON

添加初始化的uni-config-center/uni-id/config.json

方便开发者填写参数而不需要自己创建
上级 1083bc4a
......@@ -2,8 +2,6 @@ unpackage/
.hbuilderx
node_modules
.DS_Store
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/config.json
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
pages/grid/banner.json
pages/list/list.json
manifest.json
\ No newline at end of file
> baseapp目前还处于内测阶段,内测QQ群号:869926521,欢迎大家加入!内测期间享受有疑问实时解答的福利。
> 内测群反馈的已知问题,正在修复中
- [ ] 账号登录限制11位了。注册的时候好像没限制
- [ ] 缺了小程序授权登陆
- [ ] 服务端,应当加个空的config配置方便二开使用
- [ ] 密码注册把pwd2也存在本地了,暴露了密码
### 介绍
base app,是一个云端一体的、集成了商用项目开发常见功能的项目模板。
如果说uniCloud admin是管理端项目的基础模板,那么base app则是用户端、尤其是移动端的基础模板。
......@@ -7,8 +13,7 @@ base app,是一个云端一体的、集成了商用项目开发常见功能的
#### 项目背景
我们一直想出一个结合uni-app、uniCloud和openDB以及uni-id和uniCloud admin等,uni全家桶的项目模板;
为了照顾各类应用的开发者,我们最终取交集推出了baseapp.
无论是什么类型的应用都需要这些功能。换句话来说开发者直接基于baseapp开发项目会事半功倍!
为了照顾各类应用的开发者,我们取交最终集罗列了如下功能,发现这些就是除业务逻辑外的项目基本功能并把它命名为baseapp。
### base app集成的功能包括:
1. 个人中心:登录注册(含用户名密码登录、手机号验证码登录、app一键登陆、微信登录、Apple登录、支付宝小程序登录)、修改密码、忘记密码、头像更换、昵称修改、积分查看、指纹绑定、退出
......@@ -40,13 +45,13 @@ base app + uniCloud admin,应用开发从未如此简单快捷!
判断入口页是否为强制登陆页面,Y.检测本地的token是否有效(存在且并未过期)否则跳转到登陆页面
#### 应用配置
##### 前端配置
baseconfig
manifest.json
##### 服务端配置
uni-config-center
提下直接在uni-id下的config配置
| |_cloudfunctions
| |_common
| |_uni-config-center
| |_uni-id
| |_config.json
|- baseconfig
|- manifest.json
### 界面如下:
......
{
"name" : "base-app",
"appid" : "",
"appid" : "__UNI__03B096E",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
......@@ -74,31 +74,15 @@
"sdkConfigs" : {
"oauth" : {
"univerify" : {},
"weixin" : {
"appid" : "",
"appsecret" : "",
"UniversalLinks" : ""
},
"apple" : {}
},
"ad" : {},
"share" : {
"weixin" : {
"appid" : "",
"UniversalLinks" : ""
}
},
"share" : {},
"geolocation" : {},
"push" : {
"unipush" : {}
},
"payment" : {
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "",
"UniversalLinks" : ""
}
}
"payment" : {}
}
},
"nvueLaunchMode" : ""
......@@ -112,8 +96,8 @@
"urlCheck" : false,
"es6" : true
},
"usingComponents" : true ,
"betterScopedSlots" : true
"usingComponents" : true,
"betterScopedSlots" : true
},
"mp-alipay" : {
"usingComponents" : true
......
{
"passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200,
"tokenExpiresThreshold": 600,
"passwordErrorLimit": 6,
"bindTokenToDevice": true,
"passwordErrorRetryTime": 3600,
"autoSetInviteCode": false,
"forceInviteCode": false,
"app-plus": {
"tokenExpiresIn": 2592000,
"oauth": {
"weixin": {
"appid": "",
"appsecret": ""
},
"apple": {
"bundleId": ""
}
}
},
"mp-weixin": {
"oauth": {
"weixin": {
"appid": "",
"appsecret": ""
}
}
},
"mp-alipay": {
"oauth": {
"alipay": {
"appid": "alipay appid",
"privateKey": "alipay privateKey"
}
}
},
"service": {
"sms": {
"name": "",
"codeExpiresIn": 300,
"smsKey": "",
"smsSecret": ""
},
"univerify": {
"appid": "",
"apiKey": "",
"apiSecret": ""
}
}
}
\ No newline at end of file
{
"name": "uni-id",
"version": "3.0.12",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "3.0.12",
"license": "Apache-2.0"
}
}
"name": "uni-id",
"version": "3.0.12",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "3.0.12",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
},
"../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center": {
"version": "0.0.2",
"license": "Apache-2.0"
},
"node_modules/uni-config-center": {
"resolved": "../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
"link": true
}
},
"dependencies": {
"uni-config-center": {
"version": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
}
}
{
"name": "uni-id",
"version": "3.0.12",
"description": "uni-id for uniCloud",
"main": "index.js",
"homepage": "https://uniapp.dcloud.io/uniCloud/uni-id",
"repository": {
"type": "git",
"url": "git+https://gitee.com/dcloud/uni-id.git"
},
"author": "",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
"name": "uni-id",
"version": "3.0.12",
"description": "uni-id for uniCloud",
"main": "index.js",
"homepage": "https://uniapp.dcloud.io/uniCloud/uni-id",
"repository": {
"type": "git",
"url": "git+https://gitee.com/dcloud/uni-id.git"
},
"author": "",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册