From 14c74803bf7a934d207e43c10ef9d70e9f4744d7 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Wed, 23 Oct 2024 01:48:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/cart/cart.vue | 61 +++++++++++++++------------------------- 1 file changed, 23 insertions(+), 38 deletions(-) diff --git a/components/cart/cart.vue b/components/cart/cart.vue index ff2bde64..430e76cd 100644 --- a/components/cart/cart.vue +++ b/components/cart/cart.vue @@ -26,7 +26,7 @@ - {{ plugins_realstore_info.buy_use_type_list[plugins_realstore_buy_use_type_index]['name'] }} + {{ plugins_realstore_info.buy_use_type_list[plugins_realstore_buy_use_type_index]['name'] }} @@ -34,7 +34,7 @@ - + @@ -46,10 +46,10 @@ - + - + @@ -402,12 +402,7 @@ discount_detail_goods_list_status: false, // 预下单计算开关 is_cart_show_discount: 0, - window_bottom: '0rpx', - window_top: '40px', - // #ifdef H5 - window_bottom: '100rpx', - window_top: '100rpx', - // #endif + scroll_style: '', // 底部购买导航样式 bottom_fixed_style: '' }; @@ -625,7 +620,10 @@ // 分享菜单处理、延时执行,确保基础数据已加载完成 setTimeout(function () { app.globalData.page_share_handle(); - }, 3000); + }, 3000); + + // 页面样式处理 + this.page_style_handle(); }, fail: () => { this.setData({ @@ -633,8 +631,10 @@ data_is_loading: 0, data_list_loding_status: 2, data_list_loding_msg: this.$t('common.internet_error_tips'), - }); - app.globalData.showToast(this.$t('common.internet_error_tips')); + }); + + // 页面样式处理 + this.page_style_handle(); }, }); }, @@ -1207,7 +1207,9 @@ cart_type_value: e.currentTarget.dataset.type || 'shop', }); // 重新加载数据 - this.get_data(); + this.get_data(); + // 页面样式处理 + this.page_style_handle(); } }, @@ -1306,10 +1308,11 @@ value += ((this.propCartNavBottomValue-8)*2)+20; } this.setData({ - bottom_fixed_style: 'bottom:'+value+'rpx' + bottom_fixed_style: 'bottom:'+value+'rpx', + scroll_style: 'height: calc(100vh - ' + (value+(this.cart_type_value == 'realstore' ? 220 : 80)-(this.is_first == 1 ? 100 : 0))+'rpx)', }); } - }, + } };