Browse Source

居民服务类型可多选,

chenyue 6 years ago
parent
commit
7bff309c4c
2 changed files with 16 additions and 6 deletions
  1. 1 0
      html/home/html/huanzhe.html
  2. 15 6
      html/huanzhe/html/disease-label-edit.html

+ 1 - 0
html/home/html/huanzhe.html

@ -69,6 +69,7 @@
                </div>
            </div>
            {{/each}}
             <div style="color: transparent;">置尾,防止最后一个标签第一次信息不显示</div>
        </script>
		
		<script type="text/html" id="pati_list_tmpl">

+ 15 - 6
html/huanzhe/html/disease-label-edit.html

@ -99,14 +99,23 @@
				})
				
				$("#disease-box1").on("click",".c-list-li",function(){
//					if(!$(this).hasClass('cant-active')){
//						var active1=false;
//						if($(this).hasClass("active-icon")){
//							active1=true
//						}							
//						$("#disease-box1 .c-list-li").removeClass("active-icon").addClass("no-active");
//						if(!active1){
//							$(this).addClass("active-icon").removeClass("no-active");							
//						}
//					}
					if(!$(this).hasClass('cant-active')){
						var active1=false;
						if($(this).hasClass("active-icon")){
							active1=true
						}							
						$("#disease-box1 .c-list-li").removeClass("active-icon").addClass("no-active");
						if(!active1){
							$(this).addClass("active-icon").removeClass("no-active");							
							$(this).removeClass("active-icon");
							$(this).addClass("no-active");
						}else{
							$(this).removeClass("no-active");
							$(this).addClass("active-icon");
						}
					}
				})