From 4efeb31d5b4921d7e851c256009486ad86bc70e2 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Tue, 21 Jun 2022 09:14:57 +0800
Subject: [PATCH] 地址替换

---
 components/submit/submit.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/components/submit/submit.vue b/components/submit/submit.vue
index 918e8a1..583d649 100644
--- a/components/submit/submit.vue
+++ b/components/submit/submit.vue
@@ -3,7 +3,7 @@
 		<view class="submit">
 			<view class="submit-chat">
 				<view class="bt-img">
-					<image src="../../static/images/chatroom/voice.png" mode="" @tap="records" />
+					<image :src="audio" mode="" @tap="records" />
 				</view>
 				<textarea auto-height="true" class="chat-send btn" :class="{displaynone: isrecord}" @input="inputs"
 					v-model="msg" @focus="focus" />
@@ -87,6 +87,7 @@
 				timer: '',
 				vlength: 0,
 				pageY: 0,
+				audio: "../../static/start-audio.png"
 			};
 		},
 		mounted() {
@@ -105,12 +106,19 @@
 			},
 			// 点击切换音频
 			records() {
+				if (this.audio == "../../static/start-audio.png") {
+					this.audio = "../../static/start-input.png"
+				} else {
+					this.audio = "../../static/start-audio.png"
+				}
 				this.isrecord = !this.isrecord
 				this.isemoji = false
 				this.ismore = false
+				
 				setTimeout(() => {
 					this._getElementHeight()
 				}, 10)
+				
 			},
 			// 点击弹出表情
 			emoji() {
@@ -170,10 +178,12 @@
 			},
 			// 发送消息
 			send(msg, type) {
+
 				let data = {
 					message: msg,
 					types: type
 				}
+				
 				this.$emit('inputs', data)
 				setTimeout(() => {
 					this.msg = ''
@@ -251,7 +261,6 @@
 							latitude: res.latitude,
 							longitude: res.longitude
 						}
-						this.send(data, 3)
 						console.log('位置名称' + res.name)
 						console.log('详细地址' + res.address)
 						console.log('维度' + res.latitude)

--
Gitblit v1.9.3