| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglib.jsp"%>
- <html>
- <head>
- <title>业务参数管理</title>
- <meta name="decorator" content="ani"/>
- <link href="${ctxStatic}/plugin/bootstrap/css/bootstrap-switch.min.css" rel="stylesheet">
- <script src="${ctxStatic}/plugin/bootstrap/js/bootstrap-switch.min.js"></script>
- <style>
- .headBottom{
- border-bottom:1px solid #ccc;
- font-size: 16px;
- color: rgba(0,0,0,.85);
- padding-bottom: 6px;
- }
- .form-group {
- margin-bottom: 25px !important;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- $("label[name='onoffswitch']").on('click',function (e) {
- var onswitch= document.getElementById("onoffswitch").checked;
- if (onswitch) {
- $('#shareFlag').val(0)
- jp.info("关闭");
- }
- else {
- $('#shareFlag').val(1)
- jp.info("开启");
- }
- });
- jp.ajaxForm("#inputForm",function(data){
- if(data.success){
- jp.success(data.msg);
- jp.go("${ctx}/hpmessage/hpBizParam/form");
- }else{
- jp.error(data.msg);
- $("#inputForm").find("button:submit").button("reset");
- }
- });
- });
- </script>
- </head>
- <body>
- <div class="wrapper wrapper-content">
- <div class="row">
- <div class="col-md-12">
- <div class="panel panel-primary">
- <div class="panel-body">
- <form:form id="inputForm" modelAttribute="hpBizParam" action="${ctx}/hpmessage/hpBizParam/save" method="post" class="form-horizontal">
- <form:hidden path="id"/>
- <div class="form-group col-sm-12 headBottom">业务参数配置</div>
- <div class="form-group">
- <label class="col-sm-2 control-label">小程序分享:</label>
- <div class="col-sm-6">
- <div class="onoffswitch">
- <input type="hidden" name="shareFlag" id="shareFlag" value="${hpBizParam.shareFlag}">
- <c:choose>
- <c:when test="${hpBizParam.shareFlag==null}">
- <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="onoffswitch">
- <label class="onoffswitch-label" for="onoffswitch" name="onoffswitch">
- <span class="onoffswitch-inner"></span>
- <span class="onoffswitch-switch"></span>
- </label>
- </c:when>
- <c:otherwise>
- <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="onoffswitch" ${hpBizParam.shareFlag=="1"?"checked":""}>
- <label class="onoffswitch-label" for="onoffswitch" name="onoffswitch">
- <span class="onoffswitch-inner"></span>
- <span class="onoffswitch-switch"></span>
- </label>
- </c:otherwise>
- </c:choose>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">小程序原始id:</label>
- <div class="col-sm-6">
- <form:input path="gdId" htmlEscape="false" maxlength="100" class="form-control required" placeholder="小程序原始id"/>
- <span class="help-block">应用于app内分享接口</span>
- </div>
- </div>
- <div class="col-sm-3" ></div>
- <div class="col-sm-6" style="padding-top: 20%">
- <div class="form-group text-center">
- <div>
- <button class="btn btn-primary btn-block btn-sm btn-parsley" data-loading-text="正在提交...">保 存</button>
- </div>
- </div>
- </div>
- </form:form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|