Commit ec7f373e authored by agping's avatar agping

修改

parent c81850a3
...@@ -256,6 +256,7 @@ ...@@ -256,6 +256,7 @@
$(".pbl_cha").click(function() { $(".pbl_cha").click(function() {
_fix_top.hide(); _fix_top.hide();
}); });
var _shangpuId = getUrlParam('id'); //从url获取的商铺id
var _name = getUrlParam('user_name'); var _name = getUrlParam('user_name');
var _name_img = getUrlParam('user_img'); var _name_img = getUrlParam('user_img');
var _tel = getUrlParam('user_tel'); var _tel = getUrlParam('user_tel');
...@@ -272,7 +273,9 @@ ...@@ -272,7 +273,9 @@
} }
//点击拨打 记录拨打次数 //点击拨打 记录拨打次数
$("#fix_tel").click(function() { $("#fix_tel").click(function() {
// if($.cookie("isCallShop") != 'yes'){ var time = localStorage.getItem(_shangpuId+"_"+_tel);
var nowTime = (new Date()).getTime();
if(!time || nowtime-time > 24*3600*1000){
$.ajax({ $.ajax({
url: '/api/recordCallNumShare', url: '/api/recordCallNumShare',
type: 'POST', type: 'POST',
...@@ -282,12 +285,10 @@ ...@@ -282,12 +285,10 @@
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
// $.cookie("isCallShop",'yes',{ expires: 1}); localStorage.setItem(_shangpuId+"_"+_tel,(new Date()).getTime());
} }
}); });
}
// }
}); });
$("#fix_area_bottom_btn").click(function() { $("#fix_area_bottom_btn").click(function() {
......
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