From ed8a450409d89a448b4394300d33ebc2fd31fe0d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 28 Oct 2023 17:27:15 +0800
Subject: [PATCH] 首页文件修改

---
 components/curMenu/index.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/components/curMenu/index.vue b/components/curMenu/index.vue
index ee66c6a..f212f45 100644
--- a/components/curMenu/index.vue
+++ b/components/curMenu/index.vue
@@ -1,7 +1,10 @@
 <template>
 		<view class="menu-box" @click="curMenuClick(curMenu)">
-			<view>
+			<view v-if="imgShow">
 				<u--image :src="curMenu.imgUrl" :width='curMenu.imgWidth || 54' :height='curMenu.imgHeight || 54' shape="circle"></u--image>
+			</view>
+			<view v-if="textShow" :style="{height: curMenu.numHeight ? curMenu.numHeight + 'px' : '56rpx'}">
+				{{curMenu.num}}
 			</view>
 			<view :style="{height: curMenu.titleHeight ? curMenu.titleHeight + 'px' : '56rpx'}">
 				{{curMenu.title}}
@@ -17,7 +20,17 @@
 				default: () => {
 					return {}
 				}
-			}
+			},
+				
+			imgShow: {
+				type: Boolean,
+				default: true
+			},
+			
+			textShow: {
+				type: Boolean,
+				default: false
+			},
 		},
 		
 		methods: {

--
Gitblit v1.9.3