|
|
|
@ -12,12 +12,16 @@ Page({ |
|
|
|
data: { |
|
|
|
safeBottom: app.globalData.safeBottom, |
|
|
|
form: null, |
|
|
|
agent: 0, |
|
|
|
title: '过磅详情' |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad: function (options) { |
|
|
|
if(options.agent){ |
|
|
|
this.data.agent = Number(options.agent) |
|
|
|
} |
|
|
|
if(options.id){ |
|
|
|
this.fetchOrderInfo(options.id) |
|
|
|
} |
|
|
|
@ -31,7 +35,7 @@ Page({ |
|
|
|
} else if(result.data.status == 5){ |
|
|
|
this.data.title = '已完成' |
|
|
|
} |
|
|
|
this.setData({ safeBottom: app.globalData.safeBottom, form: result.data, title: this.data.title }) |
|
|
|
this.setData({ safeBottom: app.globalData.safeBottom, form: result.data, title: this.data.title, agent: this.data.agent }) |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
this.setData({ safeBottom: app.globalData.safeBottom }) |
|
|
|
|