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
331fb87f
Commit
331fb87f
authored
Aug 21, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 订单详情_数据
parent
d51177cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
45 deletions
+5
-45
orderDetail.js
src/pages/orderDetail/orderDetail.js
+4
-44
orderDetail.wxml
src/pages/orderDetail/orderDetail.wxml
+1
-1
No files found.
src/pages/orderDetail/orderDetail.js
View file @
331fb87f
...
...
@@ -10,46 +10,7 @@ wxService.page({
* 页面的初始数据
*/
data
:
{
// detail: null,
detail
:
{
"id"
:
"613402110104571904"
,
"memberId"
:
"598887367880871936"
,
"status"
:
"N"
,
"skuVOList"
:
[
{
"productId"
:
"1556108606443006"
,
"productCode"
:
"test001"
,
"productName"
:
"test001"
,
"skuId"
:
"1556108807316001"
,
"skuCode"
:
"test001-4"
,
"skuSpec"
:
"颜色:白,尺寸:xl"
,
"count"
:
3919
,
"price"
:
0.03
,
"discount"
:
0
,
"mainImgUrl"
:
"http://testimg3.bigaka.com/group3/M00/00/17/Cv6CBF1Z9TKAU6T1AAAG8CvHO2o415.png"
,
"amount"
:
117.57
},
{
"productId"
:
"1556108606443006"
,
"productCode"
:
"test001"
,
"productName"
:
"test001"
,
"skuId"
:
"1556108807316000"
,
"skuCode"
:
"test001-3"
,
"skuSpec"
:
"颜色:红,尺寸:xl"
,
"count"
:
420
,
"price"
:
0.02
,
"discount"
:
0
,
"mainImgUrl"
:
"http://testimg3.bigaka.com/group3/M00/00/17/Cv6CBF1Z9TKAU6T1AAAG8CvHO2o415.png"
,
"amount"
:
8.4
}
],
"createTime"
:
"2019-08-20 16:00:59"
,
"discount"
:
0
,
"freightMoney"
:
0
,
"payAmount"
:
125.97
,
"skuCount"
:
4339
}
detail
:
null
},
/**
...
...
@@ -66,11 +27,10 @@ wxService.page({
let
detailOrderList
=
wx
.
getStorageSync
(
'orderList'
)
let
currentDetail
=
detailOrderList
.
filter
(
item
=>
item
.
id
==
id
)
console
.
log
(
"currentDetail"
,
currentDetail
)
// if (!Object.keys(this.options).length){ return }
//
this.setData({
// detail: this.options
//
})
this
.
setData
({
detail
:
currentDetail
[
0
]
})
},
copy
(
e
)
{
wx
.
setClipboardData
({
...
...
src/pages/orderDetail/orderDetail.wxml
View file @
331fb87f
...
...
@@ -46,7 +46,7 @@
</view>
<view class="pro-wrap">
<block
wx:for="{{detail.skuVOList}}" wx:key="{{item}}
">
<block
wx:for="{{detail.skuVOList}}" wx:for-item="item" wx:key="
">
<view class="pro-list">
<image class="pro-img" src="{{item.mainImgUrl}}"></image>
<view class="pro-info">
...
...
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