Commit 331fb87f by 高淑倩

modify: 订单详情_数据

parent d51177cd
...@@ -10,46 +10,7 @@ wxService.page({ ...@@ -10,46 +10,7 @@ wxService.page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
// detail: null, 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
}
}, },
/** /**
...@@ -66,11 +27,10 @@ wxService.page({ ...@@ -66,11 +27,10 @@ wxService.page({
let detailOrderList = wx.getStorageSync('orderList') let detailOrderList = wx.getStorageSync('orderList')
let currentDetail = detailOrderList.filter(item => item.id == id) let currentDetail = detailOrderList.filter(item => item.id == id)
console.log("currentDetail", currentDetail)
// if (!Object.keys(this.options).length){ return } // if (!Object.keys(this.options).length){ return }
// this.setData({ this.setData({
// detail: this.options detail: currentDetail[0]
// }) })
}, },
copy(e) { copy(e) {
wx.setClipboardData({ wx.setClipboardData({
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</view> </view>
<view class="pro-wrap"> <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"> <view class="pro-list">
<image class="pro-img" src="{{item.mainImgUrl}}"></image> <image class="pro-img" src="{{item.mainImgUrl}}"></image>
<view class="pro-info"> <view class="pro-info">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment