Commit 7db73f90 by 高淑倩

modify: 订单详情接口

parent 196898cd
...@@ -22,7 +22,7 @@ wxService.page({ ...@@ -22,7 +22,7 @@ wxService.page({
{ count: 1, name: '牛奶', price: 112 }, { count: 1, name: '牛奶', price: 112 },
{ count: 2, name: '榛果', price: 5222 }, { count: 2, name: '榛果', price: 5222 },
{ count: 2, name: '薯片', price: 124 }, { count: 2, name: '薯片', price: 124 },
] ],
}, },
...@@ -36,13 +36,16 @@ wxService.page({ ...@@ -36,13 +36,16 @@ wxService.page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow () {
const options = this.options const { orderNo } = this.options
console.log('options',options.memberid) console.log('orderNo',orderNo)
if(orderNo){
this.initOrderDetail(orderNo)
}
}, },
initOrderDetail(){ initOrderDetail(orderNo){
wxService.post(`/order/findById?id=${id}`).then(res => { wxService.post(`/sale/order/findByOrderNo?orderNo=${orderNo}`).then(res => {
this.setData({ this.setData({
orderDetail:res.data.ddat.content orderDetail:res.data.ddat.content
}) })
......
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