From 0a6f905b50a88993da05b9b3114394fb91dbc7d0 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期三, 31 五月 2023 19:05:56 +0800 Subject: [PATCH] 修改bug --- management/guns-admin/src/main/webapp/WEB-INF/view/system/tSystemConfig/tSystemConfigPriceRules.html | 28 ++++++++++++---------------- 1 files changed, 12 insertions(+), 16 deletions(-) diff --git a/management/guns-admin/src/main/webapp/WEB-INF/view/system/tSystemConfig/tSystemConfigPriceRules.html b/management/guns-admin/src/main/webapp/WEB-INF/view/system/tSystemConfig/tSystemConfigPriceRules.html index b01e970..c82b1d4 100644 --- a/management/guns-admin/src/main/webapp/WEB-INF/view/system/tSystemConfig/tSystemConfigPriceRules.html +++ b/management/guns-admin/src/main/webapp/WEB-INF/view/system/tSystemConfig/tSystemConfigPriceRules.html @@ -59,9 +59,9 @@ <div class="rulesForm" style="border: 1px solid #888888;padding-top: 10px;display: grid;margin: 10px 0px"> <div class="initialLevel col-sm-12 control-label form-group" id='time' > <span class="control-label" >时间段</span> - <input class="control-label" id="num1" name="num1" type="text" value="${o.num1}" placeholder="00:00" style="height: 30px;width: 80px"> + <input class="control-label time-item" id="num1" name="num1" type="text" value="${o.num1}" placeholder="00:00" style="height: 30px;width: 80px" readonly> <span class="control-label" >——</span> - <input class="control-label" id="num2" name="num2" type="text" value="${o.num2}" placeholder="00:00" style="height: 30px;width: 80px"> + <input class="control-label time-item" id="num2" name="num2" type="text" value="${o.num2}" placeholder="00:00" style="height: 30px;width: 80px" readonly> <span class="fa fa-remove" style='position: absolute;right: 20px;color: red;font-size: 20px;' onclick="TSystemConfig.delTime(this)"></span> </div> <div class="prices"> @@ -162,20 +162,16 @@ <script src="${ctxPath}/static/modular/system/tSystemConfig/tSystemConfig.js"></script> <script src="${ctxPath}/static/modular/system/tSystemConfig/tSystemConfig_info.js"></script> <script type="text/javascript"> - // laydate.render({ - // elem: 'input[name=num1]', - // type: 'time', - // format: 'HH:mm', - // range: false, - // lang:'zn' - // }); - // laydate.render({ - // elem: 'input[name=num2]', - // type: 'time', - // format: 'HH:mm', - // range: false, - // lang:'zn' - // }); + lay('.time-item').each(function(){ + laydate.render({ + elem: this, + type: 'time', + format: 'HH:mm', + range: false, + lang:'zn', + trigger: 'click' + }); + }); var elem1 = document.querySelector(".js-switch1"); var init1 = new Switchery(elem1); -- Gitblit v1.7.1