Skip to content

Commit

Permalink
fix(tcb-shop): fix home page method order
Browse files Browse the repository at this point in the history
  • Loading branch information
Areo-Joe committed Sep 25, 2024
1 parent d10fed9 commit 5dd6fb4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions miniprogram/tcb-shop/pages/home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 })
}
},
}
});

0 comments on commit 5dd6fb4

Please sign in to comment.