|
|
|
@ -13,6 +13,7 @@ Scene({ |
|
|
|
*/ |
|
|
|
data: { |
|
|
|
safeBottom: app.globalData.safeBottom, |
|
|
|
status: null, |
|
|
|
agent: 0, |
|
|
|
id: null, |
|
|
|
form: null, |
|
|
|
@ -29,6 +30,9 @@ Scene({ |
|
|
|
if(options.agent){ |
|
|
|
this.data.agent = Number(options.agent) |
|
|
|
} |
|
|
|
if(options.status){ |
|
|
|
this.data.status = Number(options.status) |
|
|
|
} |
|
|
|
event.on('OrderMessage', this, this.onEvent) |
|
|
|
}, |
|
|
|
onEvent: function(message){ |
|
|
|
@ -62,6 +66,9 @@ Scene({ |
|
|
|
imageList.push({url: result.data.orderImageList[index]}) |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.data.status || this.data.status == 0){ |
|
|
|
result.data.paymentOrderInfo.receivableStatus = this.data.status |
|
|
|
} |
|
|
|
if(result.data.paymentOrderInfo.receivablePrice){ |
|
|
|
if(result.data.paymentOrderInfo.paidPrice){ |
|
|
|
result.data.paymentOrderInfo.lessPrice = math.minus(result.data.paymentOrderInfo.receivablePrice, result.data.paymentOrderInfo.paidPrice) |
|
|
|
|