Browse Source

修改预约挂号、预约记录没有登录时,页面空白问题(没有userAgen的问题)

lulihong 6 years ago
parent
commit
ada9bfb006
3 changed files with 24 additions and 10 deletions
  1. 10 5
      html/wdyy/html/yuyueguahao.html
  2. 10 5
      html/wdyy/html/yuyuejilu.html
  3. 4 0
      js/weixin_common.js

+ 10 - 5
html/wdyy/html/yuyueguahao.html

@ -10,11 +10,16 @@
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/app.js" ></script>
		<script>
			var userAgent = window.localStorage.getItem(agentName);
			if(userAgent){
				var jsonstr = $.parseJSON(userAgent);
				top.location.href = registrationServer+"/apiweb/tp.html?point=department&hospitalId="+hospitalId+"&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
			}
			var pagetype = 51;
			$(function(){
				var userAgent = window.localStorage.getItem(agentName);
				if(userAgent){
					var jsonstr = $.parseJSON(userAgent);
					top.location.href = registrationServer+"/apiweb/tp.html?point=department&hospitalId="+hospitalId+"&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
				}else{
					checkUserAgent();
				}
			})
		</script>
	</body>
</html>

+ 10 - 5
html/wdyy/html/yuyuejilu.html

@ -10,11 +10,16 @@
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/app.js" ></script>
		<script>
			var userAgent = window.localStorage.getItem(agentName);
			if(userAgent){
				var jsonstr = $.parseJSON(userAgent);
				top.location.href = registrationServer+"/apiweb/tp.html?point=ghjl&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
			}
			var pagetype = 52;
			$(function(){
				var userAgent = window.localStorage.getItem(agentName);
				if(userAgent){
					var jsonstr = $.parseJSON(userAgent);
					top.location.href = registrationServer+"/apiweb/tp.html?point=ghjl&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
				}else{
					checkUserAgent();
				}
			})
		</script>
	</body>
</html>

+ 4 - 0
js/weixin_common.js

@ -437,6 +437,10 @@ var pageUrl  = {
    "25":"../../yszd/html/guidance-detail.html?openid="+0+"&toUser="+toUsers+"&id="+curId+"&toName="+toName,
    // /**新的健康教育详情**/   
    "50":"../../jkjy/html/article2.html?dataId="+article+"&toUser="+toUsers+"&toName="+toName,
    //预约挂号
    "51": "../../wdyy/html/yuyueguahao.html",
    //预约记录
    "52": "../../wdyy/html/yuyuejilu.html",
///**签约管理首页**/  "-1":"../../qygl/html/signing-doctors.html",//签约管理首页
///**医生咨询首页**/     1:"../../yszx/html/doctor-consultation.html",
///**医生指导首页**/     3:"../../yszd/html/doctor-guidance.html",//医生指导首页