xuhy
2023-05-17 566c44cc5712ab9c997424ee5a5438e0a81a016e
management/guns-admin/src/main/webapp/WEB-INF/view/system/tCommercial/tCommercial_edit.html
@@ -39,7 +39,7 @@
                                </div>
                            </div>
                            <div class="initialLevel col-sm-12 control-label form-group"  >
                            <div class="initialLevel col-sm-12 control-label form-group"  id="homePageBannerIsShow">
                                <div class="initialLevel col-sm-3 control-label form-group"  >
                                    <span style="color:red">*</span>
                                    <label class="control-label" >广告类型:&emsp;</label>
@@ -87,7 +87,7 @@
                                    <input id="sort" value="${item.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-12 control-label form-group"  id="detailContent">
                                <div class="initialLevel col-sm-6 control-label form-group"  >
                                    <span style="color:red">*</span>
                                    <label class="control-label" >详情内容:&emsp;</label>
@@ -120,9 +120,12 @@
        if(1 == $("#isJump").val()){
            $("#jumpTypeIsShow").show()
            $("#jumpUrlIsShow").show()
        }else {
            $("#detailContent").show()
        }
        if(0 == $("#isJump").val()) {
            $("#jumpTypeIsShow").hide()
            $("#jumpUrlIsShow").hide()
            $("#detailContent").hide()
        }
        if(1 == $("#device").val()){
@@ -137,10 +140,20 @@
        if(this.value == 1){
            $("#jumpTypeIsShow").show()
            $("#jumpUrlIsShow").show()
            $("#detailContent").show()
            if(1 == $("#jumpType").val()){
                $("#jumpUrlIsShow").hide()
                $("#detailContent").show()
            }
            if(2 == $("#jumpType").val()){
                $("#jumpUrlIsShow").show()
                $("#detailContent").hide()
            }
        }
        if(this.value == 0){
            $("#jumpTypeIsShow").hide()
            $("#jumpUrlIsShow").hide()
            $("#detailContent").hide()
        }
    })
    //监听下拉菜单的变动操作
@@ -156,9 +169,11 @@
    $("#jumpType").change(function(){
        if(this.value == 1){
            $("#jumpUrlIsShow").hide()
            $("#detailContent").show()
        }
        if(this.value == 2){
            $("#jumpUrlIsShow").show()
            $("#detailContent").hide()
        }
    })
</script>