raolu 6 年 前
コミット
f644ea5b9c
2 ファイル変更8 行追加4 行削除
  1. 2 2
      html/home/html/huanzhe.html
  2. 6 2
      html/home/js/huanzhe.js

+ 2 - 2
html/home/html/huanzhe.html

@ -69,14 +69,14 @@
			{{each list as value j}}
			<li class="n-list-link list-arrow-r n-list-cover" data-patient-code="{{value.code}}" data-patient-phone="{{value.phone}}" data-patient-address="{{value.address}}">
				<div class="patient-face patient-face-new">
					<img src="{{value.photo}}"> 
					<img src="{{value.photo | getPhoto}}"> 
				</div>
				<div class="n-list-info">
					<h4 class="c-nowrap c-f16 mt5">{{value.name}}
						<em class="mb-em">({{value.sex | setSex}} {{value.age | setAge}}岁 )</em>
					</h4>
					<div class="mj-flex">
						{{if value.isWX}}
						{{if value.openid}}
						<img class="weixin-icon" src="../../../images/weixing_icon2.png"/>
						{{else}}
						<img class="weixin-icon" src="../../../images/weixing_zihui_icon.png"/>

+ 6 - 2
html/home/js/huanzhe.js

@ -68,7 +68,7 @@ initPatientListByGroup = function(code, isInit) {
	        labelCode: code,
	        teamCode: docInfo.adminTeamCode,
	        page: pages[code],
	        pagesize: 50
	        pagesize: 20
	    };
	sendGet(url, params, null, function(res){
	    if(res.status == 200){
@ -83,7 +83,7 @@ initPatientListByGroup = function(code, isInit) {
                    $(".n-list[data-group="+code+"]").append(html);
                }
                
                if(list.length < 50){
                if(list.length < 20){
                    $(".group-item[data-group="+code+"]").find(".load-more").hide();
                }else{
                    pages[code] ++;
@ -249,3 +249,7 @@ function setSex(s) {
	}
}
template.helper("setSex", setSex);
template.helper("getPhoto", function(str){
    return getImgUrl(str);
})