Commit 49956f5f879dc7d649ec25be30d6fbdbccd46ecd
1 parent
c92a2a03
首页广告的显示排序
Showing
1 changed file
with
2 additions
and
2 deletions
pages/index/index/index.js
... | ... | @@ -243,12 +243,12 @@ Page({ |
243 | 243 | var th = this; |
244 | 244 | //----广告---- |
245 | 245 | var e = this; |
246 | - await getApp().request.promiseGet("/api/weshop/ad/list?pid=2&store_id=" + o.stoid, { | |
246 | + await getApp().request.promiseGet("/api/weshop/ad/page?pid=2&store_id=" + o.stoid, { | |
247 | 247 | data: { |
248 | 248 | enabled: 1 |
249 | 249 | } |
250 | 250 | }).then(res => { |
251 | - var a = res.data.data; | |
251 | + var a = res.data.data.pageData; | |
252 | 252 | var arr = new Array(); |
253 | 253 | for (var i = 0; i < a.length; i++) { |
254 | 254 | var tt = { | ... | ... |