From 8ad12b2525a836e4e9850162416c6937270ed337 Mon Sep 17 00:00:00 2001 From: linju-json Date: Fri, 25 Jun 2021 17:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=94=A8=E6=88=B7=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E4=B8=8A=E4=BC=A0=E7=9A=84=E8=A3=81=E5=88=87=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8Capp=E7=AB=AF=E4=B8=BA=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E8=A3=81=E5=89=AA=E5=85=B6=E4=BB=96=E7=AB=AF=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E6=96=B9=E5=BC=8F=E3=80=82=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A1=A8=E5=AD=97=E6=AE=B5=E6=94=B9=E7=94=A8avatar=5Ffile?= =?UTF-8?q?=E5=AD=98=E5=82=A8file=E5=AF=B9=E8=B1=A1=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E5=81=9A=E5=9B=BE=E7=89=87=E7=9A=84=E5=9B=9E=E6=98=BE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 +- manifest.json | 4 + pages/list/list.nvue | 4 +- pages/ucenter/invite/invite.vue | 3 +- uni-starter.config.js | 4 +- .../uni-analyse-searchhot/index.js | 0 .../uni-analyse-searchhot/package.json | 0 ...6\345\272\223\347\256\241\347\220\206.jql" | 0 .../database/JQL\346\237\245\350\257\242.jql" | 0 .../database/db_init.json | 0 .../database/opendb-admin-menus.schema.json | 0 .../database/opendb-app-versions.schema.json | 0 .../database/opendb-banner.schema.json | 0 .../database/opendb-department.schema.json | 47 ++++ .../database/opendb-mall-goods.schema.json | 0 .../opendb-news-articles-detail.schema.json | 0 .../database/opendb-news-articles.schema.json | 0 .../opendb-news-categories.schema.json | 0 .../database/opendb-news-comments.schema.json | 0 .../database/opendb-news-favorite.schema.json | 0 .../database/opendb-search-hot.schema.json | 0 .../database/opendb-search-log.schema.json | 0 .../database/opendb-verify-codes.schema.json | 0 .../database/read-news-log.schema.json | 0 .../database/uni-id-device.schema.json | 0 .../database/uni-id-log.schema.json | 0 .../database/uni-id-permissions.schema.json | 0 .../database/uni-id-roles.schema.json | 0 .../database/uni-id-scores.schema.json | 0 .../database/uni-id-users.schema.json | 0 .../uni-agree/pages/uni-agree/uni-agree.nvue | 4 +- uni_modules/uni-agree/utils/uni-agree.js | 16 +- uni_modules_tools/config.js | 5 +- uni_modules_tools/copy/manifest.json | 221 +++++++++--------- .../uni-config-center/uni-id/config.json | 2 +- 35 files changed, 189 insertions(+), 144 deletions(-) rename {uniCloud-tcb => uniCloud-aliyun}/cloudfunctions/uni-analyse-searchhot/index.js (100%) rename {uniCloud-tcb => uniCloud-aliyun}/cloudfunctions/uni-analyse-searchhot/package.json (100%) rename "uniCloud-tcb/database/JQL\346\225\260\346\215\256\345\272\223\347\256\241\347\220\206.jql" => "uniCloud-aliyun/database/JQL\346\225\260\346\215\256\345\272\223\347\256\241\347\220\206.jql" (100%) rename "uniCloud-tcb/database/JQL\346\237\245\350\257\242.jql" => "uniCloud-aliyun/database/JQL\346\237\245\350\257\242.jql" (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/db_init.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-admin-menus.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-app-versions.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-banner.schema.json (100%) create mode 100644 uniCloud-aliyun/database/opendb-department.schema.json rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-mall-goods.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-news-articles-detail.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-news-articles.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-news-categories.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-news-comments.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-news-favorite.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-search-hot.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-search-log.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/opendb-verify-codes.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/read-news-log.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/uni-id-device.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/uni-id-log.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/uni-id-permissions.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/uni-id-roles.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/uni-id-scores.schema.json (100%) rename {uniCloud-tcb => uniCloud-aliyun}/database/uni-id-users.schema.json (100%) diff --git a/README.md b/README.md index 5c85e7b2..14f9fc1d 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ 在这个模板基础之上快速填充自己的业务,即可很快完成一个应用。 -地址:[https://codechina.csdn.net/dcloud/uni-starter.git](https://codechina.csdn.net/dcloud/uni-starter.git) +##### 演示效果 +![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/0625ae17-1262-45cb-a713-cdbf02df5c0a.png) +> h5版演示链接:[https://uni-starter.dcloud.net.cn](https://uni-starter.dcloud.net.cn) + #### 视频教程: 腾讯课堂uniCloud视频教程 @@ -33,16 +36,18 @@ uni-starter + uniCloud admin,提供了用户端和管理端的基础模板, ### uni-starter集成的功能包括: -1. 个人中心:登录注册(含用户名密码登录、手机号验证码登录、app一键登录、微信登录、Apple登录、微信小程序登录)、修改密码、忘记密码、头像更换、昵称修改、积分查看、指纹绑定、退出登录 -2. 设置:App更新(整包升级、wgt升级、强制升级,后台搭配uniCloud admin的升级中心插件管理)、权限引导(app)、推送开关(app)、清除缓存(app)、用户协议、隐私协议(app)、问题与反馈、分享推荐、关于 -3. 启动引导:iOS初次启动被用户禁止网络权限后引导开启、Android弹出隐私协议后再申请权限 -4. 首页集成banner(后台搭配uniCloud admin的banner插件管理)、搜索、列表、详情、分享,均为云端一体。实际使用中将clientDB的表名更改为自己业务表名即可 -5. 首页采用nvue,fast编译模式,加快App端启动速度 -6. 内置联网失败的重试页面(不是错误弹框,页面有重试按钮)、更漂亮的分享菜单页面 -7. 内置拦截器: + 1. 个人中心:登录注册(含用户名密码登录、手机号验证码登录、app一键登录、微信登录、Apple登录、微信小程序登录)、修改密码、忘记密码、头像更换(集成图片裁剪)、昵称修改、积分查看、指纹绑定、退出登录 + 2. 设置:App更新(整包升级、wgt升级、强制升级,后台搭配uniCloud admin的升级中心插件管理)、权限引导(app)、推送开关(app)、指纹解锁(app)、人脸解锁(app)、清除缓存(app)、用户协议、隐私协议、问题与反馈、分享推荐、关于 + 3. 启动引导:iOS初次启动被用户禁止网络权限后引导开启、Android弹出隐私协议后再申请权限 + 4. 权限引导:应用无访问摄像头/相册权限,引导跳到设置界面 + 5. 首页集成banner(后台搭配uniCloud admin的banner插件管理)、搜索、列表、详情、分享,均为云端一体。实际使用中将clientDB的表名更改为自己业务表名即可 + 6. 首页采用nvue,fast编译模式,加快App端启动速度 + 7. 内置联网失败的重试页面(不是错误弹框,页面有重试按钮)、更漂亮的分享菜单页面 + 8. 内置拦截器: - 页面路由拦截,配置需强制登录的页面;打开时检测,如果token无效就自动跳转到登录页 - 优雅实现:自动引导打开`选择图片`所需要的权限。当调用`uni.chooseImage`时检测到无权限自动开启引导。并不是在每次调用接口时处理这类问题,你可以参考该例子做更多该类场景的处理。uni-starter也会持续完善 -8. h5版在页面顶部引导用户`点击下载App` + 9. h5版在页面顶部引导用户`点击下载App` + 10. 营销裂变:点击“分销推荐”,生成带用户inviteCode参数的应用下载页(H5)。被邀请人打开下载页面点击下载,设备剪贴板的内容会被设置为邀请者的inviteCode。被邀请人下载app之后通过任何方式登陆(含:注册并登陆),uni-starter框架会自动获取设备剪切板中的inviteCode提交到服务端绑定关联关系。 ### 功能模块介绍 #### 1. 拦截器与路由守卫 diff --git a/manifest.json b/manifest.json index a41fbb51..96ccc00b 100644 --- a/manifest.json +++ b/manifest.json @@ -35,6 +35,8 @@ "OAuth": { }, "FaceID": { + }, + "Push": { } }, "distribute": { @@ -74,6 +76,8 @@ "appid": "wxffdd8fa6ec4ef2a0", "appsecret": "", "UniversalLinks": "" + }, + "univerify": { } }, "ad": { diff --git a/pages/list/list.nvue b/pages/list/list.nvue index cf80eac1..4db0358e 100644 --- a/pages/list/list.nvue +++ b/pages/list/list.nvue @@ -1,5 +1,5 @@