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 | 175 | } |
176 | 176 | }, |
177 | 177 | function (res) { |
178 | - | |
179 | 178 | } |
180 | - | |
181 | 179 | ) |
182 | - | |
183 | 180 | } |
184 | 181 | }, |
185 | 182 | //获取节日有礼信息 |
186 | 183 | is_festival: function(e) { |
187 | 184 | var th = this; |
188 | 185 | var url = "/api/weshop/marketing/holiday/act/judge"; |
186 | + console.log(th.data.getActId); | |
189 | 187 | getApp().request.promiseGet(url, { |
190 | 188 | data: { |
191 | 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 | 193 | }).then(res => { |
195 | 194 | if (res.data.code == 0) { |
... | ... | @@ -197,7 +196,6 @@ Page({ |
197 | 196 | bimg: res.data.data.actImg, |
198 | 197 | actFontColor: res.data.data.actFontColor, //字体颜色 |
199 | 198 | actBgColor: res.data.data.actBgColor, //背景颜色 |
200 | - | |
201 | 199 | }) |
202 | 200 | } |
203 | 201 | }) | ... | ... |
pages/giftpack/festival/festival.wxml
1 | 1 | <view style="background-color:{{actBgColor==undefined?'#FFB72D':actBgColor}}"> |
2 | 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 | 4 | </view> |
5 | 5 | <block wx:if="{{itemShow}}"> |
6 | 6 | <view class="top rel"> | ... | ... |