|
|
@ -16,17 +16,29 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onLoad: function(options) { |
|
|
onLoad: function(options) { |
|
|
var that =this; |
|
|
|
|
|
let orderID = Number(options.ID); |
|
|
|
|
|
if (options.State == "未确认"){ |
|
|
|
|
|
|
|
|
var that = this; |
|
|
|
|
|
|
|
|
|
|
|
//正常登录流程进入值为0,分享页面直接进入值为1
|
|
|
|
|
|
if (app.globalData.shareInState == 1) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (app.globalData.shareInParameter.id) { |
|
|
|
|
|
var detailItemID = parseInt(app.globalData.shareInParameter.id); |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
orderState:true, |
|
|
|
|
|
|
|
|
orderState: true, |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
var detailItemID = parseInt(options.ID); |
|
|
|
|
|
if (options.State == "未确认") { |
|
|
|
|
|
that.setData({ |
|
|
|
|
|
orderState: true, |
|
|
|
|
|
}); |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
let method = getDebitNoteDetail; |
|
|
let method = getDebitNoteDetail; |
|
|
let params = [orderID]; |
|
|
|
|
|
|
|
|
let params = [detailItemID]; |
|
|
network.transfer_request(method, params, function (res) { |
|
|
network.transfer_request(method, params, function (res) { |
|
|
|
|
|
app.globalData.shareInParameter = {}; |
|
|
var backDate = timechage.formatTimeTwo(res.result.Date.substring(6, 19), 'Y/M/D'); |
|
|
var backDate = timechage.formatTimeTwo(res.result.Date.substring(6, 19), 'Y/M/D'); |
|
|
if (res.result.ConfirmTime){ |
|
|
if (res.result.ConfirmTime){ |
|
|
var backConfirmTime = timechage.formatTimeTwo(res.result.ConfirmTime.substring(6, 19), 'Y/M/D'); |
|
|
var backConfirmTime = timechage.formatTimeTwo(res.result.ConfirmTime.substring(6, 19), 'Y/M/D'); |
|
|
|