From 86613909c1be520ac6f994b4fa6f01b428b85bca Mon Sep 17 00:00:00 2001 From: heyuntao <heyuntao@LAPTOP-MP4HD5NS> Date: 星期一, 17 七月 2023 09:54:21 +0800 Subject: [PATCH] no message --- public/html/compareprice.html | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/public/html/compareprice.html b/public/html/compareprice.html index 0ffc3f7..4cb5246 100644 --- a/public/html/compareprice.html +++ b/public/html/compareprice.html @@ -335,7 +335,7 @@ 娓呯┖ </div> <div class="content-txtarea"> - <textarea onkeydown="onTextareaKeyDown(event)" class="txtarea" v-model="txtareatxt" :placeholder='txtplaceholder'></textarea> + <textarea enterkeyhint="search" onkeydown="onTextareaKeyDown()" class="txtarea" v-model="txtareatxt" :placeholder='txtplaceholder'></textarea> <span class="copytxt" v-on:click="fromcopy()">绮樿创</span> </div> <div class="mid-button-content"> @@ -404,6 +404,16 @@ { app.likeDataGet(data); } + + function onTextareaKeyDown() + { + if (event.keyCode == 13) + { + app.search(); + document.activeElement.blur(); + } + + } Vue.use(VueLazyload, { preLoad: 1.3,// error: 'https://sr.ffquan.cn/cms_pic/20200622/bro7s7f6vrkd3jat4ujg0.png', @@ -423,12 +433,6 @@ txtplaceholder:'1銆佹敮鎸佹窐瀹濄�佸ぉ鐚�佷含涓溿�佹姈闊炽�佹嫾澶氬绛夊钩鍙癨r\n2銆佽绮樿创鎮ㄩ渶瑕佽浆鎹㈢殑鍒嗕韩鏂囨/閾炬帴鍜屽彛浠�/鍟嗗搧閾炬帴;涓嶆敮鎸佸埜閾炬帴' }, methods:{ - onTextareaKeyDown:function(event) - { - if(event.keyCode){ - alert('浣犵偣鍑讳簡鍥炶溅閿�') - } - }, //鏌ヨ search:function() { -- Gitblit v1.9.3