Commit 26f07315 authored by agping's avatar agping

商铺详情 优化

parent fa6d8e24
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
var nowTime = (new Date()).getTime(); var nowTime = (new Date()).getTime();
if(!time || nowTime-time > 24*3600*1000){ if(!time || nowTime-time > 24*3600*1000){
$.ajax({ $.ajax({
url: '/api/recordCallNumShare', url: '/api/addUserCallAgentV2',
type: 'POST', type: 'POST',
async: true, async: true,
data: { data: {
...@@ -286,10 +286,17 @@ ...@@ -286,10 +286,17 @@
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
localStorage.setItem(_shangpuId+"_"+_tel,(new Date()).getTime());
} }
}); });
}
});
$("#fix_tel").click(function() {
var time = localStorage.getItem(_tel+"_"+_shangpuId);
var nowTime = (new Date()).getTime();
if(!time || nowTime-time > 24*3600*1000){
$.ajax({ $.ajax({
url: '/api/addUserCallAgentV2', url: '/api/recordCallNumShare',
type: 'POST', type: 'POST',
async: true, async: true,
data: { data: {
...@@ -297,12 +304,11 @@ ...@@ -297,12 +304,11 @@
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
localStorage.setItem(_shangpuId+"_"+_tel,(new Date()).getTime()); localStorage.setItem(_tel+"_"+_shangpuId,(new Date()).getTime());
} }
}); });
} }
}); });
$("#fix_area_bottom_btn").click(function() { $("#fix_area_bottom_btn").click(function() {
_fix_bottom.hide(); _fix_bottom.hide();
}); });
......
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