diff --git a/pages/giftpack/festival/festival.js b/pages/giftpack/festival/festival.js index 0e8767b..98e0e51 100644 --- a/pages/giftpack/festival/festival.js +++ b/pages/giftpack/festival/festival.js @@ -175,21 +175,20 @@ Page({ } }, function (res) { - } - ) - } }, //获取节日有礼信息 is_festival: function(e) { var th = this; var url = "/api/weshop/marketing/holiday/act/judge"; + console.log(th.data.getActId); getApp().request.promiseGet(url, { data: { storeId: a.stoid, //商家ID - userId: d.user_id //用户ID + userId: d.user_id, //用户ID + id:th.data.getActId } }).then(res => { if (res.data.code == 0) { @@ -197,7 +196,6 @@ Page({ bimg: res.data.data.actImg, actFontColor: res.data.data.actFontColor, //字体颜色 actBgColor: res.data.data.actBgColor, //背景颜色 - }) } }) diff --git a/pages/giftpack/festival/festival.wxml b/pages/giftpack/festival/festival.wxml index a53246d..cd6ca6c 100644 --- a/pages/giftpack/festival/festival.wxml +++ b/pages/giftpack/festival/festival.wxml @@ -1,6 +1,6 @@ - +