From 81b65f9eb920e8bd1e38d7a06854c57caf699c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Wed, 6 Aug 2025 17:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=90=9C=E7=B4=A2=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shopcity/shopcity.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/shopcity/shopcity.vue b/pages/shopcity/shopcity.vue index 5e8fc702..01deb0f8 100644 --- a/pages/shopcity/shopcity.vue +++ b/pages/shopcity/shopcity.vue @@ -215,7 +215,9 @@ export default { mask: true }) request(apiArr.getRegionList, 'POST', { - short_name: keyword + short_name: keyword, + ad_level: 2, + }, { silent: false }).then((res) => { console.log('搜索结果', res); this.searchValue = keyword; @@ -263,7 +265,10 @@ export default { title: '加载中', mask: true }) - const res = await request(apiArr.getRegionList, 'POST', {}, { silent: false }); + const params = { + ad_level:2 + } + const res = await request(apiArr.getRegionList, 'POST', params, { silent: false }); // TODO: 数据量返回过于庞大,只获取所需信息,其他内容舍弃 const newRes = res.rows.map((item) => { return {