From e86013cd8d4b88ca916067b01eeb452401b38c7b Mon Sep 17 00:00:00 2001
From: 朱桂飞 <18597012158>
Date: 星期二, 11 四月 2023 14:46:00 +0800
Subject: [PATCH] 修改首页草药名称过长UI错乱问题

---
 pages/tabBar/general.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/pages/tabBar/general.vue b/pages/tabBar/general.vue
index 650a424..4322435 100644
--- a/pages/tabBar/general.vue
+++ b/pages/tabBar/general.vue
@@ -14,7 +14,7 @@
 		<cu-custom bgColor="bg-gradual-blue" :isBack="false">
 			<block slot="content">骞茬嚗璁惧鐩戞帶绯荤粺</block>
 		</cu-custom>
-
+		<u-toast ref="uToast"></u-toast>
 		<!-- 		<view class="card-box dynamic shadow cu-list menu">
 			<view class="title-box">
 				<view class="left">
@@ -177,7 +177,7 @@
 					<view class="flex">
 						<text>涓崏鑽�</text>
 						<text>涓�</text>
-						<text>{{showValue(item.herbName)}}</text>
+						<text @click="showLongName(showValue(item.herbName))" class="text-cut flex-twice">{{showValue(item.herbName)}}</text>
 						<!-- <view class="margin-lr-sm">
 							<u-tag text="鎶ヨ涓�娆�" plain size="mini" type="warning"></u-tag>
 						</view> -->
@@ -363,7 +363,14 @@
 			this.getOrderList(day, day)
 
 		},
-		methods: {
+		methods: {
+			showLongName(longName){
+					this.$refs.uToast.show({
+						type: 'default',
+						message: longName
+					})
+				
+			},
 			dayChange(dayInfo) { // 鐐瑰嚮鏃ユ湡
 				this.model.date = dayInfo.date
 				console.log("鐐瑰嚮鏃ユ湡", JSON.parse(JSON.stringify(dayInfo)));

--
Gitblit v1.9.3