Commit c85fa94ad32115576fdc2faf27995af88613f798
1 parent
b89084cd
节日营销接口入参调整
Showing
2 changed files
with
4 additions
and
6 deletions
pages/giftpack/festival/festival.js
@@ -175,21 +175,20 @@ Page({ | @@ -175,21 +175,20 @@ Page({ | ||
175 | } | 175 | } |
176 | }, | 176 | }, |
177 | function (res) { | 177 | function (res) { |
178 | - | ||
179 | } | 178 | } |
180 | - | ||
181 | ) | 179 | ) |
182 | - | ||
183 | } | 180 | } |
184 | }, | 181 | }, |
185 | //获取节日有礼信息 | 182 | //获取节日有礼信息 |
186 | is_festival: function(e) { | 183 | is_festival: function(e) { |
187 | var th = this; | 184 | var th = this; |
188 | var url = "/api/weshop/marketing/holiday/act/judge"; | 185 | var url = "/api/weshop/marketing/holiday/act/judge"; |
186 | + console.log(th.data.getActId); | ||
189 | getApp().request.promiseGet(url, { | 187 | getApp().request.promiseGet(url, { |
190 | data: { | 188 | data: { |
191 | storeId: a.stoid, //商家ID | 189 | storeId: a.stoid, //商家ID |
192 | - userId: d.user_id //用户ID | 190 | + userId: d.user_id, //用户ID |
191 | + id:th.data.getActId | ||
193 | } | 192 | } |
194 | }).then(res => { | 193 | }).then(res => { |
195 | if (res.data.code == 0) { | 194 | if (res.data.code == 0) { |
@@ -197,7 +196,6 @@ Page({ | @@ -197,7 +196,6 @@ Page({ | ||
197 | bimg: res.data.data.actImg, | 196 | bimg: res.data.data.actImg, |
198 | actFontColor: res.data.data.actFontColor, //字体颜色 | 197 | actFontColor: res.data.data.actFontColor, //字体颜色 |
199 | actBgColor: res.data.data.actBgColor, //背景颜色 | 198 | actBgColor: res.data.data.actBgColor, //背景颜色 |
200 | - | ||
201 | }) | 199 | }) |
202 | } | 200 | } |
203 | }) | 201 | }) |
pages/giftpack/festival/festival.wxml
1 | <view style="background-color:{{actBgColor==undefined?'#FFB72D':actBgColor}}"> | 1 | <view style="background-color:{{actBgColor==undefined?'#FFB72D':actBgColor}}"> |
2 | <view class="image_box"> | 2 | <view class="image_box"> |
3 | - <image src="{{iurl+bimg}}" lazy-load="true"></image> | 3 | + <image src="{{iurl+bimg?bimg:'/miniapp/images/default_g_img.gif'}}" binderror="bind_bnerr1" data-errorimg="bimg" lazy-load="true"></image> |
4 | </view> | 4 | </view> |
5 | <block wx:if="{{itemShow}}"> | 5 | <block wx:if="{{itemShow}}"> |
6 | <view class="top rel"> | 6 | <view class="top rel"> |