Commit ec7f373e authored by agping's avatar agping

修改

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