From 12839eee8d3cd52d72aa47fbe76e5edc2628476d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 8 Jul 2022 11:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=A7=92=E6=9D=80=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E5=8F=AF=E8=83=BD=E5=9C=A8=E9=A6=96=E9=A1=B5=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/Index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buyer/src/pages/Index.vue b/buyer/src/pages/Index.vue index 7c1244c4..59241c85 100644 --- a/buyer/src/pages/Index.vue +++ b/buyer/src/pages/Index.vue @@ -52,7 +52,7 @@ export default { methods: { getIndexData () { // 获取首页装修数据 - indexData({ clientType: 'PC' }).then((res) => { + indexData({ clientType: 'PC' }).then(async (res) => { if (res.success) { let dataJson = JSON.parse(res.result.pageData); // 秒杀活动不是装修的数据,需要调用接口判断是否有秒杀商品 @@ -65,7 +65,7 @@ export default { this.carouselLarge = true this.carouselOpacity = true } else if (type === 'seckill') { - let seckill = this.getListByDay() + let seckill = await this.getListByDay() dataJson.list[i].options.list = seckill } }