Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
德宏大魔王
uni-starter
提交
00c49e97
U
uni-starter
项目概览
德宏大魔王
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
00c49e97
编写于
4月 15, 2021
作者:
L
linju
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
123
上级
5f09de63
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
37 addition
and
17 deletion
+37
-17
baseapp.config.json
baseapp.config.json
+1
-1
common/appInit.js
common/appInit.js
+3
-0
js_sdk/request.js
js_sdk/request.js
+2
-2
manifest.json
manifest.json
+25
-10
pages/ucenter/edit/edit.vue
pages/ucenter/edit/edit.vue
+0
-0
uni_modules/uni-id/changelog.md
uni_modules/uni-id/changelog.md
+2
-0
uni_modules/uni-id/package.json
uni_modules/uni-id/package.json
+1
-1
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/index.js
...les/uni-id/uniCloud/cloudfunctions/common/uni-id/index.js
+1
-1
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
...uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
+1
-1
uni_modules/uni-quick-login/uniCloud/cloudfunctions/user-center/index.js
...-quick-login/uniCloud/cloudfunctions/user-center/index.js
+1
-1
未找到文件。
baseapp.config.json
浏览文件 @
00c49e97
{
"router"
:{
"needLogin"
:[
"/pages/
grid/grid
"
"/pages/
ucenter/edit/edit
"
]
}
}
\ No newline at end of file
common/appInit.js
浏览文件 @
00c49e97
...
...
@@ -46,6 +46,9 @@ function setRouter() {
if
(
needLogin
.
includes
(
e
.
url
)
&&
token
==
''
)
{
res
=
false
console
.
log
(
'
该页面需要登陆,即将跳转到login页面
'
);
uni
.
redirectTo
({
url
:
"
/uni_modules/uni-login-page/pages/index/index
"
})
}
return
res
}
...
...
js_sdk/request.js
浏览文件 @
00c49e97
...
...
@@ -7,7 +7,7 @@
*/
const
debug
=
true
;
//开启后,会alert错误信息
export
default
function
request
(
name
,
params
,
callback
=
false
,{
showLoading
=
false
,
loadText
=
''
,
fail
=
()
=>
{}}
=
{}){
console
.
log
(
'
request
'
);
//
console.log('request');
showLoading
||
loadText
?
uni
.
showLoading
({
title
:
loadText
}):
''
;
let
routers
=
name
.
split
(
'
/
'
);
...
...
@@ -16,7 +16,7 @@ export default function request(name,params,callback=false,{showLoading=false,lo
name
=
routers
[
0
]
action
=
routers
[
1
]
}
//
console.log({name,data: {action,params}})
console
.
log
({
name
,
data
:
{
action
,
params
}})
return
new
Promise
((
resolve
,
reject
)
=>
{
uniCloud
.
callFunction
({
name
,
data
:
{
action
,
params
},
success
(
e
){
...
...
manifest.json
浏览文件 @
00c49e97
...
...
@@ -18,27 +18,32 @@
},
/*
模块配置
*/
"modules"
:
{
"OAuth"
:
{}
"OAuth"
:
{},
"Fingerprint"
:
{},
"Share"
:
{},
"Push"
:
{}
},
/*
应用发布信息
*/
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MODIFY_AUDIO_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.USE_FINGERPRINT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
]
},
...
...
@@ -54,7 +59,17 @@
"UniversalLinks"
:
""
}
},
"ad"
:
{}
"ad"
:
{},
"share"
:
{
"weixin"
:
{
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"UniversalLinks"
:
""
}
},
"geolocation"
:
{},
"push"
:
{
"unipush"
:
{}
}
}
}
},
...
...
pages/ucenter/edit/edit.
n
vue
→
pages/ucenter/edit/edit.vue
浏览文件 @
00c49e97
文件已移动
uni_modules/uni-id/changelog.md
浏览文件 @
00c49e97
## 3.0.12(2021-04-13)
-
调整bindTokenToDevice默认值为false
## 3.0.11(2021-04-12)
-
修复3.0.7版本引出的多个用户访问时可能出现30201报错的Bug
## 3.0.10(2021-04-08)
...
...
uni_modules/uni-id/package.json
浏览文件 @
00c49e97
{
"id"
:
"uni-id"
,
"displayName"
:
"uni-id"
,
"version"
:
"3.0.1
1
"
,
"version"
:
"3.0.1
2
"
,
"description"
:
"简单、统一、可扩展的用户中心"
,
"keywords"
:
[
"uniid"
,
...
...
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/index.js
浏览文件 @
00c49e97
此差异已折叠。
点击以展开。
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
浏览文件 @
00c49e97
{
"name"
:
"uni-id"
,
"version"
:
"3.0.1
1
"
,
"version"
:
"3.0.1
2
"
,
"description"
:
"uni-id for uniCloud"
,
"main"
:
"index.js"
,
"homepage"
:
"https://uniapp.dcloud.io/uniCloud/uni-id"
,
...
...
uni_modules/uni-quick-login/uniCloud/cloudfunctions/user-center/index.js
浏览文件 @
00c49e97
...
...
@@ -11,7 +11,7 @@ exports.main = async (event, context) => {
context
})
//event为客户端上传的参数
console
.
log
(
'
event :
'
+
event
)
console
.
log
(
'
event :
'
+
JSON
.
stringify
(
event
)
)
let
params
=
event
.
params
||
{}
//防止黑客恶意破解登陆,连续登陆失败一定次数后,需要用户提供验证码
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录