新产品火狐

This commit is contained in:
“wanyongkang”
2021-04-28 08:48:56 +08:00
parent dfc7a6a1c1
commit 403b1663c7
11 changed files with 842 additions and 124 deletions

View File

@@ -27,4 +27,34 @@
$("#coupon_num").text(res.Data.length);
}
})
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
var is_realname = getQueryString('realname');
if(is_realname){
let data = {
cookie:document.cookie
}
$.ajax({
type: 'POST',
url: 'http://php-api.juip.com/api/test/aliGetResult',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(data),
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
}
});
}
</script>