|
@@ -1051,6 +1051,7 @@ function collectClick() {
|
|
|
// console.log(vipState, '是否是超级订阅用户')
|
|
|
// 单个收藏点击事件
|
|
|
$('.icon-collect').on('click',function(e) {
|
|
|
+ baiduEvent('列表页标讯收藏-星标') // 百度统计代码
|
|
|
e.stopPropagation()
|
|
|
var $that = $(this)
|
|
|
var checked = $(this).hasClass('checked')
|
|
@@ -1102,7 +1103,7 @@ function collectClick() {
|
|
|
if (vipState || res.error_msg.indexOf('付费') > -1) {
|
|
|
toastFn('您的标讯收藏上限为5000条,请联系客服人员。', 1500)
|
|
|
} else {
|
|
|
- updateVipDialog()
|
|
|
+ updateVipDialog('标讯收藏满100条-去升级')
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -1110,6 +1111,7 @@ function collectClick() {
|
|
|
})
|
|
|
// 批量收藏
|
|
|
$('#bid-collect').off('click').bind('click',function(e){
|
|
|
+ baiduEvent('列表页标讯收藏-星标') // 百度统计代码
|
|
|
e.stopPropagation()
|
|
|
var top = (parseInt($(this).position().top) + 60 ) + 'px';
|
|
|
var len = $('.custom-checkbox:not(".check-all"):checked').length;
|
|
@@ -1172,7 +1174,7 @@ function collectClick() {
|
|
|
if (vipState || res.error_msg.indexOf('付费') > -1) {
|
|
|
toastFn('您的标讯收藏上限为5000条,请联系客服人员。', 1500)
|
|
|
} else {
|
|
|
- updateVipDialog()
|
|
|
+ updateVipDialog('标讯收藏满100条-去升级')
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -1183,18 +1185,36 @@ function collectClick() {
|
|
|
}
|
|
|
|
|
|
// 开通提醒弹框
|
|
|
-function openVipDialog() {
|
|
|
+function openVipDialog(str) {
|
|
|
$('.auth-dialog').show()
|
|
|
$('.auth-dialog .default-btn').click(function () {
|
|
|
$('.auth-dialog').hide(300)
|
|
|
})
|
|
|
+ $('.auth-dialog .confirm-btn').off('click').bind('click',function () {
|
|
|
+ var advName = '招标搜索' + str + '-去开通'
|
|
|
+ baiduEvent(advName) // 点击去开通事件 百度统计
|
|
|
+ window.open('/front/subscribe.html')
|
|
|
+ })
|
|
|
}
|
|
|
// 升级提醒弹框
|
|
|
-function updateVipDialog() {
|
|
|
+function updateVipDialog(str) {
|
|
|
$('.update-dialog').show()
|
|
|
$('.update-dialog .default-btn').click(function () {
|
|
|
$('.update-dialog').hide(300)
|
|
|
})
|
|
|
+ $('.update-dialog .confirm-btn').off('click').bind('click',function () {
|
|
|
+ baiduEvent(str) // 点击去升级事件 百度统计
|
|
|
+ window.open('/front/subscribe.html')
|
|
|
+ })
|
|
|
+}
|
|
|
+// 列表页收藏点击事件 百度统计
|
|
|
+function baiduEvent(name) {
|
|
|
+ console.log(name, 'name')
|
|
|
+ try {
|
|
|
+ _hmt.push(['_trackEvent', '超级订阅-pc', 'click', name]);
|
|
|
+ } catch (e) {
|
|
|
+ console.log('未初始化百度统计')
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// toast上限提示
|