|
@@ -563,8 +563,8 @@ function isWechat() {
|
|
|
width="664"
|
|
|
trigger="hover">
|
|
|
<div slot="reference">
|
|
|
- <div class="cont-cont portrait_img" tip-data="查看采购单位画像">{{.T.obj.buyer}} </div>
|
|
|
- <div class="portrait_img only-text">{{if .T.obj.buyer}}立即查看{{end}}</div>
|
|
|
+ <div class="cont-cont portrait_img no-show-tip" tip-data="查看采购单位画像">{{.T.obj.buyer}} </div>
|
|
|
+ <div class="portrait_img only-text no-show-tip">{{if .T.obj.buyer}}立即查看{{end}}</div>
|
|
|
</div>
|
|
|
<div id="buyer-popover" class="portrait-popover">
|
|
|
<div class="bidconhistory">
|
|
@@ -624,7 +624,7 @@ function isWechat() {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bidfoot">
|
|
|
- <div class="bid_button_cancel bid_btn" @click="location.href='/swordfish/page_big_pc/unit_portrayal/{{.T.obj.buyer}}'">查看详情</div>
|
|
|
+ <div class="bid_button_cancel bid_btn" @click="window.open('/swordfish/page_big_pc/unit_portrayal/{{.T.obj.buyer}}')">查看详情</div>
|
|
|
<div class="bid_button_confirm bid_btn" @click="goCollect('article_buyer_portrait')">一键预约</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -678,7 +678,7 @@ function isWechat() {
|
|
|
<td class="tab-cont" style="position: relative;">
|
|
|
{{if or (or .T.isMember .T.isVip) .T.isEntniche }}
|
|
|
<div>
|
|
|
- {{if .T.isMember}}
|
|
|
+ <!-- {{if .T.isMember}}
|
|
|
{{if .T.isVip}}
|
|
|
<div class="cont-cont portrait_img" {{if .T.obj.entId}} href-data="/swordfish/page_big_pc/svip/ent_ser_portrait/{{.T.obj.entId}}" tip-data="查看企业画像"{{end}}>{{.T.obj.winner}}</div>
|
|
|
{{else}}
|
|
@@ -686,7 +686,8 @@ function isWechat() {
|
|
|
{{end}}
|
|
|
{{else}}
|
|
|
<div class="cont-cont portrait_img" {{if .T.obj.entId}} href-data="/swordfish/page_big_pc/svip/ent_ser_portrait/{{.T.obj.entId}}" tip-data="查看企业画像"{{end}}>{{.T.obj.winner}}</div>
|
|
|
- {{end}}
|
|
|
+ {{end}} -->
|
|
|
+ <div class="cont-cont portrait_img" {{if .T.obj.entId}} tip-data="查看企业画像"{{end}}>{{.T.obj.winner}}</div>
|
|
|
<div class="cont-recy" onclick="recoveryerr(this,'winner','')">纠错</div>
|
|
|
<div class="portrait_img only-text">{{if .T.obj.winner}}立即查看{{end}}</div>
|
|
|
<div style="display:none;"></div>
|
|
@@ -698,8 +699,8 @@ function isWechat() {
|
|
|
width="664"
|
|
|
trigger="hover">
|
|
|
<div slot="reference">
|
|
|
- <div class="cont-cont portrait_img">{{.T.obj.winner}} </div>
|
|
|
- <div class="portrait_img only-text">{{if .T.obj.winner}}立即查看{{end}}</div>
|
|
|
+ <div class="cont-cont portrait_img no-show-tip">{{.T.obj.winner}} </div>
|
|
|
+ <div class="portrait_img only-text no-show-tip">{{if .T.obj.winner}}立即查看{{end}}</div>
|
|
|
</div>
|
|
|
<div id="winner-popover" class="portrait-popover">
|
|
|
<div class="bidconhistory">
|
|
@@ -757,7 +758,7 @@ function isWechat() {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bidfoot">
|
|
|
- <div class="bid_button_cancel bid_btn" @click="location.href='/swordfish/page_big_pc/svip/ent_ser_portrait/{{.T.obj.entId}}'">查看详情</div>
|
|
|
+ <div class="bid_button_cancel bid_btn" @click="window.open('/swordfish/page_big_pc/svip/ent_ser_portrait/{{.T.obj.entId}}')">查看详情</div>
|
|
|
<div class="bid_button_confirm bid_btn" @click="goCollect('article_ent_portrait')">一键预约</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -854,7 +855,8 @@ function isWechat() {
|
|
|
success:function(res){
|
|
|
if(res && res.data) {
|
|
|
if (res.data.memberStatus <= 0 || res.data.power.indexOf(3) == -1) {
|
|
|
- window.isMember = false
|
|
|
+ window.isMember = false
|
|
|
+ window.memberStatus = res.data.memberStatus
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1557,12 +1559,13 @@ var IframeOnClick = {
|
|
|
},
|
|
|
// 采购单位画像、企业画像留资弹框
|
|
|
goCollect: function(source) {
|
|
|
+ $('.el-popover.el-popper').hide()
|
|
|
this.sourceLogAjax(source)
|
|
|
vm.isNeedSubmit(source, function() {})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- new Vue(bidNode)
|
|
|
+ var bidVue = new Vue(bidNode)
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
|
var oBox = document.getElementById("popup");
|
|
@@ -1828,7 +1831,8 @@ if (subtype != '拟建' && !isMember) {
|
|
|
$('.bigmember-slogan').show().find('.slogan-text').html(r.data.s_content)
|
|
|
// console.log(powerMap, 'map')
|
|
|
$('.bigmember-slogan .free-btn').click(function(){
|
|
|
- vm.isNeedSubmit('member_freeuse',function(){})
|
|
|
+ bidVue.sourceLogAjax('article_slogan')
|
|
|
+ vm.isNeedSubmit('article_slogan',function(){})
|
|
|
})
|
|
|
$('.bigmember-slogan .more-btn').click(function() {
|
|
|
var params = {
|
|
@@ -2518,7 +2522,7 @@ $(function(){
|
|
|
companyAdd();
|
|
|
|
|
|
//企业画像跳转
|
|
|
- $(".portrait_img").hover(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");
|
|
|
if (!tipMsg){
|
|
@@ -2527,10 +2531,48 @@ $(function(){
|
|
|
$(this).after("<div class='portrait_tip' style='display:none; position: absolute;top: -27px;right: -13px;background: rgba(0,0,0,0.72);border-radius: 4px;opacity: 1;color: #fff;font-size: 13px;line-height: 20px;padding: 6px 10px;'>"+tipMsg+"</div>")
|
|
|
}
|
|
|
}).on("click",function (){
|
|
|
- var toHref=$(this).attr("href-data") || $(this).parents('.tab-cont').children('.cont-cont.portrait_img').attr("href-data")
|
|
|
- if (toHref){
|
|
|
- window.open(toHref)
|
|
|
- }
|
|
|
+ var toHref=$(this).attr("href-data") || $(this).parents('.tab-cont').children('.cont-cont.portrait_img').attr("href-data")
|
|
|
+ var href1 = "/swordfish/page_big_pc/ent_portrait/{{.T.obj.entId}}"
|
|
|
+ var href2 = "/swordfish/page_big_pc/svip/ent_ser_portrait/{{.T.obj.entId}}"
|
|
|
+ var isMember = {{.T.isMember}} // 大会员
|
|
|
+ var isVip = {{.T.isVip}} // 超级订阅
|
|
|
+ if (isMember) {
|
|
|
+ // 如果是专家版、智慧版 跳大会员页面
|
|
|
+ if(window.memberStatus <=2) {
|
|
|
+ window.open(href1)
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ // 如果是商机版、自定义版
|
|
|
+ // 如果同时是超级订阅 判断有没有画像查看次数
|
|
|
+ if (isVip) {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "/bigmember/portrait/subVipPortrait/usage",
|
|
|
+ data: {
|
|
|
+ entId:{{.T.obj.entId}}
|
|
|
+ },
|
|
|
+ success: function(r){
|
|
|
+ // 如果次数已用完 跳大会员企业画像页面
|
|
|
+ if (r.data.usage >= r.data.total) {
|
|
|
+ window.open(href1)
|
|
|
+ } else {
|
|
|
+ // 没用完 超级订阅跳企业画像页面
|
|
|
+ window.open(href2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ // 不是超级订阅用户跳大会员企业画像页面
|
|
|
+ window.open(href1)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 非大会员用户跳超级订阅企业画像页面
|
|
|
+ window.open(href2)
|
|
|
+ }
|
|
|
+ // if (toHref){
|
|
|
+ // window.open(toHref)
|
|
|
+ // }
|
|
|
})
|
|
|
})
|
|
|
//
|