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)}` + }}