//url加密方式
window.location.href = url+'?'+btoa(encodeURIComponent('username='+username+'&tel='+tel+'&idcard='+idcard+'&openId='+openId+'&latitude='+latitude+'&longitude='+longitude));
//url解密方式
function GetRequset(localUrl) {
console.log(localUrl);
var url = localUrl;
var addressParameter = {};
if(url.indexOf("?") != -1) {
var str;
if (url.indexOf("=") != -1) {
str = url.substr(1, url.indexOf("=") - 1);
} else {
str = url.substr(1);
}
console.log(str)
var addressUrl = decodeURIComponent(atob(str));
console.log(addressUrl);
var addressData = addressUrl.split('&');
for (var i = 0; i < addressData.length; i++) {
addressParameter[addressData[i].split("=")[0]] = unescape(addressData[i].split("=")[1]);
}
}
return addressParameter
}