| | |
| | | @layout("/common/_container.html"){ |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-content"> |
| | | <div class="form-horizontal"> |
| | | |
| | | <div class="row"> |
| | | <div class="col-sm-6 b-r"> |
| | | <#input id="id" name="主键" underline="true"/> |
| | | <#input id="type" name="类型(1=弹窗广告,2=底部广告)" underline="true"/> |
| | | <#input id="name" name="名称" underline="true"/> |
| | | <#input id="url" name="广告地址" underline="true"/> |
| | | <#input id="device" name="设备(1=小程序,2=司机端)" underline="true"/> |
| | | <#input id="isJump" name="是否跳转(0=否,1=是)" underline="true"/> |
| | | <#input id="jumpType" name="跳转类型(1=内部跳转,2=外部跳转)" underline="true"/> |
| | | <#input id="jumpUrl" name="跳转连接"/> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5>添加</h5> |
| | | </div> |
| | | <div class="ibox-content" id="commercialInfoForm"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | |
| | | <div class="col-sm-12" style="cursor: pointer;text-align: left;"> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >广告图名称:</label> |
| | | <input id="name" name="name" type="text" maxlength="40" placeholder="请输入广告图名称" style="height: 30px" required="required"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="col-sm-6"> |
| | | <#input id="html" name="富文本" underline="true"/> |
| | | <#input id="sort" name="排序" underline="true"/> |
| | | <#input id="status" name="状态(1=正常,2=冻结,3=删除)" underline="true"/> |
| | | <#input id="createTime" name="添加时间" underline="true"/> |
| | | <#input id="createUserId" name="添加人员id" underline="true"/> |
| | | <#input id="updateTime" name="更新时间" underline="true"/> |
| | | <#input id="updateUserId" name="更新人员id" underline="true"/> |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >广告图图片:</label> |
| | | <#uploadImg id="url" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >端  口: </label> |
| | | <select id="device" style="width: 180px;height: 30px" name="device"> |
| | | <option value="">选择端口</option> |
| | | <option value="2">司机端</option> |
| | | <option value="1">小程序端</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >广告类型: </label> |
| | | <select id="type" style="width: 180px;height: 30px" name="type"> |
| | | <option value="">选择广告类型</option> |
| | | <option value="1">弹窗广告</option> |
| | | <option value="2" id="homePageBanner">首页底部广告</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >是否跳转: </label> |
| | | <select id="isJump" style="width: 180px;height: 30px" name="isJump"> |
| | | <option value="">选择是否跳转</option> |
| | | <option value="1">是</option> |
| | | <option value="0">否</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" id="jumpTypeIsShow" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >跳转类型: </label> |
| | | <select id="jumpType" style="width: 180px;height: 30px" name="jumpType"> |
| | | <option value="">选择跳转类型</option> |
| | | <option value="1">内部跳转</option> |
| | | <option value="2">外部跳转</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" id="jumpUrlIsShow" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >跳转链接: </label> |
| | | <input id="jumpUrl" name="jumpUrl" type="number" style="height: 30px" maxlength="200" placeholder="请输入跳转链接" required="required"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >排  序: </label> |
| | | <input id="sort" name="sort" type="number" style="height: 30px" maxlength="4" placeholder="请输入排序" required="required"> |
| | | </div> |
| | | </div> |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-6 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >详情内容: </label> |
| | | <textarea type="text/plain" id="html" style="width:100%;height:350px;"></textarea> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10"> |
| | | <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TCommercialInfoDlg.addSubmit()"/> |
| | | <div class="col-sm-10" style="text-align: center"> |
| | | <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TCommercialInfoDlg.close()"/> |
| | | <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TCommercialInfoDlg.addSubmit()"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script src="${ctxPath}/static/modular/system/tCommercial/tCommercial_info.js"></script> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | var idCardPositive = new $WebUpload("url"); |
| | | idCardPositive.setUploadBarId("progressBar"); |
| | | idCardPositive.init(); |
| | | }); |
| | | //监听下拉菜单的变动操作 |
| | | $("#isJump").change(function(){ |
| | | if(this.value == 1){ |
| | | $("#jumpTypeIsShow").show() |
| | | $("#jumpUrlIsShow").show() |
| | | } |
| | | if(this.value == 0){ |
| | | $("#jumpTypeIsShow").hide() |
| | | $("#jumpUrlIsShow").hide() |
| | | } |
| | | }) |
| | | //监听下拉菜单的变动操作 |
| | | $("#device").change(function(){ |
| | | if(this.value == 1){ |
| | | $("#homePageBanner").show() |
| | | } |
| | | if(this.value == 2){ |
| | | $("#homePageBanner").hide() |
| | | } |
| | | }) |
| | | </script> |
| | | @} |