Commit a0ca7862 by 高淑倩

add: 订单详情

parent d92fa082
...@@ -25,9 +25,30 @@ wxService.page({ ...@@ -25,9 +25,30 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
// id=613402110104571904
const {id} = this.options
if(id){
this.initOrderDetail(id)
}
},
initOrderDetail(id) {
wx.showLoading({
title: '加载中',
mask: true
})
wxService.get(`/sale/order/findById?id=${id}&brandId=1001`).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
this.setData({
})
}
}
})
}, },
copy(e) { copy(e) {
wx.setClipboardData({ wx.setClipboardData({
//准备复制的数据 //准备复制的数据
......
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