From b918a0cee7c0e945f4cca6d26ad450b9ee5b48b4 Mon Sep 17 00:00:00 2001 From: unknown <1162963624@qq.com> Date: Mon, 30 Nov 2020 10:03:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/css/index.css | 1 + dist/js/iminit.js | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dist/css/index.css b/dist/css/index.css index 086acea..616d855 100644 --- a/dist/css/index.css +++ b/dist/css/index.css @@ -166,6 +166,7 @@ div{ border-radius: 10px; position: relative; display: block; + z-index: 999; } .device-testing-prepare,.device-testing,.device-testing-report{ display: block; diff --git a/dist/js/iminit.js b/dist/js/iminit.js index 31a4f9a..ed83995 100644 --- a/dist/js/iminit.js +++ b/dist/js/iminit.js @@ -224,12 +224,23 @@ function formatDateTime (inputTime) { sendtext(text) $("#shurukuang").val("") }) + $("#shurukuang").keyup(function(event){ + if(event.keyCode ==13){ + //这里填写你要做的事件 + //TODO + const text = $("#shurukuang").val() + console.log(text) + sendtext(text) + $("#shurukuang").val("") + } + }); }) -}); + }); + function sendjinyan(id,type){ const m = tim.createTextMessage({ to: window.roomid,