Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
f6cb1beb
Commit
f6cb1beb
authored
Aug 23, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 购物车支付
parent
b2ec9124
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
cart.js
src/pages/cart/cart.js
+10
-10
No files found.
src/pages/cart/cart.js
View file @
f6cb1beb
...
@@ -214,7 +214,7 @@ wxService.page({
...
@@ -214,7 +214,7 @@ wxService.page({
cartListData
.
filter
(
item
=>
{
// 选中的商品信息
cartListData
.
filter
(
item
=>
{
// 选中的商品信息
return
item
.
checked
return
item
.
checked
}).
map
(
item
=>
{
}).
map
(
item
=>
{
skuIds
.
push
(
item
.
skuId
)
skuIds
.
push
(
item
.
skuId
-
0
)
})
})
if
(
skuIds
.
length
==
0
)
{
if
(
skuIds
.
length
==
0
)
{
wx
.
showToast
({
wx
.
showToast
({
...
@@ -223,15 +223,15 @@ wxService.page({
...
@@ -223,15 +223,15 @@ wxService.page({
})
})
return
false
return
false
}
}
// 去下单页
// 去下单页
&& 参数
let
parmas
=
{
//
let parmas = {
specId
:
skuIds
.
join
(
','
)
//
specId: skuIds.join(',')
}
//
}
// wxService
wxService
// .router('/pages/confirmOrder/confirmOrder')
.
router
(
'/pages/confirmOrder/confirmOrder'
)
// .search(parmas
)
.
search
(
parmas
)
// 直接调支付
//
this.handleGoBuy(skuIds)
this
.
handleGoBuy
(
skuIds
)
},
},
handleGoBuy
(
parmas
)
{
handleGoBuy
(
parmas
)
{
// 下单
// 下单
...
...
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