From 0a936b5550c0d2b2125977fb8f956720b7ed0e4c Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 27 六月 2020 16:25:12 +0800 Subject: [PATCH] # --- src/main/webapp/views/pda/matQuery.html | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/views/pda/matQuery.html b/src/main/webapp/views/pda/matQuery.html index 7a6f6fa..bbad7ed 100644 --- a/src/main/webapp/views/pda/matQuery.html +++ b/src/main/webapp/views/pda/matQuery.html @@ -81,7 +81,7 @@ </div> <div class="form-item"> <span>鐗╂枡鍚嶇О</span> - <input type="text" disabled="disabled" value="111111111111111111111111111111111111111111"> + <input type="text" disabled="disabled"> </div> <div class="form-item"> <span>鐗╂枡鎻忚堪</span> @@ -94,7 +94,7 @@ <div class="form-item"> <span style="vertical-align: middle">鏁伴噺</span> <div class="number-tool" style="vertical-align: middle"> - <button>+</button><input type="number" value="1"><button>-</button> + <button onclick="add()">+</button><input id="count" type="number" value="1"><button onclick="reduce()">-</button> </div> </div> @@ -103,6 +103,7 @@ </body> <script> + var countDom = $('#count'); var pageCurr; layui.use(['table','laydate', 'form'], function() { var table = layui.table; @@ -123,5 +124,15 @@ } }); + function add() { + countDom.val(Number(countDom.val()) + 1); + } + function reduce() { + if (countDom.val() <= 0) { + return; + } + countDom.val(countDom.val() - 1); + } + </script> </html> \ No newline at end of file -- Gitblit v1.9.1