From df59fa3084088233c240bb6bfe331fdbecb58794 Mon Sep 17 00:00:00 2001
From: niexiting <85552560@qq.com>
Date: Tue, 2 Jan 2024 10:04:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9index=E9=A1=B5=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../{PDA_style.css => PDA_style-delete.css} | 0
pages/index/index.vue | 35 ++++++++++++-------
2 files changed, 22 insertions(+), 13 deletions(-)
rename common/style/{PDA_style.css => PDA_style-delete.css} (100%)
diff --git a/common/style/PDA_style.css b/common/style/PDA_style-delete.css
similarity index 100%
rename from common/style/PDA_style.css
rename to common/style/PDA_style-delete.css
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4f8488a9..a64e154e 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -22,11 +22,14 @@
{{item.name}}
-
-
+
+
+
@@ -169,30 +172,30 @@
this.timer = setInterval(function() {
that.getMainMessage();
console.log('刷新菜单');
- }, 1000*60)
+ }, 1000 * 60)
},
- stopRefresh(){
+ stopRefresh() {
if (this.timer) {
clearInterval(this.timer);
this.timer = null;
}
},
- getMainMessage(){
+ getMainMessage() {
getMainMessage().then(res => {
this.menusCount = res.data;
- this.tabbar.forEach(item=>{
- item.children.forEach(rightItem=>{
+ this.tabbar.forEach(item => {
+ item.children.forEach(rightItem => {
var count = this.menusCount[rightItem.component]
- if(count!=undefined){
- rightItem.count =count;
+ if (count != undefined) {
+ rightItem.count = count;
}
})
})
- this.$forceUpdate()
-
+ this.$forceUpdate()
+
});
},
-
+
findList(tab) {
let res = null
for (let i = 0; i < tab.length; i++) {
@@ -472,7 +475,13 @@
height: 32px;
}
- .index_badge {
+ .item-menu-badge {
+ width: 42rpx;
+ height: 42rpx;
+ top: -5px;
+ right: -5px;
+ font-size: 0.6rem;
+ background-color: #fa3534;
position: absolute;
right: 0;
color: #fff;