From 51c552fb72f7f3a861826f1d6d65bee1f841705b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 19 Dec 2023 23:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20code=20review=EF=BC=9A=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E8=A3=85=E4=BF=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 65 +++++++++---------- pages/pay/recharge.vue | 2 +- pages/user/wallet/score.vue | 9 +-- sheep/api/app.js | 13 ---- .../s-coupon-block/s-coupon-block.vue | 2 +- .../s-coupon-card/s-coupon-card.vue | 15 +++-- .../s-custom-navbar/s-custom-navbar.vue | 1 + .../components/s-float-menu/s-float-menu.vue | 1 + .../components/s-goods-card/s-goods-card.vue | 1 + .../s-goods-shelves/s-goods-shelves.vue | 7 +- .../s-hotzone-block/s-hotzone-block.vue | 1 + .../s-image-banner/s-image-banner.vue | 1 + .../s-image-block/s-image-block.vue | 3 +- .../components/s-image-cube/s-image-cube.vue | 1 + .../components/s-line-block/s-line-block.vue | 1 + .../s-menu-button/s-menu-button.vue | 1 + sheep/components/s-menu-grid/s-menu-grid.vue | 1 + sheep/components/s-menu-list/s-menu-list.vue | 1 + .../components/s-order-card/s-order-card.vue | 1 + .../s-richtext-block/s-richtext-block.vue | 4 ++ .../s-title-block/s-title-block.vue | 2 +- sheep/components/s-user-card/s-user-card.vue | 4 +- .../s-video-block/s-video-block.vue | 2 +- .../s-wallet-card/s-wallet-card.vue | 1 + sheep/index.js | 3 +- sheep/platform/pay.js | 26 ++++---- sheep/ui/su-navbar/su-navbar.vue | 1 + sheep/ui/su-notice-bar/su-notice-bar.vue | 1 + sheep/ui/su-tabbar-item/su-tabbar-item.vue | 1 + sheep/ui/su-tabbar/su-tabbar.vue | 1 + 30 files changed, 86 insertions(+), 87 deletions(-) diff --git a/App.vue b/App.vue index b9ecc033..9f8b1f5c 100644 --- a/App.vue +++ b/App.vue @@ -1,46 +1,39 @@ \ No newline at end of file + @import '@/sheep/scss/index.scss'; + diff --git a/pages/pay/recharge.vue b/pages/pay/recharge.vue index 15edc233..32c27232 100644 --- a/pages/pay/recharge.vue +++ b/pages/pay/recharge.vue @@ -85,7 +85,7 @@ // #endif sheep.$router.go('/pages/pay/index', { id: data.payOrderId, - type: 'recharge' + orderType: 'recharge' }); } diff --git a/pages/user/wallet/score.vue b/pages/user/wallet/score.vue index fc75d75a..335bc81a 100644 --- a/pages/user/wallet/score.vue +++ b/pages/user/wallet/score.vue @@ -8,12 +8,11 @@ }, ]"> - + 当前积分 - {{ userInfo.point || 0 }} @@ -100,7 +99,6 @@ name: '全部', value: 'all', }, - // { // name: '收入', // value: 'income', @@ -147,6 +145,7 @@ // } } } + onLoad(async (options) => { state.today = dayjs().format('YYYY-MM-DD'); state.date = [state.today, state.today]; @@ -166,10 +165,6 @@ getLogList(); } - function appendTimeHMS(arr) { - return [arr[0] + ' 00:00:00', arr[1] + ' 23:59:59']; - } - function onLoadMore() { // if (state.loadStatus !== 'noMore') { getLogList(pagination.current_page + 1); diff --git a/sheep/api/app.js b/sheep/api/app.js index a456039a..05081248 100644 --- a/sheep/api/app.js +++ b/sheep/api/app.js @@ -13,19 +13,6 @@ export default { showLoading: false, }, }), - // 同步客户端页面到后端 - pageSync: (pages) => - request({ - url: 'pageSync', - method: 'POST', - data: { - pages, - }, - custom: { - showError: false, - showLoading: false, - }, - }), // 自定义页面 page: (id) => request({ diff --git a/sheep/components/s-coupon-block/s-coupon-block.vue b/sheep/components/s-coupon-block/s-coupon-block.vue index af29c097..22a7731f 100644 --- a/sheep/components/s-coupon-block/s-coupon-block.vue +++ b/sheep/components/s-coupon-block/s-coupon-block.vue @@ -1,4 +1,4 @@ - +