Commit 90f3adf6 authored by duxinyuan's avatar duxinyuan

baidu_send

parent ac71c5dd
......@@ -47,11 +47,17 @@
});
return false;
}
var source = 1 ;
if ( getUrlParam("source") ){
source = getUrlParam("source") ;
}
var params = {
'type' : type,
'phone' : number,
'source' : 1
'source' : source
}
console.log(source)
// var source = getUrlParam("source")
console.log(number);
$.get('/broker/addSpreadUser',params,function(data){
if (data.code == 200 ){
......@@ -79,6 +85,15 @@
})
})();
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = decodeURI(window.location.search).substr(1).match(reg);
if(r != null) return unescape(r[2]);
return null;
}
//$(document).ready(function(){
// console.log("12312312321")
// $.get('/broker/getVolume',function(data){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment