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
36db1918
Commit
36db1918
authored
May 07, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录跳转
parent
702fadd0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
4 deletions
+46
-4
index.vue
pages/binding/index.vue
+20
-2
main.vue
pages/main.vue
+12
-2
moveCar.vue
pages/moveCar.vue
+7
-0
personal.vue
pages/personal.vue
+7
-0
No files found.
pages/binding/index.vue
View file @
36db1918
...
@@ -58,6 +58,10 @@ export default {
...
@@ -58,6 +58,10 @@ export default {
scene
:
""
,
scene
:
""
,
//检查绑定挪车码
//检查绑定挪车码
checkCode
:
{},
checkCode
:
{},
//上级url
superiorUrl
:
'/pages/main'
,
//上级路径参数
superiorParam
:
"index"
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -172,11 +176,18 @@ export default {
...
@@ -172,11 +176,18 @@ export default {
},
},
gotoIndex
()
{
gotoIndex
()
{
let
jumpUrl
=
this
.
superiorUrl
if
(
this
.
superiorUrl
==
'/pages/main'
){
if
(
!
this
.
superiorParam
){
this
.
superiorParam
=
"0"
}
jumpUrl
+=
"?index="
+
this
.
superiorParam
}
//跳转到绑定页面
//跳转到绑定页面
uni
.
reLaunch
({
//信息更新成功后跳转到小程序首页
uni
.
reLaunch
({
//信息更新成功后跳转到小程序首页
//todo 友众账号绑定界面暂缓
//todo 友众账号绑定界面暂缓
//url: '/pages/binding/binding'
//url: '/pages/binding/binding'
url
:
'/pages/main'
url
:
jumpUrl
})
})
// uni.navigateTo({
// uni.navigateTo({
...
@@ -206,7 +217,14 @@ export default {
...
@@ -206,7 +217,14 @@ export default {
}
else
{
}
else
{
this
.
openid
=
openid
;
this
.
openid
=
openid
;
}
}
if
(
e
&&
e
.
url
){
this
.
superiorUrl
=
e
.
url
if
(
e
.
index
){
console
.
log
(
e
.
index
)
this
.
superiorParam
=
e
.
index
}
}
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
if
(
e
.
scene
)
{
if
(
e
.
scene
)
{
...
...
pages/main.vue
View file @
36db1918
...
@@ -31,7 +31,6 @@ export default {
...
@@ -31,7 +31,6 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
tab
:
"index"
,
tab
:
"index"
,
}
}
},
},
...
@@ -121,7 +120,18 @@ export default {
...
@@ -121,7 +120,18 @@ export default {
});
});
},
},
},
},
onLoad
()
{}
onLoad
(
option
)
{
if
(
option
&&
option
.
index
){
console
.
log
(
option
.
index
)
console
.
log
(
"---------------------------"
)
this
.
$nextTick
(()
=>
{
this
.
tabChange
(
parseInt
(
option
.
index
))
this
.
$forceUpdate
()
});
}
},
}
}
</
script
>
</
script
>
...
...
pages/moveCar.vue
View file @
36db1918
...
@@ -58,6 +58,13 @@ export default {
...
@@ -58,6 +58,13 @@ export default {
},
},
methods
:
{
methods
:
{
goUrl
(
vo
)
{
goUrl
(
vo
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=1'
})
return
;
}
const
that
=
this
const
that
=
this
if
(
vo
.
title
!=
"扫一扫联系车主"
)
{
if
(
vo
.
title
!=
"扫一扫联系车主"
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
pages/personal.vue
View file @
36db1918
...
@@ -142,6 +142,13 @@ export default {
...
@@ -142,6 +142,13 @@ export default {
});
});
},
},
goUrl
(
vo
)
{
goUrl
(
vo
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main¶m=4'
})
return
;
}
if
(
vo
.
title
!=
'微信通知设置'
)
{
if
(
vo
.
title
!=
'微信通知设置'
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
vo
.
url
url
:
vo
.
url
...
...
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