diff --git a/pages/index/index/index.js b/pages/index/index/index.js index 2fd38d6..adc09aa 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -243,12 +243,12 @@ Page({ var th = this; //----广告---- var e = this; - await getApp().request.promiseGet("/api/weshop/ad/list?pid=2&store_id=" + o.stoid, { + await getApp().request.promiseGet("/api/weshop/ad/page?pid=2&store_id=" + o.stoid, { data: { enabled: 1 } }).then(res => { - var a = res.data.data; + var a = res.data.data.pageData; var arr = new Array(); for (var i = 0; i < a.length; i++) { var tt = {