联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
用联动菜单搞的选项怎么设置选择全材料时精品硅胶和推荐硅胶不能
类型:迅睿CMS 更新时间:2021-01-25 16:27:01

{xunruicms_img_title}

用联动菜单搞的选项,怎么设置选择"全TPE材料"时"精品硅胶"和"推荐硅胶"不能选择,只有"精品TPE"和"推荐TPE"可以选择

回帖
  • 迅睿框架技术-张洪
    #1楼    迅睿框架技术-张洪
    2021-01-25 16:12:09
    Chrome 0
    写一个if判断啊,吧你图片中 的对应代码,发出来我给你免费写一个
  • because
    #2楼    because
    2021-01-25 16:17:43
    Chrome 0
    <div class="form-group row">
        <label class="col-md-1 control-label" style="text-align: right;" >材料类型:</label>
        <div class="morebtn" >
          更多&nbsp;<i class="fa fa-angle-down"></i>
        </div>
        <div class="col-md-10 selectbtn">
            <label><a class="label {if !$params.cllx || dr_linkage('cllx', $params.cllx, 0, 'child')}label-success{else}label-default{/if}" href="{dr_search_url($params, 'cllx', NULL)}">不限</a></label>
            {list action=linkage code=cllx pid=$params.cllx}
            <label><a class="label {if $t.id==$params.cllx}label-success{else}label-default{/if}" href="{dr_search_url($params, 'cllx', $t.id)}">{$t.name}</a></label>
            {/list}
        </div>
    </div>
    <div class="form-group row">
        <label class="col-md-1 control-label" style="text-align: right;" >眼睛颜色:</label>
        <div class="morebtn" >
          更多&nbsp;<i class="fa fa-angle-down"></i>
        </div>
        <div class="col-md-10 selectbtn">
            <label><a class="label {if !$params.yjys || dr_linkage('yjys', $params.yjys, 0, 'child')}label-success{else}label-default{/if}" href="{dr_search_url($params, 'yjys', NULL)}">不限</a></label>
            {list action=linkage code=yjys pid=$params.yjys}
            <label><a class="label {if $t.id==$params.yjys}label-success{else}label-default{/if}" href="{dr_search_url($params, 'yjys', $t.id)}">{$t.name}</a></label>
            {/list}
        </div>
    </div>
    <div class="form-group row">
        <label class="col-md-1 control-label" style="text-align: right;" >按系列划分:</label>
        <div class="morebtn" >
          更多&nbsp;<i class="fa fa-angle-down"></i>
        </div>
        <div class="col-md-10 selectbtn">
            <label><a class="label {if !$params.axlhf || dr_linkage('axlhf', $params.axlhf, 0, 'child')}label-success{else}label-default{/if}" href="{dr_search_url($params, 'axlhf', NULL)}">不限</a></label>
            {list action=linkage code=axlhf pid=$params.axlhf}
            <label><a class="label {if $t.id==$params.axlhf}label-success{else}label-default{/if}" href="{dr_search_url($params, 'axlhf', $t.id)}">{$t.name}</a></label>
            {/list}
        </div>
    </div>
  • 迅睿框架技术-张洪
    #3楼    迅睿框架技术-张洪
    2021-01-25 16:22:17
    Chrome 0
    <div class="form-group row">
        <label class="col-md-1 control-label" style="text-align: right;" >材料类型:</label>
        <div class="morebtn" >
          更多&nbsp;<i class="fa fa-angle-down"></i>
        </div>
        <div class="col-md-10 selectbtn">
            <label><a class="label {if !$params.cllx || dr_linkage('cllx', $params.cllx, 0, 'child')}label-success{else}label-default{/if}"  target="_blank" href="{dr_search_url($params, 'cllx', NULL)}">不限</a></label>
            {list action=linkage code=cllx pid=$params.cllx}
            <label><a class="label {if $t.id==$params.cllx}label-success{else}label-default{/if}"  target="_blank" href="{dr_search_url($params, 'cllx', $t.id)}">{$t.name}</a></label>
            {/list}
        </div>
    </div>
    
    <div class="form-group row">
        <label class="col-md-1 control-label" style="text-align: right;" >眼睛颜色:</label>
        <div class="morebtn" >
          更多&nbsp;<i class="fa fa-angle-down"></i>
        </div>
        <div class="col-md-10 selectbtn">
            <label><a class="label {if !$params.yjys || dr_linkage('yjys', $params.yjys, 0, 'child')}label-success{else}label-default{/if}"  target="_blank" href="{dr_search_url($params, 'yjys', NULL)}">不限</a></label>
            {list action=linkage code=yjys pid=$params.yjys}
            <label><a class="label {if $t.id==$params.yjys}label-success{else}label-default{/if}"  target="_blank" href="{dr_search_url($params, 'yjys', $t.id)}">{$t.name}</a></label>
            {/list}
        </div>
    </div>
    <div class="form-group row">
        <label class="col-md-1 control-label" style="text-align: right;" >按系列划分:</label>
        <div class="morebtn" >
          更多&nbsp;<i class="fa fa-angle-down"></i>
        </div>
        <div class="col-md-10 selectbtn">
            <label><a class="label {if !$params.axlhf || dr_linkage('axlhf', $params.axlhf, 0, 'child')}label-success{else}label-default{/if}"  target="_blank" href="{dr_search_url($params, 'axlhf', NULL)}">不限</a></label>
            {list action=linkage code=axlhf pid=$params.axlhf}
            {if $params.cllx && $params.cllx == '填写全PE材料的别名字母' && !in_array($params.axlhf, ["填写精品硅胶的别名字母","填写推荐硅胶的别名字母"])}
            <label><a class="label {if $t.id==$params.axlhf}label-success{else}label-default{/if}"  target="_blank" href="{dr_search_url($params, 'axlhf', $t.id)}">{$t.name}</a></label>
            {/list}
        </div>
    </div>
    分别把判断中的汉字换成对应的字母值
    满意答案
  • because
    #4楼    because
    2021-01-25 16:27:01
    Chrome 0
    @迅睿框架技术-张洪:好的,谢谢大神