Browse Source

修复测试bug

linehang 6 years ago
parent
commit
bd322bdb0e

+ 2 - 2
html/home/html/home2.html

@ -24,7 +24,7 @@
            			<div class="pic"><img id="doc_photo" src="" alt="医生头像" /></div>
            			<div class="name">
            				<span id="doc_name" class="tit1"></span>
							<span id="doc_type" class="tit2"></span>
							<span id="doc_type" class="tit2" style="display: none;"></span>
            			</div>
            		</div>
            		<ul class="nav-list" id="sign_amount">
@ -42,7 +42,7 @@
            			</li>
            		</ul>
            		
            		<div id='div-saoma'>
            		<div id='div-saoma' style="display: none;">
						<img style="width: 35px;" src='../images/saomiao_icon.png'> 
					</div>
            		<div class="nav-icon" id='qiehuan'>

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

@ -78,11 +78,11 @@
		var flag = isMultiRole();
		var docInfo = JSON.parse(plus.storage.getItem("docInfo"));
		if(docInfo.level==3){//登录者是健康管理师
			if(flag){
				$('#div-saoma').addClass("abs-right60").show();
			}else{
				$('#div-saoma').addClass("abs-right10").show();
			}
//			if(flag){
//				$('#div-saoma').addClass("abs-right60").show();
//			}else{
//				$('#div-saoma').addClass("abs-right10").show();
//			}
		}
	}
	

+ 9 - 2
html/qygl/html/concern-message.html

@ -31,9 +31,15 @@
				font-size: 20px;
			}
			
			.cl-canbals {
			/*.c-list>li:first-child,
			.c-list>.c-border-t:first-child,
			.c-list>li:first-child .c-border-t,
			.c-list>.c-list-function:first-child,
			.c-list>.c-list-function:first-child .c-list-info,
			.c-list>div:first-child .c-border-t,
			.c-list>div:first-child {
				background: #fff;
			}
			}*/
			
			.c-list>li:first-child,
			.c-list>.c-border-t:first-child,
@ -44,6 +50,7 @@
			.c-list>div:first-child,
			.new-msg {
				background: url('../../../images/new_icon.png') no-repeat;
				background-color: #fff;
				background-size: 35px 35px;
				-webkit-background-size: 35px 35px;
				-moz-background-size: 35px 35px;

+ 12 - 6
html/qygl/js/concern-info.js

@ -7,6 +7,7 @@ mui.plusReady(function(){
    concernCode = self.concernCode;
    setMessageRead();
    getTemplateHelper();
    backParent();
});
function setMessageRead(){
@ -17,18 +18,23 @@ function setMessageRead(){
    sendPost(url, params, null, function(res){
        if(res.status == 200){
            getInfo();
            var self = plus.webview.currentWebview(),
                opener = self.opener();
            if(opener){
                console.log("fire refresh");
                mui.fire(opener, "refreshMessage");
            }
        }else{
            mui.toast(res.msg);
        }
    }, 'POST', '', true)
}
function backParent(){
	var old_back = mui.back;
	mui.back = function() {
	    var self = plus.webview.currentWebview();
		if(self.opener && self.opener()){
			mui.fire(self.opener(), "refreshMessage");
		}
		old_back();
	}
}
function getInfo(){
    var url = "/doctor/concern/findByCode",
        params = {

+ 4 - 3
html/qygl/js/concern-message.js

@ -1,6 +1,7 @@
var lastId = 0,
var lastId = 0,selt
    pageSize = 10;
mui.plusReady(function(){
	self = plus.webview.currentWebview();
    getMessageList(true);
    bindEvents();
    initScroller();
@ -33,8 +34,8 @@ function getMessageList(isInit){
                    mui(".mui-scroll-wrapper").pullRefresh().endPullupToRefresh(false);
                }
            }else{
                if(isInit){
                    $("#messgeList").empty().hide();
                if(isInit && list.length < pageSize){
                    $(document.getElementById("messageList")).html("").hide();
                    $("#wushuju").show();
                }else{
                    mui(".mui-scroll-wrapper").pullRefresh().endPullupToRefresh(true);