From 796f3e9eba729576c2ae2892c5b516d181a77c48 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 27 Apr 2025 13:03:50 +0800 Subject: [PATCH] =?UTF-8?q?sync=EF=BC=9A=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=80=91=E5=B8=83=E6=B5=81=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20https://gitee.com/sheepjs/shopro-uniapp/commit/c2cd?= =?UTF-8?q?0156f38d2dbd9f6b8712dae757e906d0ebca?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 13 +-- pages/goods/list.vue | 8 +- .../s-goods-column/s-goods-column.vue | 107 +++++++++++++++--- 3 files changed, 101 insertions(+), 27 deletions(-) diff --git a/App.vue b/App.vue index 9053c4eb..40710b3f 100644 --- a/App.vue +++ b/App.vue @@ -5,14 +5,18 @@ onLaunch(() => { // 延时隐藏原生导航栏 setTimeout(() => { - uni.hideTabBar(); + try { + uni.hideNavigationBar(); + } catch (error) { + // 忽略该 error,不一定存在 + } }, 200); // 加载Shopro底层依赖 ShoproInit(); }); - onShow((options) => { + onShow(() => { // #ifdef APP-PLUS // 获取urlSchemes参数 const args = plus.runtime.arguments; @@ -24,11 +28,6 @@ success: (res) => {}, }); // #endif - - // #ifdef MP-WEIXIN - // 确认收货回调结果 - console.log(options, 'options'); - // #endif }); diff --git a/pages/goods/list.vue b/pages/goods/list.vue index dd5754b6..d5b03dca 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -187,15 +187,15 @@ // 处理双列布局 leftGoodsList + rightGoodsList function mountMasonry(height = 0, where = 'left') { - if (!state.pagination.list[count]) { - return; - } - if (where === 'left') { leftHeight += height; } else { rightHeight += height; } + if (!state.pagination.list[count]) { + return; + } + if (leftHeight <= rightHeight) { state.leftGoodsList.push(state.pagination.list[count]); } else { diff --git a/sheep/components/s-goods-column/s-goods-column.vue b/sheep/components/s-goods-column/s-goods-column.vue index 74c57b07..6fcd9f04 100644 --- a/sheep/components/s-goods-column/s-goods-column.vue +++ b/sheep/components/s-goods-column/s-goods-column.vue @@ -40,14 +40,21 @@ :style="[{ color: goodsFields.price.color }]" > - + {{ data.point }} - {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }} + {{ + !data.pointPrice || data.pointPrice === 0 + ? '' + : `+${priceUnit}${fen2yuan(data.pointPrice)}` + }}