From b48a5f64fe196bee6f1c7eb0be1b78c9ebec0860 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 11 Oct 2021 08:44:27 +0800
Subject: [PATCH] 修改完善

---
 pages/groupChat/newGroup/newGroup.vue |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/pages/groupChat/newGroup/newGroup.vue b/pages/groupChat/newGroup/newGroup.vue
index c104a85..5ef5d99 100644
--- a/pages/groupChat/newGroup/newGroup.vue
+++ b/pages/groupChat/newGroup/newGroup.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="registerUser">
 
-		<view class="group-chat-box">
+		<view class="group-chat-box" id="groupChatBox" :style="{ height: swiperHeight + 'px' }">
 
 			<u-form :model="form" ref="uForm">
 
@@ -51,10 +51,31 @@
 					groupnotice: '',
 					groupmember: '',
 				},
+				swiperHeight: 0
 			}
 		},
 		onReady() {
 			this.$refs.uForm.setRules(this.rules);
+			let that = this;
+			uni.getSystemInfo({
+				success(e) {
+					console.log(e);
+					let {
+						windowWidth,
+						windowHeight,
+						safeArea
+					} = e;
+					const query = uni.createSelectorQuery().in(that);
+					query
+						.select('#groupChatBox')
+						.boundingClientRect(data => {
+					
+							that.swiperHeight = (safeArea.bottom - 58);
+					
+						})
+						.exec();
+				}
+			});
 		},
 		onLoad() {
 			this.getFriend();
@@ -167,11 +188,9 @@
 	}
 
 	.registerUser {
-		height: 100%;
 		background: #f7f7f7;
 
 		.group-chat-box {
-			height: calc(100% - 116rpx);
 			padding: 0 1.2rem;
 			box-sizing: border-box;
 			overflow-y: auto;

--
Gitblit v1.9.3