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
2801a043
Commit
2801a043
authored
Dec 08, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭沉浸式&登录页userId报错
parent
677c2191
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
62 deletions
+11
-62
App.vue
+0
-0
components/login/login.vue
+2
-12
manifest.json
+3
-0
package-lock.json
+2
-48
pages/index/index.vue
+4
-2
No files found.
App.vue
View file @
2801a043
This diff is collapsed.
Click to expand it.
components/login/login.vue
View file @
2801a043
...
...
@@ -98,17 +98,6 @@
}
},
methods
:
{
checkToken
(){
api
.
checkToken
().
then
(
res
=>
{
if
(
res
[
'success'
]){}
else
{
api
.
obtainToken
().
then
(
res
=>
{
if
(
res
.
success
){
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
}
})
}
})
},
getLoginType
(){
this
.
loginType
===
'codelogin'
?
this
.
loginType
=
'pwlogin'
:
this
.
loginType
=
'codelogin'
;
this
.
loginTypeName
=
this
.
loginType
==
'codelogin'
?
'验证码登录'
:
'密码登录'
;
...
...
@@ -316,6 +305,7 @@
api
.
checkToken
().
then
(
res
=>
{
if
(
res
[
'success'
]){}
else
{
api
.
obtainToken
().
then
(
res
=>
{
console
.
log
(
res
,
222222
)
if
(
res
.
success
){
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
}
...
...
@@ -325,7 +315,7 @@
},
},
mounted
()
{
onShow
()
{
this
.
checkToken
();
},
destroyed
()
{
...
...
manifest.json
View file @
2801a043
...
...
@@ -6,6 +6,9 @@
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"statusbar"
:
{
"immersed"
:
false
},
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
...
...
package-lock.json
View file @
2801a043
{
"name"
:
"日期区间picker"
,
"version"
:
"1.0.7"
,
"lockfileVersion"
:
2
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"name"
:
"日期区间picker"
,
"version"
:
"1.0.7"
,
"dependencies"
:
{
"nanoid"
:
"^4.0.0"
,
"vue-signature-pad"
:
"^3.0.2"
}
},
"node_modules/merge-images"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/merge-images/-/merge-images-1.2.0.tgz"
,
"integrity"
:
"sha512-hEGvgnTdXr08uzGvEArxRsKpy7WmozM73YaSi4s5IYF4LxrhANpqfHaz9CgBZ5+0+s2NsjPnPdStz3aCc0Yulw=="
},
"node_modules/nanoid"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz"
,
"integrity"
:
"sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg=="
,
"bin"
:
{
"nanoid"
:
"bin/nanoid.js"
},
"engines"
:
{
"node"
:
"^14 || ^16 || >=18"
}
},
"node_modules/signature_pad"
:
{
"version"
:
"3.0.0-beta.4"
,
"resolved"
:
"https://registry.npmmirror.com/signature_pad/-/signature_pad-3.0.0-beta.4.tgz"
,
"integrity"
:
"sha512-cOf2NhVuTiuNqe2X/ycEmizvCDXk0DoemhsEpnkcGnA4kS5iJYTCqZ9As7tFBbsch45Q1EdX61833+6sjJ8rrw=="
},
"node_modules/vue-signature-pad"
:
{
"version"
:
"3.0.2"
,
"resolved"
:
"https://registry.npmmirror.com/vue-signature-pad/-/vue-signature-pad-3.0.2.tgz"
,
"integrity"
:
"sha512-o25o+lROfCmzASS2+fU8ZV801kV+D4/02zkZ+ez3NKeiUmbxW7kwlUf5oKQkvA+l7Ou9xGsGLsirBLch3jyX8A=="
,
"dependencies"
:
{
"merge-images"
:
"^1.1.0"
,
"signature_pad"
:
"^3.0.0-beta.3"
},
"engines"
:
{
"node"
:
">=12"
},
"peerDependencies"
:
{
"vue"
:
"^3.2.0"
}
}
},
"dependencies"
:
{
"merge-images"
:
{
"version"
:
"1.2.0"
,
...
...
@@ -57,7 +11,7 @@
},
"nanoid"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npm
js.org
/nanoid/-/nanoid-4.0.0.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/nanoid/-/nanoid-4.0.0.tgz"
,
"integrity"
:
"sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg=="
},
"signature_pad"
:
{
...
...
pages/index/index.vue
View file @
2801a043
...
...
@@ -103,8 +103,7 @@
search
},
onLoad
(
options
)
{
this
.
queryAreaCenterInfo
();
this
.
announcementQuery
();
},
methods
:
{
tokefu
(){
...
...
@@ -179,6 +178,9 @@
uni
.
navigateTo
({
url
:
'/components/login/login'
})
}
else
{
this
.
queryAreaCenterInfo
();
this
.
announcementQuery
();
}
}
...
...
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