Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
uni-starter
提交
df9e97f2
U
uni-starter
项目概览
言程序plus
/
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看板
提交
df9e97f2
编写于
9月 01, 2022
作者:
DCloud_JSON
提交者:
study夏羽
10月 25, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复 iOS端,一键登录功能卡在showLoading的问题
上级
01b86b63
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
168 addition
and
222 deletion
+168
-222
changelog.md
changelog.md
+2
-0
components/uni-quick-login/uni-quick-login.vue
components/uni-quick-login/uni-quick-login.vue
+11
-68
manifest.json
manifest.json
+77
-70
package.json
package.json
+1
-1
pages/ucenter/login-page/index/index.vue
pages/ucenter/login-page/index/index.vue
+2
-3
uni_modules.config.json
uni_modules.config.json
+2
-2
uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/index.js
...ules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/index.js
+4
-2
uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package.json
.../uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package.json
+17
-14
uni_modules_tools/change_after.js
uni_modules_tools/change_after.js
+6
-3
uni_modules_tools/config.js
uni_modules_tools/config.js
+21
-35
uni_modules_tools/main.js
uni_modules_tools/main.js
+25
-24
未找到文件。
changelog.md
浏览文件 @
df9e97f2
## 1.2.8(2022-09-01)
+
修复 iOS端,一键登录功能卡在showLoading的问题
## 1.2.7(2022-08-10)
## 1.2.7(2022-08-10)
-
修复微信小程序绑定手机号失败的问题
-
修复微信小程序绑定手机号失败的问题
## 1.2.6(2022-06-29)
## 1.2.6(2022-06-29)
...
...
components/uni-quick-login/uni-quick-login.vue
浏览文件 @
df9e97f2
...
@@ -190,10 +190,8 @@
...
@@ -190,10 +190,8 @@
icon
:
'
none
'
icon
:
'
none
'
});
});
}
}
uni
.
showLoading
({
mask
:
true
})
if
(
type
==
'
univerify
'
)
{
if
(
type
==
'
univerify
'
&&
uni
.
getUniverifyManager
)
{
let
univerifyManager
=
uni
.
getUniverifyManager
()
let
univerifyManager
=
uni
.
getUniverifyManager
()
console
.
log
(
'
是新版
'
);
let
onButtonsClickFn
=
async
res
=>
{
let
onButtonsClickFn
=
async
res
=>
{
console
.
log
(
'
点击了第三方登录,provider:
'
,
res
,
res
.
provider
,
this
.
univerifyStyle
.
buttons
.
list
);
console
.
log
(
'
点击了第三方登录,provider:
'
,
res
,
res
.
provider
,
this
.
univerifyStyle
.
buttons
.
list
);
//同步一键登录弹出层隐私协议框是否打勾
//同步一键登录弹出层隐私协议框是否打勾
...
@@ -232,6 +230,7 @@
...
@@ -232,6 +230,7 @@
// 订阅自定义按钮点击事件
// 订阅自定义按钮点击事件
univerifyManager
.
onButtonsClick
(
onButtonsClickFn
)
univerifyManager
.
onButtonsClick
(
onButtonsClickFn
)
// 调用一键登录弹框
// 调用一键登录弹框
console
.
log
(
this
.
univerifyStyle
,
univerifyManager
.
login
);
return
univerifyManager
.
login
({
return
univerifyManager
.
login
({
"
univerifyStyle
"
:
this
.
univerifyStyle
,
"
univerifyStyle
"
:
this
.
univerifyStyle
,
success
:
res
=>
{
success
:
res
=>
{
...
@@ -245,16 +244,17 @@
...
@@ -245,16 +244,17 @@
});
});
},
},
complete
(
e
){
complete
(
e
){
console
.
log
(
e
);
uni
.
hideLoading
()
uni
.
hideLoading
()
// 取消订阅自定义按钮点击事件
// 取消订阅自定义按钮点击事件
univerifyManager
.
offButtonsClick
(
onButtonsClickFn
)
univerifyManager
.
offButtonsClick
(
onButtonsClickFn
)
}
}
})
})
}
}
uni
.
showLoading
({
mask
:
true
})
uni
.
login
({
uni
.
login
({
"
provider
"
:
type
,
"
provider
"
:
type
,
"
onlyAuthorize
"
:
true
,
//请勿直接使用前端获取的unionid或openid直接用于登录,前端的数据都是不可靠的
"
onlyAuthorize
"
:
true
,
//请勿直接使用前端获取的unionid或openid直接用于登录,前端的数据都是不可靠的
"
univerifyStyle
"
:
this
.
univerifyStyle
,
complete
:
(
e
)
=>
{
complete
:
(
e
)
=>
{
console
.
log
(
e
);
console
.
log
(
e
);
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -271,63 +271,6 @@
...
@@ -271,63 +271,6 @@
},
},
fail
:
async
(
err
)
=>
{
fail
:
async
(
err
)
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
// 以下代码为兼容旧版(HBuilderX3.2.13之前)HBuilderX3.2.13以上版本可直接删除
if
(
type
==
'
univerify
'
&&
!
uni
.
getUniverifyManager
)
{
if
(
err
.
metadata
&&
err
.
metadata
.
error_data
)
{
uni
.
showToast
({
title
:
t
(
'
oneClickLogin
'
)
+
"
:
"
+
err
.
metadata
.
error_data
,
icon
:
'
none
'
});
}
if
(
err
.
errMsg
)
{
uni
.
showToast
({
title
:
t
(
'
oneClickLogin
'
)
+
"
:
"
+
err
.
errMsg
,
icon
:
'
none
'
});
}
switch
(
err
.
errCode
)
{
case
30002
:
console
.
log
(
'
在一键登录界面,点击其他登录方式
'
);
break
;
case
30003
:
console
.
log
(
'
关闭了登录
'
);
if
(
navigateBack
)
{
uni
.
navigateBack
()
}
break
;
case
30006
:
uni
.
showModal
({
title
:
t
(
'
loginErr
'
),
content
:
err
.
metadata
.
error_data
,
showCancel
:
false
,
confirmText
:
t
(
'
gotIt
'
),
});
break
;
case
"
30008
"
:
console
.
log
(
'
点击了第三方登录,provider:
'
,
err
.
provider
);
//同步一键登录弹出层隐私协议框是否打勾
let
agree
=
(
await
uni
.
getCheckBoxState
())[
1
].
state
console
.
log
(
'
agree
'
,
agree
);
uni
.
$emit
(
'
setAgreementsAgree
'
,
agree
)
let
{
path
}
=
this
.
univerifyStyle
.
buttons
.
list
[
res
.
index
]
console
.
log
(
'
path
'
,
path
);
if
(
path
)
{
this
.
to
(
path
)
}
else
{
setTimeout
(()
=>
{
console
.
log
(
'
agree
'
,
this
.
agree
);
this
.
login_before
(
err
.
provider
)
},
500
)
}
break
;
default
:
console
.
log
(
err
);
break
;
}
}
// 以上代码为兼容旧版(HBuilderX3.2.13之前)HBuilderX3.2.13以上版本可直接删除
}
}
})
})
},
},
...
...
manifest.json
浏览文件 @
df9e97f2
{
{
"name"
:
"uni-starter
"
,
"name"
:
"
"
,
"appid"
:
"__UNI__EC87F46
"
,
"appid"
:
"
"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.0.0
"
,
"versionName"
:
"
"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
...
@@ -16,11 +15,11 @@
...
@@ -16,11 +15,11 @@
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
/*
模块配置
*/
"modules"
:
{
"modules"
:
{},
"OAuth"
:
{
/*
应用发布信息
*/
}
},
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
...
@@ -40,21 +39,29 @@
...
@@ -40,21 +39,29 @@
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
]
]
},
},
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{},
},
/*
SDK配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{}
"oauth"
:
{
"univerify"
:
{
}
}
}
}
}
},
"quickapp"
:
{
},
},
/*
快应用特有相关
*/
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
""
,
"appid"
:
""
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
,
"permission"
:
{
"scope.userLocation"
:
{
"desc"
:
"用于提供应用算法支持"
}
}
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
...
...
package.json
浏览文件 @
df9e97f2
{
{
"id"
:
"uni-starter"
,
"id"
:
"uni-starter"
,
"displayName"
:
"uni-starter"
,
"displayName"
:
"uni-starter"
,
"version"
:
"1.2.
7
"
,
"version"
:
"1.2.
8
"
,
"description"
:
"云端一体应用快速开发基本项目模版"
,
"description"
:
"云端一体应用快速开发基本项目模版"
,
"keywords"
:
[
"keywords"
:
[
"login"
,
"login"
,
...
...
pages/ucenter/login-page/index/index.vue
浏览文件 @
df9e97f2
...
@@ -126,7 +126,6 @@
...
@@ -126,7 +126,6 @@
@import
url("../common/login-page.css")
;
@import
url("../common/login-page.css")
;
.quickLogin
{
.quickLogin
{
width
:
650rpx
;
height
:
350px
;
height
:
350px
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
...
uni_modules.config.json
浏览文件 @
df9e97f2
{
{
"scripts"
:
{
"scripts"
:
{
"preupload"
:
"node uni_modules_tools/main.js change"
,
//
"preupload"
:
"node uni_modules_tools/main.js change"
,
"postupload"
:
"node uni_modules_tools/main.js recovery"
//
"postupload"
:
"node uni_modules_tools/main.js recovery"
}
}
}
}
\ No newline at end of file
uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/index.js
浏览文件 @
df9e97f2
...
@@ -426,7 +426,9 @@ exports.main = async (event, context) => {
...
@@ -426,7 +426,9 @@ exports.main = async (event, context) => {
return
loginRes
return
loginRes
break
;
break
;
case
'
loginByUniverify
'
:
case
'
loginByUniverify
'
:
console
.
error
(
params
)
res
=
await
uniID
.
loginByUniverify
(
params
)
res
=
await
uniID
.
loginByUniverify
(
params
)
console
.
log
(
999999999
,
res
)
await
uniIdLog
(
res
)
await
uniIdLog
(
res
)
break
;
break
;
case
'
loginByApple
'
:
case
'
loginByApple
'
:
...
...
uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package.json
浏览文件 @
df9e97f2
...
@@ -12,5 +12,8 @@
...
@@ -12,5 +12,8 @@
"uni-captcha"
:
"file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
,
"uni-captcha"
:
"file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
,
"uni-config-center"
:
"file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
,
"uni-config-center"
:
"file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
,
"uni-id"
:
"file:../../../../uni-id/uniCloud/cloudfunctions/common/uni-id"
"uni-id"
:
"file:../../../../uni-id/uniCloud/cloudfunctions/common/uni-id"
},
"extensions"
:
{
"uni-cloud-verify"
:
{}
}
}
}
}
uni_modules_tools/change_after.js
浏览文件 @
df9e97f2
const
fs
=
require
(
'
fs
'
);
const
fs
=
require
(
'
fs
'
);
module
.
exports
=
function
(){
module
.
exports
=
function
(){
console
.
log
(
'
开始执行脚本change_after
'
);
console
.
log
(
'
开始执行脚本change_after
'
);
let
changelog
=
fs
.
readFileSync
(
process
.
cwd
()
+
'
/changelog.md
'
,
'
utf-8
'
).
split
(
"
##
"
)[
1
].
split
(
"
\n
"
).
slice
(
1
).
join
(
'
'
);
/*
let changelog = fs.readFileSync(process.cwd() + '/changelog.md', 'utf-8').split("##")[1].split("\n").slice(1).join(' ');
console.log(changelog);
console.log(changelog);
// 这里是修改完相关敏感配置后执行的脚本,你可以在这里自定义逻辑,
// 这里是修改完相关敏感配置后执行的脚本,你可以在这里自定义逻辑,
// 比如执行git提交命令
// 比如执行git提交命令
var shell = require("shelljs");
var shell = require("shelljs");
var exec = shell.exec;
var exec = shell.exec;
...
@@ -21,4 +23,5 @@ module.exports = function(){
...
@@ -21,4 +23,5 @@ module.exports = function(){
shell.exit(1);
shell.exit(1);
}
}
shell.exec(`echo git success ${changelog}`);
shell.exec(`echo git success ${changelog}`);
*/
}
}
\ No newline at end of file
uni_modules_tools/config.js
浏览文件 @
df9e97f2
// "文件路径" : {"键名":"改成什么"}
// "文件路径" : {"键名":"改成什么"}
{
{
"
/manifest.json
"
:
{
"
/manifest.json
"
:
{
"
appid
"
:
"
请点击重新获取
"
,
//清空appid
"
appid
"
:
""
,
"
mp-weixin
"
:
{
"
name
"
:
""
,
"
appid
"
:
""
"
versionName
"
:
""
,
},
"
mp-weixin
"
:
{
"
app-plus
"
:
{
"
appid
"
:
""
"
distribute
"
:{
"
sdkConfigs
"
:
{
"
oauth
"
:
{
"
weixin
"
:
{
"
appid
"
:
""
,
"
appsecret
"
:
""
,
"
UniversalLinks
"
:
""
},
"
univerify
"
:
{}
},
},
"
share
"
:
{
"
vueVersion
"
:
"
2
"
,
"
weixin
"
:
{
"
app-plus
"
:
{
"
appid
"
:
""
,
"
modules
"
:
{
"
UniversalLinks
"
:
""
"
OAuth
"
:
{}
}
},
},
"
geolocation
"
:
{
"
distribute
"
:
{
"
baidu
"
:
{
"
sdkConfigs
"
:
{
"
__platform__
"
:
[
"
ios
"
,
"
android
"
],
"
oauth
"
:
{
"
appkey_ios
"
:
"
请填写地图的key
"
,
"
univerify
"
:
{}
"
appkey_android
"
:
"
请填写地图的key
"
}
}
}
}
}
}
}
}
},
},
"
_spaceID
"
:
""
,
"
vueVersion
"
:
"
2
"
},
"
/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
"
:
{
"
/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
"
:
{
"
tokenExpiresIn
"
:
7200
,
"
tokenExpiresIn
"
:
7200
,
"
app
"
:
{
"
app
"
:
{
...
...
uni_modules_tools/main.js
浏览文件 @
df9e97f2
...
@@ -96,6 +96,7 @@ function mergeJSON(minor, main) {
...
@@ -96,6 +96,7 @@ function mergeJSON(minor, main) {
if
(
typeof
(
main
[
key
])
!=
'
object
'
)
{
if
(
typeof
(
main
[
key
])
!=
'
object
'
)
{
minor
[
key
]
=
main
[
key
];
minor
[
key
]
=
main
[
key
];
}
else
{
}
else
{
console
.
log
(
'
[
'
,
minor
[
key
],
main
[
key
],
'
]
'
);
mergeJSON
(
minor
[
key
],
main
[
key
]);
mergeJSON
(
minor
[
key
],
main
[
key
]);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录