|
|
|
@ -104,8 +104,37 @@ Page({ |
|
|
|
}, |
|
|
|
|
|
|
|
onLoad: function(options) { |
|
|
|
//正常登录流程进入值为0,分享页面直接进入值为1
|
|
|
|
if (app.globalData.shareInState == 1) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (app.globalData.shareInParameter.id) { |
|
|
|
var detailItemID = parseInt(app.globalData.shareInParameter.id); |
|
|
|
wx.showModal({ |
|
|
|
title: '看下ID值', |
|
|
|
content: '+++' + detailItemID + '+++', |
|
|
|
}) |
|
|
|
// detailItemType = app.globalData.shareInParameter.detailItemType;
|
|
|
|
} else { |
|
|
|
var detailItemID = parseInt(options.ID); |
|
|
|
// detailItemType = options.detailItemType;
|
|
|
|
// var detailItemState = options.detailItemState;
|
|
|
|
// if (detailItemState == "true") {
|
|
|
|
// that.setData({
|
|
|
|
// showBottomView: true,
|
|
|
|
// });
|
|
|
|
// } else {
|
|
|
|
// that.setData({
|
|
|
|
// showBottomView: false,
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
var that = this; |
|
|
|
network.transfer_request(load, [Number(options.ID)], function(res) { |
|
|
|
// Number(options.ID)
|
|
|
|
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({ |
|
|
|
|