|
@@ -113,7 +113,6 @@ var bidNode = {
|
|
|
contentType: "application/json",
|
|
|
data:JSON.stringify(params),
|
|
|
success: function(res) {
|
|
|
- // console.log(res)
|
|
|
if(res.error_code == 0) {
|
|
|
if(res.data.all_counts == 0) {
|
|
|
_this.bidnum = _this.bidnum + 1
|
|
@@ -140,7 +139,6 @@ var bidNode = {
|
|
|
} else if (num > 1 && num < 10000) {
|
|
|
return num + '';
|
|
|
} else {
|
|
|
- // console.log(num/10000)
|
|
|
return (num / 10000).toFixed(2);
|
|
|
}
|
|
|
},
|
|
@@ -164,10 +162,7 @@ var bidNode = {
|
|
|
sourceLogAjax (source) {
|
|
|
$.ajax({
|
|
|
type: 'get',
|
|
|
- url: '/front/portraitClassify?source=' + source,
|
|
|
- success: function(res) {
|
|
|
- // console.log(res)
|
|
|
- }
|
|
|
+ url: '/front/portraitClassify?source=' + source
|
|
|
})
|
|
|
},
|
|
|
onlineQue: function() {
|
|
@@ -639,10 +634,8 @@ if (subtype != '拟建' && !isMember) {
|
|
|
url: "/publicapply/drainage/copywriting",
|
|
|
data: {subtype: subtype},
|
|
|
success: function(r){
|
|
|
- // console.log(r, 'rrrr')
|
|
|
if (r.data) {
|
|
|
$('.bigmember-slogan').show().find('.slogan-text').html(r.data.s_content)
|
|
|
- // console.log(powerMap, 'map')
|
|
|
$('.bigmember-slogan .free-btn').click(function(){
|
|
|
bidVue.sourceLogAjax('article_slogan')
|
|
|
vm.isNeedSubmit('article_slogan',function(){
|
|
@@ -756,7 +749,6 @@ $(window).scroll(function(event){
|
|
|
t1top = $(".tab1").offset().top;
|
|
|
}
|
|
|
}
|
|
|
- console.log(offsetTop, t1top, scrollTop)
|
|
|
if(t1top<=(scrollTop+65)&&t1top!=0){
|
|
|
if(scrollflag){
|
|
|
$(".tab1").addClass("active").siblings().removeClass("active");
|
|
@@ -1349,7 +1341,6 @@ $(function(){
|
|
|
$(".portrait_img:not(.no-show-tip)").hover(function (){
|
|
|
if (!$(this).next().hasClass("portrait_tip")){
|
|
|
var tipMsg=$(this).attr("tip-data") || $(this).parents('.tab-cont').children('.cont-cont.portrait_img').attr("tip-data");
|
|
|
- console.log(tipMsg)
|
|
|
if (!tipMsg){
|
|
|
tipMsg="暂无画像数据"
|
|
|
}
|
|
@@ -2373,7 +2364,7 @@ function showFileSomeDom () {
|
|
|
var isEntnicheNew = goTemplateData.params.isEntnicheNew
|
|
|
var isHasBuyer = goTemplateData.params.obj.buyer
|
|
|
var claimIds = ''
|
|
|
-console.log(isEntnicheNew, isHasBuyer)
|
|
|
+var claiming = false // 表示认领中,防抖开关
|
|
|
// 新商机管理用户是否认领该采购单位
|
|
|
function getClaimStatus() {
|
|
|
if (!isEntnicheNew || !isHasBuyer) return
|
|
@@ -2429,24 +2420,31 @@ function getClaimStatus() {
|
|
|
D: false,
|
|
|
label: lidArr.toString(),
|
|
|
industry: goTemplateData.params.obj.buyerclass
|
|
|
- }
|
|
|
+ }
|
|
|
console.log(params)
|
|
|
// 执行保存绑定标签操作
|
|
|
- if (params.name !== '') {
|
|
|
- confirmClaim(params, function(res) {
|
|
|
- if (res.data) {
|
|
|
- toastFn('认领成功', 1000)
|
|
|
- $('.claim').addClass('claim-yes').removeClass('claim-no').text('已认领')
|
|
|
- getClaimStatus()
|
|
|
- } else {
|
|
|
- toastFn(res.error_msg)
|
|
|
+ // claiming做节流操作,认领中的此处不在执行
|
|
|
+ if (params.name && !claiming) {
|
|
|
+ claiming = true
|
|
|
+ confirmClaim(
|
|
|
+ params,
|
|
|
+ function(res) {
|
|
|
+ if (res.data) {
|
|
|
+ toastFn('认领成功', 1000)
|
|
|
+ $('.claim').addClass('claim-yes').removeClass('claim-no').text('已认领')
|
|
|
+ getClaimStatus()
|
|
|
+ } else {
|
|
|
+ toastFn(res.error_msg)
|
|
|
+ }
|
|
|
+ $('#entNicheTags .tags-footer .button-cancel').trigger('click')
|
|
|
+ },
|
|
|
+ function () {
|
|
|
+ claiming = false
|
|
|
}
|
|
|
- $('#entNicheTags .tags-footer .button-cancel').trigger('click')
|
|
|
- })
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- // confirmClaim()
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -2454,7 +2452,7 @@ function getClaimStatus() {
|
|
|
})
|
|
|
}
|
|
|
// 新商机管理-认领采购单位
|
|
|
-function confirmClaim (params, callback) {
|
|
|
+function confirmClaim (params, callback, complete) {
|
|
|
if (!isEntnicheNew || !isHasBuyer) return
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
@@ -2467,6 +2465,9 @@ function confirmClaim (params, callback) {
|
|
|
} else {
|
|
|
console.log(res.error_msg)
|
|
|
}
|
|
|
+ },
|
|
|
+ complete: function () {
|
|
|
+ complete && complete()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -2504,7 +2505,6 @@ $(function() {
|
|
|
clearInterval(timer)
|
|
|
timer = setInterval(() => {
|
|
|
if (window.isLogin) {
|
|
|
- //console.log(window.vipStatus, window.isFree,window.freeFile,window.viper, window.entniche, window.memberStatus,window.memberPower,'11')
|
|
|
showFileSomeDom()
|
|
|
clearInterval(timer)
|
|
|
}
|