From 5dd6fb46be1d694e99638e53727d3799cc7d885f Mon Sep 17 00:00:00 2001 From: Areo-Joe <1047726015@qq.com> Date: Wed, 25 Sep 2024 13:58:54 +0800 Subject: [PATCH] fix(tcb-shop): fix home page method order --- miniprogram/tcb-shop/pages/home/home.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/miniprogram/tcb-shop/pages/home/home.js b/miniprogram/tcb-shop/pages/home/home.js index 4a22118..ac463d0 100644 --- a/miniprogram/tcb-shop/pages/home/home.js +++ b/miniprogram/tcb-shop/pages/home/home.js @@ -20,6 +20,16 @@ Page({ cloudCheckerShow: false }, + async onCloudCheck() { + try { + await getHomeSwiper(); + this.setData({ cloudCheckerShow: false }) + } catch (e) { + console.log(e); + this.setData({ cloudCheckerShow: true }) + } + }, + goodListPagination: { index: 1, num: 20, @@ -128,15 +138,5 @@ Page({ wx.navigateTo({ url: `/pages/promotion-detail/index?promotion_id=${promotionID}`, }); - }, - - async onCloudCheck() { - try { - await getHomeSwiper(); - this.setData({ cloudCheckerShow: false }) - } catch (e) { - console.log(e); - this.setData({ cloudCheckerShow: true }) - } - }, + } });