|
|
|
@ -104,8 +104,21 @@ Page({ |
|
|
|
}, |
|
|
|
|
|
|
|
onLoad: function(options) { |
|
|
|
//正常登录流程进入值为0,分享页面直接进入值为1
|
|
|
|
if (app.globalData.shareInState == 1) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (app.globalData.shareInParameter.id) { |
|
|
|
var detailItemID = parseInt(app.globalData.shareInParameter.id); |
|
|
|
// detailItemType = app.globalData.shareInParameter.detailItemType;
|
|
|
|
} else { |
|
|
|
var detailItemID = parseInt(options.ID); |
|
|
|
} |
|
|
|
|
|
|
|
var that = this; |
|
|
|
network.transfer_request(load, [Number(options.ID)], function(res) { |
|
|
|
network.transfer_request(load, [detailItemID], function(res) { |
|
|
|
app.globalData.shareInParameter = {}; |
|
|
|
res.result.LoadTime = timechage.formatTimeTwo(res.result.LoadTime.substring(6, 19), 'Y-M-D h:m'); |
|
|
|
console.log(res.result); |
|
|
|
that.setData({ |
|
|
|
|