From 64b01b090f50ff7d99ac5dc73c841cbcdee13b35 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期一, 17 七月 2023 09:38:03 +0800 Subject: [PATCH] no message --- public/html/compareprice.html | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/public/html/compareprice.html b/public/html/compareprice.html index cf61973..4cb5246 100644 --- a/public/html/compareprice.html +++ b/public/html/compareprice.html @@ -203,7 +203,7 @@ } .coupon___2SVZi { - margin-top: 6px; + margin-top: 3px; height: .28rem; background: linear-gradient( 90deg, #ff8873, #ff4f4f); @@ -335,7 +335,7 @@ 娓呯┖ </div> <div class="content-txtarea"> - <textarea 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', @@ -466,7 +476,7 @@ case "tb": case "tm": uni.navigateTo({ - url: '/pages/goods/goodsDetail?id=' + item.goodsId+'&frompage=freebuy' + url: '/pages/goods/goodsDetail?id=' + item.goodsId+'&frompage=compareprice' }); break; default: -- Gitblit v1.9.3