Browse Source

修改首页样式

lulihong 6 years ago
parent
commit
5a47fc2f77

+ 3 - 0
html/home/css/huanzhe.css

@ -197,3 +197,6 @@
.mb-icon-round.orange{border: solid 1px #FFc691;color: #FFc691;}
.mb-icon-round.green{border: solid 1px #06bf04;color: #06bf04;}
.mb-icon-flex{display: flex;display: -webkit-flex;justify-content: flex-end;-webkit-justify-content: flex-end;align-items: center;-webkit-align-items: center;}
#group_label_list { padding: 15px 0px ; background-color: #FFF;}
#group_label_list .group-item img,.group-qytx img { display: block; width: 30px; height: 30px; margin: 0 auto; }
#group_label_list .group-item .item-label,.group-qytx .item-label { margin-top: 5px; color: #323232; font-size: 14px; font-weight: bold; width: 100%; text-align: center; }

+ 1 - 1
html/home/html/home2.html

@ -73,7 +73,7 @@
						</div>
						<div class="right fr">
							<div class="bottom patient-type" data-type="14">
								<p>最新人数</p>
								<p>普通人群</p>
								<p id="other_amount">(0人)</p>
							</div>
						</div>

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

@ -32,9 +32,15 @@
							搜索居民
						</div>
					</div>
					<div id="group_label_list">
						 <ul class="c-blocks-4">
					        <li class="group-item" data-type="3" style="width:20%"><img src="../images/jibingleixing_icon.png"></img><div class="item-label">疾病类型</div></li>
					        <li class="group-item" data-type="4" style="width:20%"><img src="../images/icon_tuanduibiaoqian.png"></img><div class="item-label">自定义标签</div></li>
					    </ul>
					</div>
					<!--<ul class="n-list" id="pati_list">
					</ul>-->
					<div id="groupList"></div>
					<div id="groupList" class="mt10"></div>
				</div>
			</div>
		</div>

+ 5 - 25
html/home/js/home2.js

@ -84,7 +84,7 @@
	
	function load(){
		getSignCount();		//签约、待签约数量
//		getPatiTypeAmount();//病种人群数量
		getPatiTypeAmount();//病种人群数量
		updateBadgeNumber(); //刷新应用角标数字
//		getGroupMsgCount(); // 获取讨论组总数
@ -106,30 +106,10 @@
		var params = {};
		sendGet(postUrl, params, null, function(res) {
			if(res.status == 200) {
				var allAmount   = 0;
				var useAmount   = 0;
				var otherAmount = 0;
				$.each(res.data, function(i, v) {
					if(v.labelCode == 1){//普通人群
						document.getElementById("normal_amount").innerText = "( "+ v.amount +" 人)";
						useAmount = useAmount + v.amount;
					}
					if(v.labelCode == 3){//老年人
						document.getElementById("old_amount").innerText = "( "+ v.amount +" 人)";
						useAmount = useAmount + v.amount;
					}
					if(v.labelCode == 4){//高血压
						document.getElementById("hypertension_amount").innerText = "( "+ v.amount +" 人)";
						useAmount = useAmount + v.amount;
					}
					if(v.labelCode == 5){//糖尿病
						document.getElementById("diabetes_amount").innerText = "( "+ v.amount +" 人)";
						useAmount = useAmount + v.amount;
					}
					allAmount = allAmount + v.amount;//总人数
				});
				otherAmount = allAmount - useAmount;//其他的人数
				document.getElementById("other_amount").innerText = "( "+ otherAmount +" 人)";
				var data = res.data;  
				document.getElementById("hypertension_amount").innerText = "( "+ data[0].amount +" 人)";
				document.getElementById("diabetes_amount").innerText = "( "+ data[1].amount +" 人)";
				document.getElementById("other_amount").innerText = "( "+ data[2].amount +" 人)";
			} else {
				console.error(res.msg);
			}

+ 17 - 0
html/home/js/huanzhe.js

@ -12,6 +12,8 @@ var baseInfo = null,
var $searchbarInput = $('.searchbar .search-input'),
	// 搜索无结果时显示
	$noResultWrap = $('#no_result_wrap'),
	// 页面顶部分类标签列表(四个列表项)
	$groupLabelList = $('#group_label_list'),
	patientInfo = null;
// 获取基本信息(包括userAgent、上个页面传递的数据)
@ -183,6 +185,21 @@ bindEvents = function () {
	    initPatientListByGroup(code, false);
	});
	
	$groupLabelList.on('tap',"li.group-item",function() {
		if($(this).attr("data-type")=="3"){
			 openWebview("../../huanzhe/html/biaoqianguanli.html",{
	            teamCode: docInfo.adminTeamCode
	        });
		}
		openWebview("../../huanzhe/html/huanzhe-by-type.html",{
			type: self.type,
			accessData: {
				labelType: $(this).attr("data-type"),
				typeName: $(this).find(".item-label").text()
			},
			message: baseEnv.webview.message});
	})
	
	$searchbarInput.on('tap',function() {
		mui.openWindow({
			id: "searchhuanzhe2",