From 822b4ba515f90ed3b07a59642d8ab95aed119f21 Mon Sep 17 00:00:00 2001 From: luoyang Date: Mon, 14 Oct 2019 18:34:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20remark=20=E8=BD=AF=E9=94=AE=E7=9B=98?= =?UTF-8?q?=E5=AF=BC=E8=87=B4remark=E7=A1=AE=E5=AE=9A=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/ui/static/templates/payment/v1/payment.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/ui/static/templates/payment/v1/payment.js b/src/main/ui/static/templates/payment/v1/payment.js index 829de19d1..c7da573f9 100644 --- a/src/main/ui/static/templates/payment/v1/payment.js +++ b/src/main/ui/static/templates/payment/v1/payment.js @@ -236,6 +236,12 @@ $(function () { } }); + function addBlurListen() { + $('.remark-input').on('blur', function (event) { + window.scrollTo(0, 0); + }); + } + $('#key_P').bind('touchstart', function () { if (window.requireRemark) { if (!dataCache.remark) { @@ -436,6 +442,7 @@ $(function () { } } dialog.appendTo($('body')); + addBlurListen(); } }