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
2dd703a8
Commit
2dd703a8
authored
May 07, 2022
by
肖健
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_cd' into dev_cd
parents
3a27bcf0
ab14daea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
index.vue
pages/binding/index.vue
+5
-1
main.vue
pages/main.vue
+3
-3
personal.vue
pages/personal.vue
+7
-0
detail.vue
pagesC/pages/shop/detail.vue
+7
-0
No files found.
pages/binding/index.vue
View file @
2dd703a8
...
@@ -182,6 +182,8 @@ export default {
...
@@ -182,6 +182,8 @@ export default {
this
.
superiorParam
=
"0"
this
.
superiorParam
=
"0"
}
}
jumpUrl
+=
"?index="
+
this
.
superiorParam
jumpUrl
+=
"?index="
+
this
.
superiorParam
}
else
{
jumpUrl
+=
"?id="
+
this
.
superiorParam
}
}
//跳转到绑定页面
//跳转到绑定页面
uni
.
reLaunch
({
//信息更新成功后跳转到小程序首页
uni
.
reLaunch
({
//信息更新成功后跳转到小程序首页
...
@@ -220,9 +222,11 @@ export default {
...
@@ -220,9 +222,11 @@ export default {
if
(
e
&&
e
.
url
){
if
(
e
&&
e
.
url
){
this
.
superiorUrl
=
e
.
url
this
.
superiorUrl
=
e
.
url
if
(
e
.
index
){
if
(
e
.
index
){
console
.
log
(
e
.
index
)
this
.
superiorParam
=
e
.
index
this
.
superiorParam
=
e
.
index
}
}
if
(
e
.
id
){
this
.
superiorParam
=
e
.
id
}
}
}
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
...
...
pages/main.vue
View file @
2dd703a8
...
@@ -122,11 +122,11 @@ export default {
...
@@ -122,11 +122,11 @@ export default {
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
if
(
option
&&
option
.
index
){
if
(
option
&&
option
.
index
){
console
.
log
(
option
.
index
)
console
.
log
(
"---------------------------"
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
let
i
=
parseInt
(
option
.
index
);
let
i
=
parseInt
(
option
.
index
);
if
(
!
i
){
i
=
0
;
}
this
.
tabChange
(
i
)
this
.
tabChange
(
i
)
this
.
$refs
.
myTab
.
current
=
i
;
this
.
$refs
.
myTab
.
current
=
i
;
});
});
...
...
pages/personal.vue
View file @
2dd703a8
...
@@ -160,6 +160,13 @@ export default {
...
@@ -160,6 +160,13 @@ export default {
},
},
editInfo
()
{
editInfo
()
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=4'
})
return
;
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pagesD/pages/personal/userInfo'
url
:
'/pagesD/pages/personal/userInfo'
});
});
...
...
pagesC/pages/shop/detail.vue
View file @
2dd703a8
...
@@ -43,6 +43,13 @@ export default {
...
@@ -43,6 +43,13 @@ export default {
},
},
methods
:
{
methods
:
{
pay
(){
pay
(){
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pagesC/pages/shop/detail&id='
+
this
.
id
})
return
;
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pagesC/pages/shop/pay?id='
+
this
.
id
url
:
'/pagesC/pages/shop/pay?id='
+
this
.
id
})
})
...
...
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