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
af4a7549
Commit
af4a7549
authored
Sep 19, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认订单skuId 格式
parent
50105f3d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
20 deletions
+1
-20
cart.js
src/pages/cart/cart.js
+1
-11
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+0
-9
No files found.
src/pages/cart/cart.js
View file @
af4a7549
...
...
@@ -229,7 +229,7 @@ wxService.page({
skuId
:
0
}
trolleySku2BuyObj
.
count
=
item
.
count
-
0
trolleySku2BuyObj
.
skuId
=
item
.
skuId
-
0
trolleySku2BuyObj
.
skuId
=
item
.
skuId
// skuIds.push(item.skuId)
trolleySku2Buy
.
push
(
trolleySku2BuyObj
)
})
...
...
@@ -243,10 +243,6 @@ wxService.page({
}
// 去下单页 && 参数
// let parmas = {
// trolleySku2Buy: JSON.stringify(trolleySku2Buy)
// }
let
tradeDto
=
{
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
}
...
...
@@ -256,12 +252,6 @@ wxService.page({
.
router
(
'/pages/confirmOrder/confirmOrder'
)
.
search
(
parmas
)
// let tradeDto = {
// couponId: '',
// trolleySku2Buy:JSON.stringify(trolleySku2Buy)
// }
// const parmas = tradeDto
// wxService
// .router('/pages/confirmOrder/confirmOrder')
// .search(parmas)
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
af4a7549
...
...
@@ -30,22 +30,15 @@ wxService.page({
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
console
.
log
(
'-----------'
,
options
)
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
// const { couponId, trolleySku2Buy } = this.options
// let tradeDto = {
// couponId: couponId,
// trolleySku2Buy: JSON.parse(trolleySku2Buy)
// }
let
pages
=
getCurrentPages
();
let
currPage
=
pages
[
pages
.
length
-
1
];
console
.
log
(
'-----------'
,
pages
)
const
{
trolleySku2Buy
}
=
this
.
options
...
...
@@ -53,8 +46,6 @@ wxService.page({
trolleySku2Buy
:
JSON
.
parse
(
trolleySku2Buy
)
}
console
.
log
(
'tradeDto'
,
tradeDto
)
// 下单 && 计算优惠价
this
.
setData
({
trolleySku2Buy
:
tradeDto
.
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