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
ab14daea
Commit
ab14daea
authored
May 07, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品详情登录
parent
2b98f819
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
index.vue
pages/binding/index.vue
+5
-0
personal.vue
pages/personal.vue
+8
-1
detail.vue
pagesC/pages/shop/detail.vue
+7
-0
No files found.
pages/binding/index.vue
View file @
ab14daea
...
...
@@ -182,6 +182,8 @@ export default {
this
.
superiorParam
=
"0"
}
jumpUrl
+=
"?index="
+
this
.
superiorParam
}
else
{
jumpUrl
+=
"?id="
+
this
.
superiorParam
}
//跳转到绑定页面
uni
.
reLaunch
({
//信息更新成功后跳转到小程序首页
...
...
@@ -222,6 +224,9 @@ export default {
if
(
e
.
index
){
this
.
superiorParam
=
e
.
index
}
if
(
e
.
id
){
this
.
superiorParam
=
e
.
id
}
}
// #ifdef MP-WEIXIN
...
...
pages/personal.vue
View file @
ab14daea
...
...
@@ -145,7 +145,7 @@ export default {
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&
param
=4'
url
:
'/pages/binding/index?url=/pages/main&
index
=4'
})
return
;
}
...
...
@@ -159,6 +159,13 @@ export default {
},
editInfo
()
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=4'
})
return
;
}
uni
.
navigateTo
({
url
:
'/pagesD/pages/personal/userInfo'
});
...
...
pagesC/pages/shop/detail.vue
View file @
ab14daea
...
...
@@ -43,6 +43,13 @@ export default {
},
methods
:
{
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
({
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