From dcc7b2d14fcbac97fb6d2c8975a3cd93dfbcc458 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期六, 27 七月 2024 20:36:11 +0800
Subject: [PATCH] update 功能调整

---
 sub_pages/customer/trade/trade.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/sub_pages/customer/trade/trade.vue b/sub_pages/customer/trade/trade.vue
index 493cd48..cf1a60b 100644
--- a/sub_pages/customer/trade/trade.vue
+++ b/sub_pages/customer/trade/trade.vue
@@ -38,7 +38,7 @@
 						<view v-for="(item,index) of listFilter" :key="item.id" class="canteen-item list"
 							@click.stop="toDetailList(item)">
 							<view class="m-r-10">
-								<image :src="item.imageUrl" mode="scaleToFill" class="cover"
+								<image :src="item.imageUrl" mode="scaleToFill" class="cover" :lazy-load="true"
 									@click.stop="previewImg(item.imageUrl)">
 								</image>
 							</view>
@@ -130,8 +130,10 @@
 		},
 		async onLoad() {
 
-			//加载分类
-			this.$http.request('get', '/api/customer/flower/category/tree', {}).then(res => {
+			//加载分类
+			this.$message.showLoading()
+			this.$http.request('get', '/api/customer/flower/category/tree', {}).then(res => {
+				this.$message.hideLoading()
 				var data = res.data
 				this.list = data || []
 				if (this.list.length > 0) {

--
Gitblit v1.9.3