|
|
@ -394,13 +394,26 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onLoad: function (options) { |
|
|
onLoad: function (options) { |
|
|
var that = this; |
|
|
|
|
|
let ID = Number(options.ID); |
|
|
|
|
|
|
|
|
//正常登录流程进入值为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); |
|
|
|
|
|
} |
|
|
|
|
|
var that = this; |
|
|
var method ='/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/MarketingActivityRpc/Load'; |
|
|
var method ='/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/MarketingActivityRpc/Load'; |
|
|
let params = [ID]; |
|
|
|
|
|
|
|
|
let params = [detailItemID]; |
|
|
network.transfer_request(method, params, function (res) { |
|
|
network.transfer_request(method, params, function (res) { |
|
|
console.log(res.result); |
|
|
|
|
|
|
|
|
app.globalData.shareInParameter = {}; |
|
|
// 获取数据加载页面
|
|
|
// 获取数据加载页面
|
|
|
let goodsDetailsArray = []; |
|
|
let goodsDetailsArray = []; |
|
|
var goodsNameArray = res.result.GoodsDetails; |
|
|
var goodsNameArray = res.result.GoodsDetails; |
|
|
|