Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jd-vx-app
Commits
fa17e386
Commit
fa17e386
authored
Feb 16, 2023
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复登录后未跳转的问题
parent
eda800c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
index.vue
pagesA/pages/popAct/index.vue
+28
-28
No files found.
pagesA/pages/popAct/index.vue
View file @
fa17e386
...
@@ -150,19 +150,15 @@ export default {
...
@@ -150,19 +150,15 @@ export default {
url
:
'/pages/main'
url
:
'/pages/main'
})
})
},
},
checkLogin
()
{
goToLogin
()
{
let
token
=
uni
.
getStorageSync
(
'userToken'
)
uni
.
setStorageSync
(
'routerLogin'
,
'/pagesA/pages/popAct/index'
)
if
(
!
token
)
{
uni
.
setStorageSync
(
'routerLoginPageType'
,
'switchTab'
)
uni
.
setStorageSync
(
'routerLoginPageType'
,
'switchTab'
)
//跳转到登录页
//跳转到登录页
let
returnPage
=
'/pages/main'
;
let
returnPage
=
'/pages/main'
;
let
pageType
=
"reLaunch"
let
pageType
=
"reLaunch"
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/login/index/index?returnPage="
+
returnPage
+
'&pageType='
+
pageType
url
:
"/pages/login/index/index?returnPage="
+
returnPage
+
'&pageType='
+
pageType
})
})
return
null
}
return
1
},
},
// 选择爱车
// 选择爱车
radioChange
(
item
){
radioChange
(
item
){
...
@@ -173,18 +169,21 @@ export default {
...
@@ -173,18 +169,21 @@ export default {
},
},
// 获取爱车列表
// 获取爱车列表
getCarList
(){
getCarList
(){
let
v
=
this
.
checkLogin
()
let
token
=
uni
.
getStorageSync
(
'userToken'
)
if
(
v
)
{
if
(
!
token
)
{
this
.
$http
.
request
({
this
.
goToLogin
()
url
:
'/app/vehicleAdmin/list'
,
return
method
:
'get'
,
data
:{},
isFactory
:
false
,
}).
then
(
res
=>
{
this
.
carList
=
res
.
data
||
[]
this
.
selectCar
=
true
})
}
}
this
.
$http
.
request
({
url
:
'/app/vehicleAdmin/list'
,
method
:
'get'
,
data
:{},
isFactory
:
false
,
}).
then
(
res
=>
{
this
.
carList
=
res
.
data
||
[]
this
.
selectCar
=
true
})
},
},
// 添加车辆
// 添加车辆
addCar
()
{
addCar
()
{
...
@@ -235,10 +234,11 @@ export default {
...
@@ -235,10 +234,11 @@ export default {
//活动检查信息
//活动检查信息
submitAct
()
{
submitAct
()
{
let
that
=
this
let
that
=
this
let
v
=
that
.
checkLogin
()
let
token
=
uni
.
getStorageSync
(
'userToken'
)
if
(
!
v
)
{
if
(
!
token
)
{
return
that
.
goToLogin
()
}
return
}
that
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
that
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
let
opts
=
{
let
opts
=
{
url
:
'/app/pop/act'
,
url
:
'/app/pop/act'
,
...
...
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