Showing
1 changed file
with
5 additions
and
6 deletions
@@ -201,19 +201,18 @@ seckillObj = { | @@ -201,19 +201,18 @@ seckillObj = { | ||
201 | * [异步加载商品列表] | 201 | * [异步加载商品列表] |
202 | */ | 202 | */ |
203 | refreshProductList: function(activityId, startTime) { | 203 | refreshProductList: function(activityId, startTime) { |
204 | + var url = yoho.isApp ? | ||
205 | + '/product/seckill/get-product-list?app_version=1' : | ||
206 | + '/product/seckill/get-product-list'; | ||
207 | + | ||
204 | loading.show(); | 208 | loading.show(); |
205 | $.ajax({ | 209 | $.ajax({ |
206 | - url: '/product/seckill/get-product-list', | 210 | + url: url, |
207 | data: { | 211 | data: { |
208 | uid: yoho.isLogin(), // only app use; | 212 | uid: yoho.isLogin(), // only app use; |
209 | activityId: activityId, | 213 | activityId: activityId, |
210 | startTime: startTime | 214 | startTime: startTime |
211 | }, | 215 | }, |
212 | - beforeSend: function(jqXhr, config) { | ||
213 | - if (yoho.isApp) { | ||
214 | - config.url += '&app_version=1'; | ||
215 | - } | ||
216 | - }, | ||
217 | success: function(data) { | 216 | success: function(data) { |
218 | $('.product-list').html(data); | 217 | $('.product-list').html(data); |
219 | lazyload('img.lazy'); | 218 | lazyload('img.lazy'); |
-
Please register or login to post a comment