From 49956f5f879dc7d649ec25be30d6fbdbccd46ecd Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Thu, 3 Sep 2020 16:41:23 +0800 Subject: [PATCH] 首页广告的显示排序 --- pages/index/index/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = { -- libgit2 0.21.4