Commit 7db73f90 by 高淑倩

modify: 订单详情接口

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