Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
1b29381c
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4640
Star
228
Fork
210
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1b29381c
编写于
7月 06, 2021
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复,仅配置一种快捷登录时的错误
上级
0db87f78
变更
14
显示空白变更内容
内联
并排
Showing
14 changed file
with
325 addition
and
305 deletion
+325
-305
changelog.md
changelog.md
+2
-0
common/appInit.js
common/appInit.js
+6
-10
components/uni-quick-login/uni-quick-login.vue
components/uni-quick-login/uni-quick-login.vue
+113
-120
manifest.json
manifest.json
+129
-111
package.json
package.json
+1
-1
pages/ucenter/about/about.vue
pages/ucenter/about/about.vue
+6
-2
pages/ucenter/login-page/index/index.vue
pages/ucenter/login-page/index/index.vue
+1
-1
pages/ucenter/ucenter.vue
pages/ucenter/ucenter.vue
+1
-1
static/login-index/apple.png
static/login-index/apple.png
+0
-0
static/login-index/weixin.png
static/login-index/weixin.png
+0
-0
uni-starter.config.js
uni-starter.config.js
+1
-1
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
...loudfunctions/common/uni-config-center/uni-id/config.json
+2
-2
uni_modules_tools/copy/manifest.json
uni_modules_tools/copy/manifest.json
+11
-4
uni_modules_tools/copy/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
...loudfunctions/common/uni-config-center/uni-id/config.json
+52
-52
未找到文件。
changelog.md
浏览文件 @
1b29381c
## 1.0.32(2021-07-06)
修复,仅配置一种快捷登录时的错误
## 1.0.31(2021-07-02)
## 1.0.31(2021-07-02)
优化项目文档
优化项目文档
## 1.0.30(2021-07-01)
## 1.0.30(2021-07-01)
...
...
common/appInit.js
浏览文件 @
1b29381c
...
@@ -9,7 +9,7 @@ import interceptorChooseImage from '@/uni_modules/json-interceptor-chooseImage/j
...
@@ -9,7 +9,7 @@ import interceptorChooseImage from '@/uni_modules/json-interceptor-chooseImage/j
const
db
=
uniCloud
.
database
()
const
db
=
uniCloud
.
database
()
export
default
async
function
()
{
export
default
async
function
()
{
let
loginConfig
=
uniStarterConfig
.
router
.
login
let
loginConfig
=
uniStarterConfig
.
router
.
login
//清除有配置但设备环境不支持的登陆项
//清除有配置但设备环境不支持的登陆项
// #ifdef APP-PLUS
// #ifdef APP-PLUS
await
new
Promise
((
callBack
)
=>
{
await
new
Promise
((
callBack
)
=>
{
plus
.
oauth
.
getServices
(
oauthServices
=>
{
plus
.
oauth
.
getServices
(
oauthServices
=>
{
...
@@ -25,7 +25,6 @@ export default async function() {
...
@@ -25,7 +25,6 @@ export default async function() {
return
true
return
true
}
}
})
})
if
(
loginConfig
.
includes
(
'
univerify
'
)){
//一键登录 功能预登录
if
(
loginConfig
.
includes
(
'
univerify
'
)){
//一键登录 功能预登录
uni
.
preLogin
({
uni
.
preLogin
({
provider
:
'
univerify
'
,
provider
:
'
univerify
'
,
...
@@ -41,6 +40,7 @@ export default async function() {
...
@@ -41,6 +40,7 @@ export default async function() {
})
})
// #endif
// #endif
//非app移除:一键登录、苹果登陆;h5移除微信登陆,如果你做微信公众号登陆需要将此行移除
// #ifndef APP-PLUS
// #ifndef APP-PLUS
loginConfig
=
loginConfig
.
filter
(
item
=>
{
loginConfig
=
loginConfig
.
filter
(
item
=>
{
return
!
[
return
!
[
...
@@ -56,13 +56,9 @@ export default async function() {
...
@@ -56,13 +56,9 @@ export default async function() {
uniStarterConfig
.
router
.
login
=
loginConfig
uniStarterConfig
.
router
.
login
=
loginConfig
// uniStarterConfig挂载到getApp().globalData.config
// uniStarterConfig挂载到getApp().globalData.config
// #ifdef MP-WEIXIN
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// #endif
getApp
({
allowDefault
:
true
}).
globalData
.
config
=
uniStarterConfig
;
getApp
({
allowDefault
:
true
}).
globalData
.
config
=
uniStarterConfig
;
// #ifdef MP-WEIXIN
},
1
)
},
100
)
// #endif
// 初始化appVersion(仅app生效)
// 初始化appVersion(仅app生效)
...
...
components/uni-quick-login/uni-quick-login.vue
浏览文件 @
1b29381c
...
@@ -36,36 +36,41 @@
...
@@ -36,36 +36,41 @@
"
text
"
:
"
短信验证码
"
,
"
text
"
:
"
短信验证码
"
,
"
logo
"
:
"
/static/uni-quick-login/sms.png
"
,
"
logo
"
:
"
/static/uni-quick-login/sms.png
"
,
"
path
"
:
"
/pages/ucenter/login-page/index/index
"
"
path
"
:
"
/pages/ucenter/login-page/index/index
"
}
},
],
{
oauthServices
:
[],
"
id
"
:
"
weixin
"
,
config
:
{
"
weixin
"
:
{
"
text
"
:
"
微信登录
"
,
"
text
"
:
"
微信登录
"
,
"
logo
"
:
"
/static/uni-quick-login/wechat.png
"
,
"
logo
"
:
"
/static/uni-quick-login/wechat.png
"
,
},
},
"
apple
"
:
{
{
"
id
"
:
"
apple
"
,
"
text
"
:
"
苹果登录
"
,
"
text
"
:
"
苹果登录
"
,
"
logo
"
:
"
/static/uni-quick-login/apple.png
"
,
"
logo
"
:
"
/static/uni-quick-login/apple.png
"
,
},
},
"
univerify
"
:
{
{
"
id
"
:
"
univerify
"
,
"
text
"
:
"
一键登录
"
,
"
text
"
:
"
一键登录
"
,
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
},
},
"
qq
"
:
{
{
"
text
"
:
"
QQ登录
"
,
//暂未提供该登录方式的接口示例
"
id
"
:
"
qq
"
,
"
text
"
:
"
QQ登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
},
},
"
xiaomi
"
:
{
{
"
text
"
:
"
小米登录
"
,
//暂未提供该登录方式的接口示例
"
id
"
:
"
xiaomi
"
,
"
text
"
:
"
小米登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
},
},
"
sinaweibo
"
:
{
{
"
text
"
:
"
微博登录
"
,
//暂未提供该登录方式的接口示例
"
id
"
:
"
sinaweibo
"
,
"
text
"
:
"
微博登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
"
logo
"
:
"
/static/uni-quick-login/univerify.png
"
,
}
}
},
],
univerifyStyle
:{
//一键登录弹出窗的样式配置参数
oauthServices
:
[],
config
:
{},
univerifyStyle
:
{
//一键登录弹出窗的样式配置参数
"
fullScreen
"
:
true
,
// 是否全屏显示,true表示全屏模式,false表示非全屏模式,默认值为false。
"
fullScreen
"
:
true
,
// 是否全屏显示,true表示全屏模式,false表示非全屏模式,默认值为false。
"
backgroundColor
"
:
"
#ffffff
"
,
// 授权页面背景颜色,默认值:#ffffff
"
backgroundColor
"
:
"
#ffffff
"
,
// 授权页面背景颜色,默认值:#ffffff
"
buttons
"
:
{
// 自定义登陆按钮
"
buttons
"
:
{
// 自定义登陆按钮
...
@@ -98,22 +103,39 @@
...
@@ -98,22 +103,39 @@
},
},
async
created
()
{
async
created
()
{
let
servicesList
=
this
.
servicesList
let
servicesList
=
this
.
servicesList
//获取当前环境能用的快捷登录方式
//去掉配置中不存在的
// #ifdef MP-WEIXIN
servicesList
=
servicesList
.
filter
(
item
=>
this
.
loginConfig
.
includes
(
item
.
id
))
let
id
=
'
weixin
'
//处理一键登录
servicesList
.
push
({
if
(
this
.
loginConfig
.
includes
(
'
univerify
'
)){
...
this
.
config
[
id
],
this
.
univerifyStyle
.
privacyTerms
.
privacyItems
=
this
.
agreements
id
//设置一键登录功能底下的快捷登陆按钮
servicesList
.
forEach
(({
id
,
logo
})
=>
{
if
(
id
!=
'
univerify
'
)
{
this
.
univerifyStyle
.
buttons
.
list
.
push
({
"
iconPath
"
:
logo
,
"
provider
"
:
id
})
})
// #endif
}
})
}
//如果当前页面为默认登陆界面。当前第一优先级的“微信和苹果登陆”要隐藏,因为他已经被渲染在默认登陆界面顶部
if
(
this
.
getRoute
(
1
)
==
'
/pages/ucenter/login-page/index/index
'
&&
[
'
weixin
'
,
'
apple
'
].
includes
(
this
.
loginConfig
[
0
])
)
{
servicesList
=
servicesList
.
filter
(
item
=>
item
.
id
!=
this
.
loginConfig
[
0
])
}
//去掉当前页面对应的登录选项
this
.
servicesList
=
servicesList
.
filter
(
item
=>
{
return
item
.
path
!=
this
.
getRoute
(
1
)
})
console
.
log
(
'
servicesList
'
,
servicesList
,
this
.
servicesList
);
},
mounted
()
{
// #ifdef APP-PLUS
// #ifdef APP-PLUS
this
.
oauthServices
=
await
new
Promise
((
callBack
)
=>
{
plus
.
oauth
.
getServices
(
oauthServices
=>
{
plus
.
oauth
.
getServices
(
oauthServices
=>
{
callBack
(
oauthServices
.
filter
(({
nativeClient
,
id
})
=>
nativeClient
))
this
.
oauthServices
=
oauthServices
//只返回1.应用支持 && 2.手机已安装对应客户端 && 3.uni-starter.config.js配置项中存在的快捷登录方式
},
err
=>
{
},
err
=>
{
callBack
([])
uni
.
hideLoading
()
uni
.
showModal
({
uni
.
showModal
({
title
:
'
获取服务供应商失败:
'
+
JSON
.
stringify
(
err
),
title
:
'
获取服务供应商失败:
'
+
JSON
.
stringify
(
err
),
showCancel
:
false
,
showCancel
:
false
,
...
@@ -121,35 +143,7 @@
...
@@ -121,35 +143,7 @@
});
});
console
.
error
(
'
获取服务供应商失败:
'
+
JSON
.
stringify
(
err
));
console
.
error
(
'
获取服务供应商失败:
'
+
JSON
.
stringify
(
err
));
})
})
})
// #endif
// #endif
//添加可用的第三方快捷登陆项
servicesList
=
servicesList
.
concat
(
this
.
oauthServices
.
map
(
({
id
})
=>
{
return
{...
this
.
config
[
id
],
id
}
}))
//去掉配置中不存在的
servicesList
=
servicesList
.
filter
(
item
=>
this
.
loginConfig
.
includes
(
item
.
id
))
this
.
univerifyStyle
.
privacyTerms
.
privacyItems
=
this
.
agreements
//设置一键登录功能底下的快捷登陆按钮
servicesList
.
forEach
(({
id
,
logo
})
=>
{
if
(
id
!=
'
univerify
'
){
this
.
univerifyStyle
.
buttons
.
list
.
push
({
"
iconPath
"
:
logo
,
"
provider
"
:
id
})
}
})
//如果当前页面为默认登陆界面。当前第一优先级的“第三方快捷按钮”要隐藏,因为他已经被渲染在默认登陆界面顶部
if
(
this
.
getRoute
(
1
)
==
'
/pages/ucenter/login-page/index/index
'
&&
this
.
config
[
this
.
loginConfig
[
0
]]
){
servicesList
=
servicesList
.
filter
(
item
=>
item
.
id
!=
this
.
loginConfig
[
0
])
}
//去掉当前页面对应的登录选项
this
.
servicesList
=
servicesList
.
filter
(
item
=>
{
return
item
.
path
!=
this
.
getRoute
(
1
)
})
console
.
log
(
'
servicesList
'
,
servicesList
,
this
.
servicesList
);
},
},
methods
:
{
methods
:
{
...
mapMutations
({
...
mapMutations
({
...
@@ -170,12 +164,12 @@
...
@@ -170,12 +164,12 @@
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
path
,
url
:
path
,
animationType
:
'
slide-in-left
'
animationType
:
'
slide-in-left
'
})
})
}
}
},
},
login_before
(
type
,
navigateBack
=
true
)
{
login_before
(
type
,
navigateBack
=
true
)
{
if
(
!
this
.
agree
&&
type
!=
'
univerify
'
)
{
if
(
!
this
.
agree
&&
type
!=
'
univerify
'
)
{
return
uni
.
showToast
({
return
uni
.
showToast
({
title
:
'
你未同意隐私政策协议
'
,
title
:
'
你未同意隐私政策协议
'
,
icon
:
'
none
'
icon
:
'
none
'
...
@@ -201,7 +195,7 @@
...
@@ -201,7 +195,7 @@
},
},
err
=>
{
err
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
err
);
console
.
error
(
err
);
uni
.
showModal
({
uni
.
showModal
({
content
:
JSON
.
stringify
(
err
),
content
:
JSON
.
stringify
(
err
),
showCancel
:
false
showCancel
:
false
...
@@ -236,7 +230,7 @@
...
@@ -236,7 +230,7 @@
},
},
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
err
);
console
.
error
(
err
);
if
(
type
==
'
univerify
'
)
{
if
(
type
==
'
univerify
'
)
{
if
(
err
.
metadata
&&
err
.
metadata
.
error_data
)
{
if
(
err
.
metadata
&&
err
.
metadata
.
error_data
)
{
...
@@ -274,12 +268,14 @@
...
@@ -274,12 +268,14 @@
title
:
'
点击了第三方登陆
'
,
title
:
'
点击了第三方登陆
'
,
icon
:
'
none
'
icon
:
'
none
'
});
});
console
.
log
(
'
点击了第三方登陆,provider:
'
,
err
.
provider
);
console
.
log
(
'
点击了第三方登陆,provider:
'
,
err
.
provider
);
let
{
path
}
=
this
.
servicesList
.
find
(
item
=>
item
.
id
==
err
.
provider
)
||
{}
let
{
console
.
log
(
'
path
'
,
path
);
path
if
(
path
&&
path
!=
this
.
getRoute
(
1
)){
//存在路径,且并不是当前已经打开的路径
}
=
this
.
servicesList
.
find
(
item
=>
item
.
id
==
err
.
provider
)
||
{}
console
.
log
(
'
path
'
,
path
);
if
(
path
&&
path
!=
this
.
getRoute
(
1
))
{
//存在路径,且并不是当前已经打开的路径
this
.
to
(
path
)
this
.
to
(
path
)
}
else
{
}
else
{
this
.
login_before
(
err
.
provider
)
this
.
login_before
(
err
.
provider
)
}
}
break
;
break
;
...
@@ -292,10 +288,7 @@
...
@@ -292,10 +288,7 @@
})
})
},
},
login
(
params
,
type
)
{
//联网验证登录
login
(
params
,
type
)
{
//联网验证登录
console
.
log
({
console
.
log
({
params
,
type
});
params
,
type
});
let
action
=
'
loginBy
'
+
type
.
trim
().
toLowerCase
().
replace
(
type
[
0
],
type
[
0
].
toUpperCase
())
let
action
=
'
loginBy
'
+
type
.
trim
().
toLowerCase
().
replace
(
type
[
0
],
type
[
0
].
toUpperCase
())
uniCloud
.
callFunction
({
uniCloud
.
callFunction
({
name
:
'
uni-id-cf
'
,
name
:
'
uni-id-cf
'
,
...
@@ -306,7 +299,7 @@
...
@@ -306,7 +299,7 @@
success
:
({
success
:
({
result
result
})
=>
{
})
=>
{
console
.
log
(
result
);
console
.
log
(
"
login-result
"
,
result
);
if
(
result
.
code
===
0
)
{
if
(
result
.
code
===
0
)
{
if
(
type
==
'
univerify
'
)
{
if
(
type
==
'
univerify
'
)
{
uni
.
closeAuthView
()
uni
.
closeAuthView
()
...
...
manifest.json
浏览文件 @
1b29381c
{
{
"name"
:
"uni-starter"
,
"name"
:
"uni-starter"
,
"appid"
:
"__UNI__03B096E
"
,
"appid"
:
"请点击重新获取
"
,
"description"
:
"云端一体应用快速开发模版"
,
"description"
:
"云端一体应用快速开发模版"
,
"versionName"
:
"1.0.0"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"app-plus"
:
{
"app-plus"
:
{
"privacy"
:
{
"privacy"
:
{
"prompt"
:
"template"
,
"prompt"
:
"template"
,
"template"
:
{
"template"
:
{
"title"
:
"服务协议和隐私政策"
,
"title"
:
"服务协议和隐私政策"
,
"message"
:
" 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=
\"
https://ask.dcloud.net.cn/protocol.html
\"
>《服务协议》</a>和<a href=
\"
https://ask.dcloud.net.cn/protocol.html
\"
>《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。"
,
"message"
:
" 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=
\"
https://ask.dcloud.net.cn/protocol.html
\"
>《服务协议》</a>和<a href=
\"
https://ask.dcloud.net.cn/protocol.html
\"
>《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。"
,
"buttonAccept"
:
"同意"
,
"buttonAccept"
:
"同意"
,
"buttonRefuse"
:
"暂不同意"
"buttonRefuse"
:
"暂不同意"
}
}
},
},
"compatible"
:
{
"compatible"
:
{
"ignoreVersion"
:
true
"ignoreVersion"
:
true
},
},
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
"modules"
:
{
"modules"
:
{
"Fingerprint"
:
{},
"Fingerprint"
:
{
"Share"
:
{},
},
"OAuth"
:
{},
"Share"
:
{
"FaceID"
:
{},
},
"Push"
:
{}
"OAuth"
:
{
},
},
"distribute"
:
{
"FaceID"
:
{
"android"
:
{
},
"permissions"
:
[
"Push"
:
{
}
},
"distribute"
:
{
"android"
:
{
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
...
@@ -55,65 +60,78 @@
...
@@ -55,65 +60,78 @@
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
],
],
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
]
"abiFilters"
:
[
},
"armeabi-v7a"
,
"ios"
:
{
"arm64-v8a"
,
"capabilities"
:
{
"x86"
"entitlements"
:
{
]
"com.apple.developer.associated-domains"
:
[
"applinks:static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com"
]
},
"ios"
:
{
"capabilities"
:
{
"entitlements"
:
{
"com.apple.developer.associated-domains"
:
[
"applinks:static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com"
]
}
}
}
}
},
},
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"oauth"
:
{
"oauth"
:
{
"apple"
:
{},
"apple"
:
{
"weixin"
:
{
},
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"weixin"
:
{
"appsecret"
:
""
,
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"UniversalLinks"
:
"https://static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com/uni-universallinks/__UNI__03B096E"
"appsecret"
:
""
,
},
"UniversalLinks"
:
"https://static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com/uni-universallinks/__UNI__03B096E"
"univerify"
:
{}
},
},
"univerify"
:
{
"ad"
:
{},
}
"share"
:
{
},
"weixin"
:
{
"ad"
:
{
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
},
"UniversalLinks"
:
"https://static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com/uni-universallinks/__UNI__03B096E"
"share"
:
{
"weixin"
:
{
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"UniversalLinks"
:
"https://static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com/uni-universallinks/__UNI__03B096E"
}
}
},
},
"geolocation"
:
{},
"geolocation"
:
{
"push"
:
{
"unipush"
:
{}
},
},
"payment"
:
{}
"push"
:
{
"unipush"
:
{
}
}
},
},
"nvueLaunchMode"
:
""
"payment"
:
{
}
}
},
"nvueLaunchMode"
:
""
},
"quickapp"
:
{
},
},
"quickapp"
:
{},
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
""
,
"appid"
:
"wx81dbb061d2258234"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
,
"urlCheck"
:
false
,
"es6"
:
false
"es6"
:
false
},
},
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"betterScopedSlots"
:
true
"betterScopedSlots"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
},
},
"h5"
:
{
"h5"
:
{
"template"
:
""
"template"
:
""
},
},
"_spaceID"
:
"76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e"
"_spaceID"
:
"76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e"
}
}
\ No newline at end of file
package.json
浏览文件 @
1b29381c
{
{
"id"
:
"uni-starter"
,
"id"
:
"uni-starter"
,
"displayName"
:
"uni-starter"
,
"displayName"
:
"uni-starter"
,
"version"
:
"1.0.3
1
"
,
"version"
:
"1.0.3
2
"
,
"description"
:
"云端一体应用快速开发基本项目模版"
,
"description"
:
"云端一体应用快速开发基本项目模版"
,
"keywords"
:
[
"keywords"
:
[
"uni-starter"
,
"uni-starter"
,
...
...
pages/ucenter/about/about.vue
浏览文件 @
1b29381c
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
<text
class=
"tip"
>
扫描二维码,您的朋友也可以下载
{{
about
.
appName
}}
客户端
</text>
<text
class=
"tip"
>
扫描二维码,您的朋友也可以下载
{{
about
.
appName
}}
客户端
</text>
</view>
</view>
<view
class=
"copyright"
>
<view
class=
"copyright"
>
<
template
v-for=
"(agreement,index) in about.agreements
"
>
<
view
class=
"agreement-box"
v-for=
"(agreement,index) in about.agreements"
:key=
"index
"
>
<text
class=
"agreement"
@
click=
"navigateTo(agreement)"
>
《
{{
agreement
.
title
}}
》
</text>
<text
class=
"agreement"
@
click=
"navigateTo(agreement)"
>
《
{{
agreement
.
title
}}
》
</text>
<text
class=
"hint"
v-if=
"about.agreements.length-1>index"
>
和
</text>
<text
class=
"hint"
v-if=
"about.agreements.length-1>index"
>
和
</text>
</
template
>
</
view
>
<text
class=
"hint"
>
Copyright ©
{{
year
}}
</text>
<text
class=
"hint"
>
Copyright ©
{{
year
}}
</text>
<text
class=
"hint"
>
{{
about
.
company
}}
</text>
<text
class=
"hint"
>
{{
about
.
company
}}
</text>
</view>
</view>
...
@@ -154,11 +154,15 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
...
@@ -154,11 +154,15 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
left
:
0
;
left
:
0
;
position
:
fixed
;
position
:
fixed
;
}
}
.agreement-box
{
justify-content
:
center
;
}
.agreement
{
.agreement
{
color
:
#2285ff
;
color
:
#2285ff
;
font-size
:
26rpx
;
font-size
:
26rpx
;
}
}
.hint
{
.hint
{
text-align
:
center
;
color
:
#999999
;
color
:
#999999
;
font-size
:
26rpx
;
font-size
:
26rpx
;
}
}
...
...
pages/ucenter/login-page/index/index.vue
浏览文件 @
1b29381c
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
justify-content
:
center
;
justify-content
:
center
;
}
}
.quickLoginBtn
{
.quickLoginBtn
{
margin
-bottom
:
20px
;
margin
:
20px
0
;
width
:
450rpx
;
width
:
450rpx
;
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/ucenter/ucenter.vue
浏览文件 @
1b29381c
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
"
event
"
:
'
getScore
'
,
"
event
"
:
'
getScore
'
,
"
icon
"
:
"
paperplane
"
"
icon
"
:
"
paperplane
"
}
}
// #if
ndef H5
// #if
def APP-PLUS
,{
,{
"
title
"
:
'
分销推荐
'
,
"
title
"
:
'
分销推荐
'
,
"
event
"
:
'
share
'
,
"
event
"
:
'
share
'
,
...
...
static/login-index/apple.png
0 → 100644
浏览文件 @
1b29381c
17.8 KB
static/login-index/weixin.png
0 → 100644
浏览文件 @
1b29381c
13.0 KB
uni-starter.config.js
浏览文件 @
1b29381c
...
@@ -31,7 +31,7 @@ module.exports = {
...
@@ -31,7 +31,7 @@ module.exports = {
根据数组的第0项,决定登录方式的第一优先级。
根据数组的第0项,决定登录方式的第一优先级。
*/
*/
// "login": ["username","smsCode","univerify", "weixin", "apple"],
// "login": ["username","smsCode","univerify", "weixin", "apple"],
"
login
"
:
[
"
username
"
,
"
weixin
"
,
"
apple
"
,
"
smsCod
e
"
],
"
login
"
:
[
"
weixin
"
,
"
smsCode
"
,
"
univerify
"
,
"
username
"
,
"
appl
e
"
],
},
},
//关于应用
//关于应用
"
about
"
:
{
"
about
"
:
{
...
...
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
浏览文件 @
1b29381c
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
"mp-weixin"
:
{
"mp-weixin"
:
{
"oauth"
:
{
"oauth"
:
{
"weixin"
:
{
"weixin"
:
{
"appid"
:
"
wx81dbb061d2258234
"
,
"appid"
:
"
微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取
"
,
"appsecret"
:
"
51977820eb14cd71377d4048a1b4754e
"
"appsecret"
:
"
微信小程序后台获取的appsecret
"
}
}
}
}
},
},
...
...
uni_modules_tools/copy/manifest.json
浏览文件 @
1b29381c
...
@@ -57,14 +57,20 @@
...
@@ -57,14 +57,20 @@
],
],
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
]
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
]
},
},
"ios"
:
{},
"ios"
:
{
"capabilities"
:
{
"entitlements"
:
{
"com.apple.developer.associated-domains"
:
[
"applinks:static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com"
]
}
}
},
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"oauth"
:
{
"oauth"
:
{
"apple"
:
{},
"apple"
:
{},
"weixin"
:
{
"weixin"
:
{
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"appsecret"
:
""
,
"appsecret"
:
""
,
"UniversalLinks"
:
""
"UniversalLinks"
:
"
https://static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com/uni-universallinks/__UNI__03B096E
"
},
},
"univerify"
:
{}
"univerify"
:
{}
},
},
...
@@ -72,7 +78,7 @@
...
@@ -72,7 +78,7 @@
"share"
:
{
"share"
:
{
"weixin"
:
{
"weixin"
:
{
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"UniversalLinks"
:
""
"UniversalLinks"
:
"
https://static-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e.bspapp.com/uni-universallinks/__UNI__03B096E
"
}
}
},
},
"geolocation"
:
{},
"geolocation"
:
{},
...
@@ -108,5 +114,6 @@
...
@@ -108,5 +114,6 @@
},
},
"h5"
:
{
"h5"
:
{
"template"
:
""
"template"
:
""
}
},
"_spaceID"
:
"76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e"
}
}
uni_modules_tools/copy/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
浏览文件 @
1b29381c
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
"tokenExpiresIn"
:
2592000
,
"tokenExpiresIn"
:
2592000
,
"oauth"
:
{
"oauth"
:
{
"weixin"
:
{
"weixin"
:
{
"appid"
:
"填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid"
,
"appid"
:
"wxffdd8fa6ec4ef2a0"
,
"appsecret"
:
"填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
"appsecret"
:
"6c9119430d7be0a147bcbbb73ef33acf"
},
},
"apple"
:
{
"apple"
:
{
"bundleId"
:
"苹果开发者后台获取的bundleId"
"bundleId"
:
"苹果开发者后台获取的bundleId"
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
"mp-weixin"
:
{
"mp-weixin"
:
{
"oauth"
:
{
"oauth"
:
{
"weixin"
:
{
"weixin"
:
{
"appid"
:
"微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取"
,
"appid"
:
"wx81dbb061d2258234"
,
"appsecret"
:
"微信小程序后台获取的appsecret"
"appsecret"
:
"51977820eb14cd71377d4048a1b4754e"
}
}
}
}
},
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录