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
625f24f1
Commit
625f24f1
authored
Sep 11, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order
parent
99c3f92e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
cart.js
src/pages/cart/cart.js
+13
-1
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+8
-2
No files found.
src/pages/cart/cart.js
View file @
625f24f1
...
@@ -240,8 +240,8 @@ wxService.page({
...
@@ -240,8 +240,8 @@ wxService.page({
// let parmas = {
// let parmas = {
// trolleySku2Buy: JSON.stringify(trolleySku2Buy)
// trolleySku2Buy: JSON.stringify(trolleySku2Buy)
// }
// }
let
tradeDto
=
{
let
tradeDto
=
{
couponId
:
''
,
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
}
}
const
parmas
=
tradeDto
const
parmas
=
tradeDto
...
@@ -249,6 +249,18 @@ wxService.page({
...
@@ -249,6 +249,18 @@ wxService.page({
wxService
wxService
.
router
(
'/pages/confirmOrder/confirmOrder'
)
.
router
(
'/pages/confirmOrder/confirmOrder'
)
.
search
(
parmas
)
.
search
(
parmas
)
// let tradeDto = {
// couponId: '',
// trolleySku2Buy:JSON.stringify(trolleySku2Buy)
// }
// const parmas = tradeDto
// wxService
// .router('/pages/confirmOrder/confirmOrder')
// .search(parmas)
// 直接调支付
// 直接调支付
// this.handleGoBuy(skuIds)
// this.handleGoBuy(skuIds)
},
},
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
625f24f1
...
@@ -30,10 +30,16 @@ wxService.page({
...
@@ -30,10 +30,16 @@ wxService.page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
const
{
couponId
,
trolleySku2Buy
}
=
this
.
options
// const { couponId, trolleySku2Buy } = this.options
// let tradeDto = {
// couponId: couponId,
// trolleySku2Buy: JSON.parse(trolleySku2Buy)
// }
const
{
trolleySku2Buy
}
=
this
.
options
let
tradeDto
=
{
let
tradeDto
=
{
couponId
:
couponId
,
trolleySku2Buy
:
JSON
.
parse
(
trolleySku2Buy
)
trolleySku2Buy
:
JSON
.
parse
(
trolleySku2Buy
)
}
}
...
...
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