diff --git a/pages/user/assistance/giftpacklist.js b/pages/user/assistance/giftpacklist.js index e433efa..a4c09b9 100644 --- a/pages/user/assistance/giftpacklist.js +++ b/pages/user/assistance/giftpacklist.js @@ -31,38 +31,117 @@ Page({ receiveState: 0, //0未领取 1已领取 completeid: "", is_sub: 0, //判断是否重复提交 + is_libao: 0, //0轮播查看活动 1领取礼包 2.查看礼包详情 + held_id: "", //活动id + taskId: "", //任务id + orderSn: "", //订单号 }, onLoad: function(options) { var th = this; - th.setData({ - getGiftID: 100, // options.libao_id, - completeid: options.completeid, - orderSn: options.orderSn - }) if (options.is_libao == 0) { - th.GetMyGiftList(); - } else { + th.setData({ + held_id: options.help_id, //options.help_id + taskId: options.taskId, //options.libao_id + }) + th.help(); + } + if (options.is_libao == 1) { + th.setData({ + taskId: options.libao_id, + held_id: options.held_id + }) th.GetBuyGiftList(); } - // th.setData({ - // giftRemark: th.data.giftRemark.replace(/
{
+ if (res.data.code == 0) {
+ th.setData({
+ giftImage: th.data.iurl + res.data.data.lbUrl,
+ giftTitle: res.data.data.giftTitle
+ })
+ if (res.data.data.giftRemark == '') {
+ th.setData({
+ giftRemark: '暂无详情......'
+ })
+ } else {
+ th.setData({
+ giftRemark: res.data.data.giftRemark.replace(/\