Browse Source

未登录时,点击模板消息跳转到新的登录页

lulihong 6 years ago
parent
commit
cd6dd40b2e

+ 2 - 2
html/grzx/js/change-login.js

@ -30,7 +30,7 @@ var scroller1 = new IScrollPullUpDown('wrapper',{
$(function(){
	$(".tips a").on("click", function () {
		window.location.href = server + "wx/html/home/html/zhmm-login.html?type=11&openid=" + openid;
		window.location.href = server + "wx/html/home/html/login.html?type=11&openid=" + openid;
	});
	// 判断是否登录
	checkUserAgent();
@ -252,7 +252,7 @@ function changeSuccesss(res) {
	// 				ok: function (){
	// 					var jsonstr = $.parseJSON(agentOpenid);
	// 				    var openid = jsonstr.openid;
	// 				    window.location.href = server + "wx/html/home/html/zhmm-login.html?type=11&openid=" + openid;
	// 				    window.location.href = server + "wx/html/home/html/login.html?type=11&openid=" + openid;
	// 				},
	// 				cancelValue: "不了,谢谢",
	// 				cancel: function () {

+ 1 - 1
html/jbsq/html/public-consult-detail.html

@ -76,7 +76,7 @@
	$(function(){
		if(!userAgent) {
			localStorage.setItem("toUser",toUser);
	        window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
	        window.location.href = server + "wx/html/home/html/login.html?type=" + pagetype + "&openid=" + openid;
			return false;	
		}
		var newUaObj = JSON.parse(window.localStorage.getItem(agentName))

+ 1 - 1
html/qygl/js/pay_flow.js

@ -19,7 +19,7 @@ var signInfo;
$(function(){
    //判断接收者是否是本人
    if(!userAgent) {
        window.location.href = server + "wx/html/home/html/zhmm-login.html?openid=" + openid+"&type="+pagetype;
        window.location.href = server + "wx/html/home/html/login.html?openid=" + openid+"&type="+pagetype;
        return false;
    }
    //判断是否可以在线支付

+ 1 - 1
html/qygl/js/signing-doctors.js

@ -97,7 +97,7 @@ wxInit= function(){
$(function(){
	wxInit();
	if(!userAgent) {
        window.location.href = server + "wx/html/home/html/zhmm-login.html?openid=" + openid+"&type="+pagetype;
        window.location.href = server + "wx/html/home/html/login.html?openid=" + openid+"&type="+pagetype;
        return false;
    }else{
    	queryInit();

+ 2 - 2
html/ssgg/js/doctor-homepage-new.js

@ -95,7 +95,7 @@ function handleBusiness(){
				localStorage.setItem("doccode",invitationState);
			}
			
			//window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
			//window.location.href = server + "wx/html/home/html/login.html?type=" + pagetype + "&openid=" + openid;
		}
		
		data = { doctor: doctor };
@ -576,7 +576,7 @@ function startSign() {
			if(!userAgent) {
				var params = JSON.stringify({doctor: doctor});
				localStorage.setItem("doccode",doctor);
				window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid+"&loginParams="+params;
				window.location.href = server + "wx/html/home/html/login.html?type=" + pagetype + "&openid=" + openid+"&loginParams="+params;
			}
			
			if(isQr != false) {

+ 1 - 1
html/survey/html/survey_info.html

@ -42,7 +42,7 @@
            localStorage.setItem("survey_id",dataId);
            if(!userAgent) {
                localStorage.setItem("toUser",toUser);
                window.location.href = server + "wx/html/home/html/zhmm-login.html?openid=" + openid+"&type=30";
                window.location.href = server + "wx/html/home/html/login.html?openid=" + openid+"&type=30";
                return false;
            }else{
                queryInit();

+ 1 - 1
html/wdyy/js/detail-appointment.js

@ -22,7 +22,7 @@ var pagetype = 23;
 		if(!userAgent) {
 			localStorage.setItem("toUser",toUser);
 			localStorage.setItem("id",id);
			window.location.href = server + "wx/html/home/html/zhmm-login.html?openid=" + openid+"&type=23";
			window.location.href = server + "wx/html/home/html/login.html?openid=" + openid+"&type=23";
			return false;	
		}
		var newUaObj = JSON.parse(window.localStorage.getItem(agentName))

+ 1 - 1
html/wdyy/js/my-appointment.js

@ -29,7 +29,7 @@ function queryInit(){
	var userAgent = window.localStorage.getItem(agentName);
		if(!userAgent) {
 			localStorage.setItem("toUser",toUser);
			window.location.href = server + "wx/html/home/html/zhmm-login.html?openid=" + openid+"&type="+pagetype;
			window.location.href = server + "wx/html/home/html/login.html?openid=" + openid+"&type="+pagetype;
			return false;	
		}
		var newUaObj = JSON.parse(window.localStorage.getItem(agentName))

+ 1 - 1
html/xuqian/js/information.js

@ -12,7 +12,7 @@ $(function(){
	var openid = Request["openid"];
	var represented = Request["represented"];
	if(!userAgent) {
        window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
        window.location.href = server + "wx/html/home/html/login.html?type=" + pagetype + "&openid=" + openid;
		return false;	
	}
	var newUaObj = JSON.parse(userAgent)

+ 1 - 1
html/yjfk/js/feedback.js

@ -72,7 +72,7 @@ function checkUserAgent(){
		else{
			var jsonstr = $.parseJSON(agentOpenid);
			var openid = jsonstr.openid;
			window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
			window.location.href = server + "wx/html/home/html/login.html?type=" + pagetype + "&openid=" + openid;
		}
	}
}

+ 1 - 1
html/yszd/js/guidance-detail_old.js

@ -23,7 +23,7 @@ $(function(){
	if(!userAgent) {
		localStorage.setItem("toUser",toUser);
		localStorage.setItem("id",id);
		window.location.href = server + "wx/html/home/html/zhmm-login.html?openid=" + openid+"&type="+pagetype;
		window.location.href = server + "wx/html/home/html/login.html?openid=" + openid+"&type="+pagetype;
		return false;
	}
	if(toUser){

+ 1 - 1
html/yszx/js/manyidu.js

@ -13,7 +13,7 @@ var pagetype = 0;
$(function() {
	if(!userAgent) {
		window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
		window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;	
		window.location.href = server + "wx/html/home/html/login.html?type=" + pagetype + "&openid=" + openid;	
		return false;
	}
	var newUaObj = JSON.parse(window.localStorage.getItem(agentName))