From e94ac3c8f45346809a72488bafe51bc5b2cd19e3 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 05 十二月 2022 11:02:46 +0800
Subject: [PATCH] #

---
 pages/basics/callEmpty.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/pages/basics/callEmpty.vue b/pages/basics/callEmpty.vue
index c9c31f9..9151018 100644
--- a/pages/basics/callEmpty.vue
+++ b/pages/basics/callEmpty.vue
@@ -1,7 +1,7 @@
 <template>
 	<view style="width: 100%;height: 100vh;">
 		<view style="width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;">
-			<button size="default" class="cu-btn bg-blue lg  ">鍛煎彨绌烘澘</button>
+			<button size="default" class="cu-btn bg-blue lg " @click="callEmpty">鍛煎彨绌烘澘</button>
 		</view>
 	</view>
 </template>
@@ -13,7 +13,6 @@
 				commonUrl: '',
 				baseIP: '',
 				basePORT: '',
-				
 			}
 		},
 		mounted(){
@@ -32,7 +31,12 @@
 			callEmpty() {
 				let that = this
 				uni.request({
-					url:
+					url: that.commonUrl + '/site/motherPallet',
+					method:'POST',
+					success(result) {
+						var res = result.data
+						uni.showToast({title: res.msg, icon: "none", position: 'top'})
+					}
 				})
 			}
 		}

--
Gitblit v1.9.1