Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
300b5e3a
Commit
300b5e3a
authored
Mar 02, 2023
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决游客登陆强制退出后停留在首页bug和token报错提示bug&配置了云打包相机权限
parent
a72609c7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
11 deletions
+16
-11
components/login/login.vue
+11
-7
environments/environment.ts
+1
-1
manifest.json
+2
-1
pages/index/index.vue
+2
-1
pages/personalCenter/system/settings.vue
+0
-1
No files found.
components/login/login.vue
View file @
300b5e3a
...
...
@@ -123,12 +123,16 @@
type
:
"1"
,
source
:
"cffp"
}
if
(
common
.
mobileNoValid
(
this
.
form
.
mobile
)
&&
!
this
.
disabledSendBtn
){
api
.
verificationCode
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
delayTime
()
}
})
if
(
common
.
mobileNoValid
(
this
.
form
.
mobile
)){
if
(
!
this
.
disabledSendBtn
){
api
.
verificationCode
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
delayTime
()
}
else
{
common
.
errorDialog
(
2
,
res
[
'message'
])
}
})
}
}
else
{
common
.
errorDialog
(
2
,
'手机号校验错误'
)
}
...
...
@@ -179,12 +183,12 @@
inviterInvitationCode
:
this
.
invitation_code
,
...
this
.
form
}
console
.
log
(
params
)
api
.
register
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
userId
=
String
(
res
[
'data'
][
'userId'
]);
uni
.
setStorageSync
(
'isLogin'
,
'1'
)
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
uni
.
switchTab
({
url
:
'/pages/index/index'
})
...
...
environments/environment.ts
View file @
300b5e3a
...
...
@@ -19,7 +19,7 @@ const config = {
stage
,
prod
}
let
env
=
'
dev
'
;
let
env
=
'
prod
'
;
// if (process.env.NODE_ENV === 'development') {
// env = 'dev';
// }else if (process.env.NODE_ENV === 'production') {
...
...
manifest.json
View file @
300b5e3a
...
...
@@ -26,7 +26,8 @@
"Share"
:
{},
"Payment"
:
{},
"VideoPlayer"
:
{},
"OAuth"
:
{}
"OAuth"
:
{},
"Camera"
:
{}
},
/*
应用发布信息
*/
"distribute"
:
{
...
...
pages/index/index.vue
View file @
300b5e3a
...
...
@@ -174,12 +174,12 @@
if
(
uni
.
getStorageSync
(
'isLogin'
))
{
this
.
queryAreaCenterInfo
();
this
.
announcementQuery
();
this
.
courseList
()
}
else
{
uni
.
navigateTo
({
url
:
'/components/login/login'
})
}
this
.
courseList
()
},
onShow
()
{
let
loginType
=
uni
.
getStorageSync
(
'loginType'
)
...
...
@@ -229,6 +229,7 @@
duration
:
2000
,
icon
:
'none'
});
uni
.
clearStorageSync
();
uni
.
redirectTo
({
url
:
'/components/login/login'
})
...
...
pages/personalCenter/system/settings.vue
View file @
300b5e3a
...
...
@@ -65,7 +65,6 @@ import MenuList from "@/components/menuList/menuList.vue"
showCancel
:
true
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
getCurrentPages
().
length
)
uni
.
redirectTo
({
url
:
'/components/login/login'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment