From c05297f2ec68a771fcd7908ef6a3958d9c8cf349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 16 Dec 2024 17:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=86=E5=8F=B2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/cart/cart.vue | 56 ++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/components/cart/cart.vue b/components/cart/cart.vue index 0b282be7..0df5029d 100644 --- a/components/cart/cart.vue +++ b/components/cart/cart.vue @@ -53,9 +53,9 @@ - + - + @@ -584,8 +584,8 @@ this.setData({ plugins_realstore_data: realstore, }); - // 门店为空、还没有初始门店信息,初始门店信息不在当前列表中则 赋值门店初始信息和门店购物车初始化 - if(app.globalData.data.is_cart_header_close_realstore != 1) { + // 门店为空、还没有初始门店信息,初始门店信息不在当前列表中则 赋值门店初始信息和门店购物车初始化 + if(app.globalData.data.is_cart_header_close_realstore != 1) { if( realstore == null || this.plugins_realstore_info == null || @@ -599,7 +599,7 @@ plugins_realstore_info: realstore == null ? null : realstore[0], }); this.realstore_cart_data_init(); - } + } } // 选择处理 @@ -622,9 +622,9 @@ // 分享菜单处理、延时执行,确保基础数据已加载完成 setTimeout(function () { app.globalData.page_share_handle(); - }, 3000); - - // 页面样式处理 + }, 3000); + + // 页面样式处理 this.page_style_handle(); }, fail: () => { @@ -633,9 +633,9 @@ data_is_loading: 0, data_list_loding_status: 2, data_list_loding_msg: this.$t('common.internet_error_tips'), - }); - - // 页面样式处理 + }); + + // 页面样式处理 this.page_style_handle(); }, }); @@ -1080,7 +1080,7 @@ }, // 猜你喜欢 - get_data_list(is_mandatory) { + get_data_list(is_mandatory) { if(app.globalData.data.is_cart_bottom_guess_you_like == 1) { // 分页是否还有数据 if ((is_mandatory || 0) == 0) { @@ -1156,7 +1156,7 @@ }); app.globalData.showToast(this.$t('common.internet_error_tips')); }, - }); + }); } }, @@ -1211,8 +1211,8 @@ cart_type_value: e.currentTarget.dataset.type || 'shop', }); // 重新加载数据 - this.get_data(); - // 页面样式处理 + this.get_data(); + // 页面样式处理 this.page_style_handle(); } }, @@ -1302,17 +1302,17 @@ }, // 页面样式处理 - page_style_handle() { - var value = 0; - if(app.globalData.data.is_use_native_tabbar == 1) { - // #ifdef H5 - value += (uni.getWindowInfo().windowBottom || 50)+40; - // #endif - } else { - value += ((this.propCartNavBottomValue-8)*2)+20; + page_style_handle() { + var value = 0; + if(app.globalData.data.is_use_native_tabbar == 1) { + // #ifdef H5 + value += (uni.getWindowInfo().windowBottom || 50)+40; + // #endif + } else { + 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)', }); } @@ -1325,9 +1325,9 @@ */ .scroll-box { height: 100vh; - } - .scroll-box .content { - padding-bottom: 60rpx; + } + .scroll-box .content { + padding-bottom: 60rpx; } .scroll-box.cart .content { padding-bottom: calc(160rpx + env(safe-area-inset-bottom)); @@ -1411,7 +1411,7 @@ .cart-nav-base { width: calc(75% - 20rpx); } - .cart-nav-submit { + .cart-nav-submit { padding-right: 16rpx; white-space: nowrap; }