From a6a4312c7329101d3bcc08d1acd04569671adc64 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Tue, 19 Mar 2024 00:27:02 +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 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/components/cart/cart.vue b/components/cart/cart.vue index e39a7627..792be5b1 100644 --- a/components/cart/cart.vue +++ b/components/cart/cart.vue @@ -47,7 +47,7 @@ - + @@ -119,8 +119,8 @@ - - + + {{item}} @@ -480,8 +480,8 @@ // 获取数据 this.get_data(); - // 猜你喜欢、仅首次读取 - if (this.is_first == 1) { + // 猜你喜欢、仅首次读取、还未加载过 + if (this.is_first == 1 && this.goods_is_loading == 0) { this.get_data_list(1); } @@ -496,7 +496,6 @@ this.setData({ user: null, data_list: [], - goods_list: [], plugins_realstore_info: null, no_cart_data_btn_text: this.$t('login.login.6yfr9g'), data_list_loding_status: 0, @@ -511,7 +510,10 @@ no_cart_data_btn_text: this.$t('login.login.np9177') }); } - } + } + + // 猜你喜欢 + this.get_data_list(1); } // 分享菜单处理