Browse Source

修改健康教育

lulihong 6 years ago
parent
commit
3044365bb6

+ 8 - 2
html/jkjy/css/xuanzejumin.css

@ -9,7 +9,7 @@
.lin-sel-group img{ width: 20px; margin: 10px; display: none; }
.lin-sel-group li.checked img{ display: inline; }
.lin-mask{ position: fixed; top: 45px; height: 100%; width: 100%; height: 100%; z-index: 10; display: none; background-color: rgba(0,0,0,0.5); }
.sel-group{ position: fixed; top: 45px; right: 10px; width: 163px; height: 193px; z-index: 11; background: url(../images/tanchuang_icon.png) no-repeat; background-size: 100% 100%; display: none; }
.sel-group{ position: fixed; top: 45px; right: 10px; width: 163px; height: 110px; z-index: 11; background: url(../images/tanchuang_icon.png) no-repeat; background-size: 100% 100%; display: none; }
.sel-group li{ height: 45px; line-height: 45px; font-size: 16px; color: #323232; border-bottom: 1px solid #f2f4f6; }
.sel-group li:first-child{ margin-top: 10px; }
.sel-group li:last-child{ border-bottom: none; }
@ -37,7 +37,13 @@
.xz-nav-one{ -webkit-box-flex:1; display: -webkit-box; -webkit-box-pack: center;}
.xz-nav-one div{height: 42px;line-height: 43px;border-bottom: solid 2px transparent;}
.xz-nav-one.active div{border-bottom-color:#17B3EC;color: #17B3EC;}
.load-more {background-color: #FFF; text-align: center;height:40px;line-height: 40px; font-size: 14px;color: #909090;}
.load-more {background-color: #FFF;
text-align: center;
height: 50px;
line-height: 50px;
font-size: 14px;
color: #909090;
padding-top: 10px;}
.n-list > li:first-child, .n-list > .n-list-li:first-child{border-top: solid 1px #f1f1f1;}
.n-list.no-bt > li:first-child, .n-list.no-bt > .n-list-li:first-child{border-top:none;}
.n-list.no-bt{border-bottom: solid 1px #dcdcdc;}

+ 3 - 1
html/jkjy/html/xuanzejumin_more.html

@ -21,7 +21,9 @@
	    <div class="h45">
            <div class="demo-comtop">
                <a class="mui-action-back"></a>
                <h1><span id="selected_team_name"></span>签约居民<label class="lin-down-arrow"></label></h1>
                <h1><span id="selected_team_name">选择居民</span>
                	<!--<label class="lin-down-arrow"></label>-->
                </h1>
                <div class="header-link">
                    <a id="sort" class="link">排列</a>
                </div>

+ 26 - 26
html/jkjy/js/xuanzejumin_more.js

@ -19,7 +19,7 @@ var lastTeamId,
	tagTitle = 1,//头部切换
	search_keyword='',//搜索关键字
    activeGroupType = "",
    typeId = 1, //记录排列的值
    typeId = 4, //记录排列的值
    sendCount = 0, //记录发送的数量
    historyData=[],//历史数据
	historyStr,
@ -86,11 +86,11 @@ initTeams = function (){
	if(!lastTeamId && baseInfo.teamInfo.data && baseInfo.teamInfo.data.length) {
		updateLastTeamId(baseInfo.teamInfo.data[0].id);
		$selectedTeamName.text(baseInfo.teamInfo.data[0].name);
//		$selectedTeamName.text(baseInfo.teamInfo.data[0].name);
		$('.lin-sel-group li').eq(0).addClass("checked");
	} else {
		var $selected = $('.lin-sel-group').find("li.checked");
		$selectedTeamName.text($selected.attr("data-name"));
//		$selectedTeamName.text($selected.attr("data-name"));
	}
    
    if(typeId){
@ -456,29 +456,6 @@ bindEvents = function () {
			isEmpty = !$(this).find('ul.n-list li').length;
		code && !isOpen && isEmpty && initPatientListByGroup(code);		
	})
	$patiList.on('click','li[data-patient-code]',function(e) {
		e.stopPropagation();
		var that = $(this)
		if(that.hasClass('checked')){
			that.find('.check-img').attr('src','../images/unchecked.png');
			that.removeClass('checked')
			if(tagTitle == 2){removeSelectLi(that);}
			$sendCount.text(sendCount);
			checkIsSelect()
		}else{
			if(sendCount == 200){
				mui.toast('选择居民不能超过200个')
				return
			}else{
				that.find('.check-img').attr('src','../images/checked_all.png');
				that.addClass('checked')
				if(tagTitle == 2){addSelectLi(that);}
				$sendCount.text(sendCount);
				checkIsSelect()
			}
		}
		return false;
	})
	//加载更多
	$patiList.on('click','.load-more',function(e) {
		e.stopPropagation();
@ -503,6 +480,29 @@ bindEvents = function () {
			}).catch(function(e){ console && console.error(e); plus.nativeUI.closeWaiting(); });
		return false;	
	})
	$patiList.on('click','li[data-patient-code]',function(e) {
		e.stopPropagation();
		var that = $(this)
		if(that.hasClass('checked')){
			that.find('.check-img').attr('src','../images/unchecked.png');
			that.removeClass('checked')
			if(tagTitle == 2){removeSelectLi(that);}
			$sendCount.text(sendCount);
			checkIsSelect()
		}else{
			if(sendCount == 200){
				mui.toast('选择居民不能超过200个')
				return
			}else{
				that.find('.check-img').attr('src','../images/checked_all.png');
				that.addClass('checked')
				if(tagTitle == 2){addSelectLi(that);}
				$sendCount.text(sendCount);
				checkIsSelect()
			}
		}
		return false;
	})
	//搜索功能
	$searchBtn.on('click',function(){
		historyList()