From 5d37c52f4cd1bc842dfc856a92e9983f8ddfc9bc Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 17 Jan 2024 10:29:02 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96=202024.1.17=20sws?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/user.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/user/user.vue b/pages/user/user.vue index 6ba6fca1..26daddee 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -250,22 +250,22 @@ { name: this.$t('promotion-order.promotion-order.iwa646'), url: 'user-order', - count: 0, + count: this.head_nav_list.length > 0 ? this.head_nav_list[0].count : 0, }, { name: this.$t('user.user.3q4p8k'), url: 'user-favor', - count: 0, + count: this.head_nav_list.length > 0 ? this.head_nav_list[1].count : 0, }, { name: this.$t('user.user.57xw84'), url: 'user-goods-browse', - count: 0, + count: this.head_nav_list.length > 0 ? this.head_nav_list[2].count : 0, }, { name: this.$t('user.user.k78280'), url: 'user-integral', - count: 0, + count: this.head_nav_list.length > 0 ? this.head_nav_list[3].count : 0, }, ]; var nav_logout_data = { @@ -276,7 +276,7 @@ this.setData({ head_nav_list, nav_logout_data, - nickname + nickname, }); },