Selaa lähdekoodia

Merge branch 'dev4.5.2' of http://127.0.0.1:8080/qmx/jy into dev4.5.2

xgwangman 4 vuotta sitten
vanhempi
commit
514e3f795a

+ 15 - 3
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_portrait.js

@@ -116,7 +116,8 @@ var vNode = {
             entvisit: {
                 total: 0, // 本月画像次数总量
                 usage: 0, // 本月已使用次数
-                provin: 0 // 购买省份数量
+                provin: 0, // 购买省份数量
+                visited: false // 是否查看中标信息
             }
         }
     },
@@ -180,8 +181,11 @@ var vNode = {
                             console.log('获取企业中标动态...')
                         }
                         if(_this.powerInfo.memberStatus <= 0) {
-                            // 不是大会员时才请求访问量接口
-                            _this.getEntVisits()
+                            // 不是大会员点击中标信息使用次数加一
+                            if(!_this.entvisit.visited) {
+                                _this.entvisit.usage++
+                                _this.entvisit.visited = true
+                            }
                         }
                         _this.gotTab2 = true
                     }
@@ -207,6 +211,10 @@ var vNode = {
         }
     },
     methods: {
+        // 点击去开通记住tab栏下标
+        tabActive: function(data) {
+            this.savePageState()
+        },
         showToast: function (message) {
             this.$toast({
                 duration: 1500,
@@ -298,6 +306,9 @@ var vNode = {
             $.ajax({
                 type: "POST",
                 url: "/bigmember/portrait/subVipPortrait/usage",
+                data: {
+                    entId: _this.entInfo.id
+                },
                 success: function (res) {
                     console.log(res)
                     if(res.error_code == 0) {
@@ -486,6 +497,7 @@ var vNode = {
                             } else {
                                 _this.entInfo.followSearchFinish = true
                                 _this.entInfo.entExist = false
+                                _this.getEntVisits()
                             }
                             _this.singleTab = false
                         }

+ 3 - 3
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js

@@ -226,12 +226,12 @@ var mine = {
                     if (res.data.memberStatus <= 0) {
                       // 大会员和免费用户不显示企业画像记录菜单
                       if(res.data.vipStatus > 0 && res.data.viper ) {
-                        $('#ent-follow-history').show()
+                        $('.ent-follow-history').show()
                       } else {
-                        $('#ent-follow-history').hide()
+                        $('.ent-follow-history').hide()
                       }
                     } else {
-                      $('#ent-follow-history').hide()
+                      $('.ent-follow-history').hide()
                     }
                     if ($.isArray(res.data.power)) {
                         pageUserInfo.power = res.data.power

+ 8 - 8
src/jfw/modules/app/src/web/templates/big-member/page_ent_portrait.html

@@ -255,13 +255,13 @@
                     </div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:9.16rem;background:url('/common-module/collection/image/bg/vip_bg_1.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_1" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_1.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_1" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_1.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card cell-list history-list" v-if="conf._4 && tabActiveName == '2' && !getStatus">
                     <hispro-component type="winner" :id="entInfo.id"></hispro-component>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.36rem;background:url('/common-module/collection/image/bg/vip_bg_9.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_9" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_9.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_9" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_9.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts" v-if="conf._4 && tabActiveName == '2' && annualData.rows.length !== 0 && !getStatus">
                     <div class="tab-card-title">年度项目统计</div>
@@ -280,7 +280,7 @@
                     <div class="tab-card-tip">注:项目金额指所有项目的中标金额之和,少数缺失的中标金额,用项目预算补充。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.12rem;background:url('/common-module/collection/image/bg/vip_bg_2.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_2" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_2.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_2" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_2.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts"  v-if="conf._4 && tabActiveName == '2' && monthZbData.rows.length !== 0 && !getStatus">
                     <div class="tab-card-title">月度中标金额统计</div>
@@ -296,7 +296,7 @@
                     <div class="tab-card-tip">注:少数缺失的中标金额,用项目预算补充。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:10.8rem;background:url('/common-module/collection/image/bg/vip_bg_3.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_3" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_3.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_3" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_3.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts" v-if="conf._4 && tabActiveName == '2' && mapChartData.rows.length !== 0 && !getStatus">
                     <div class="tab-card-title">市场区域分布</div>
@@ -312,7 +312,7 @@
                     </div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:10.56rem;background:url('/common-module/collection/image/bg/vip_bg_4.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_4" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_4.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_4" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_4.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts"  v-if="conf._4 && tabActiveName == '2' && rateData.rows.length !== 0 && !getStatus">
                     <div class="tab-card-title">各类客户平均折扣率</div>
@@ -328,7 +328,7 @@
                     <div class="tab-card-tip">注:平均折扣率=(全部项目预算-全部中标金额)/全部项目预算,是指价格减让部分与原价的比率,仅统计预算和中标金额同时存在的项目。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.24rem;background:url('/common-module/collection/image/bg/vip_bg_5.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_5" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_5.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_5" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_5.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts"  v-show="conf._4 && tabActiveName == '2' && entPortraitInfo.top10 && entPortraitInfo.top10.length != 0 && !getStatus">
                     <div class="tab-card-title">客户类型分布</div>
@@ -338,7 +338,7 @@
                     <div class="tab-card-tip">注:各客户类型占比以中标金额计算,最多展示占比排名前十的客户类型。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.92rem;background:url('/common-module/collection/image/bg/vip_bg_6.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_6" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_6.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_6" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_6.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card customers client"  v-show="conf._4 && tabActiveName == '2' && importantCustomers.length !== 0 && !getStatus">
                     <div class="tab-card-title">重点客户</div>
@@ -368,7 +368,7 @@
                     </div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:10.8rem;background:url('/common-module/collection/image/bg/vip_bg_7.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_7" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_7.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_7" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_7.png'></vip-component>
                 </div>
             </van-tab>
         </van-tabs>

+ 5 - 1
src/jfw/modules/app/src/web/templates/big-member/page_ent_portrait_change.html

@@ -29,6 +29,9 @@
         background-size: 100% 100%;
         box-sizing: border-box;
     }
+    .bigVip_com{
+        display: none;
+    }
 </style>
 <body>
 <div class="j-container">
@@ -38,7 +41,7 @@
             <div class="j-img img-empty empty-img"></div>
             <p class="empty-text">暂无企业情报历史记录</p>
         </div>
-        <div class="vip_component" v-if="!getStatus" style="height:100%;background:url('/common-module/collection/image/bg/vip_bg_8.png') no-repeat;background-size:100% 100%">
+        <div class="vip_component bigVip_com" v-if="!getStatus" style="height:100%;background:url('/common-module/collection/image/bg/vip_bg_8.png') no-repeat;background-size:100% 100%">
             <vip-component type="item_8" :vipststus="vipststus" :entvisit="entvisit" imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_8.png'></vip-component>
         </div>
         <ul class="ent-change-list" v-else key="changeList">
@@ -141,6 +144,7 @@ var vNode = {
                         if (power.indexOf(12) != -1) {
                             // 获取企业情报历史记录-12
                             _this.conf._12 = true
+                            $('.bigVip_com').css({'display':'flex'})
                         }
                     }
                 }

+ 7 - 3
src/jfw/modules/app/src/web/templates/weixin/search/tabSearch.html

@@ -610,9 +610,13 @@
                                         <p>开通超级订阅,全国企业随手查,<br>搜索信息更高效!</p>
                                     </div>
                                     <div class="condition-select-group" :class="{more: isMoreSelect}" v-show="!isWaitBuy && conditionMap[activeTabIndex]">
-                                        <div class="condition-select-item" @click="onSelectItem(item, activeTabIndex)" v-for="(item,i) in conditionMap[activeTabIndex]" :class="{checked: item.checked}">
-                                            <div>@@item.title@@</div>
-                                            <i v-if="!isMoreSelect" class="j-icon base-icon icon-tick"></i>
+                                        <div class="condition-select-item" @click="onSelectItem(item, activeTabIndex)" v-for="(item,i) in conditionMap[activeTabIndex]" :class="{checked: item.checked, 'disabled': item.disabled}">
+                                            <div class="row-item-group">
+                                                <span>@@item.title@@</span>
+                                                <div v-if="item.tag" class="tip-tag">@@item.tag@@</div>
+                                            </div>
+                                            <div class="disabled-tag" v-if="item.disabled === true">开通</div>
+                                            <i v-else-if="!isMoreSelect" class="j-icon base-icon icon-tick"></i>
                                             <div class="more-icon-box" v-else>
                                                 <i  class="j-icon base-icon icon-tick-circle"></i>
                                                 <i  class="j-icon base-icon icon-tick-circle-fill"></i>

+ 1 - 1
src/jfw/modules/common/src/qfw/util/jy/subvipPortrait.go

@@ -80,7 +80,7 @@ func (this *BigVipBaseMsg) GetPortraitRecord(mysql *mysql.Mysql, year, month, pa
 			return
 		}
 	}
-	res := mysql.Query(fmt.Sprintf("select ent_id from %s where user_id =? and year(create_time)=? and month(create_time)=? order by create_time limit ?,?",
+	res := mysql.Query(fmt.Sprintf("select ent_id from %s where user_id =? and year(create_time)=? and month(create_time)=? order by create_time desc limit ?,?",
 		PortraitRecordTable), this.Uid, year, month, pageNum*pageSize, pageSize)
 	if res == nil {
 		return

+ 3 - 1
src/web/staticres/common-module/collection/css/index.css

@@ -852,7 +852,9 @@
 
 
 /* 企业画像历史项目联系人 */
-
+.history-list .project-info-item{
+    padding: .24rem 0;
+}
 .history-list .project-info-item .his-pro-title{
     width: 100%;
     font-size: .28rem;

+ 7 - 4
src/web/staticres/common-module/collection/js/date-mobile.js

@@ -307,11 +307,13 @@ var dateComponent = {
           t.start = t.end - durations.day30
           break
         }
+        // 最近一年
         case 'lastYear': {
-          const year = new Date(t.end).getFullYear()
-          const lastYear = year - 1
-          t.start = +new Date(`${lastYear}`)
-          t.end = +new Date(`${year}`) - durations.hour1 * 8 - 1
+          const year = new Date().getTime()
+          console.log(year)
+          const lastYear = year - 60 * 60 * 1000 * 24 * 30 * 12
+          t.start = +lastYear
+          t.end = year
           break
         }
         default: {
@@ -320,6 +322,7 @@ var dateComponent = {
           break
         }
       }
+      console.log(t)
       return t
     },
     selectFixedDate: function(item) {

+ 15 - 3
src/web/staticres/common-module/collection/js/ent_portrait.js

@@ -114,7 +114,8 @@ var vNode = {
             entvisit: {
                 total: 0, // 本月画像次数总量
                 usage: 0, // 本月已使用次数
-                provin: 0 // 购买省份数量
+                provin: 0, // 购买省份数量
+                visited: false // 是否查看中标信息
             }
         }
     },
@@ -179,8 +180,11 @@ var vNode = {
                             console.log('获取企业中标动态...')
                         }
                         if(_this.powerInfo.memberStatus <= 0) {
-                            // 不是大会员时才请求访问量接口
-                            _this.getEntVisits()
+                            // 不是大会员点击中标信息使用次数加一
+                            if(!_this.entvisit.visited) {
+                                _this.entvisit.usage++
+                                _this.entvisit.visited = true
+                            }
                         }
                         _this.gotTab2 = true
                     }
@@ -206,6 +210,10 @@ var vNode = {
         }
     },
     methods: {
+        // 点击去开通记住tab栏下标
+        tabActive: function(data) {
+            this.savePageState()
+        },
         showToast: function (message) {
             this.$toast({
                 duration: 1500,
@@ -298,6 +306,9 @@ var vNode = {
             $.ajax({
                 type: "POST",
                 url: "/bigmember/portrait/subVipPortrait/usage",
+                data: {
+                    entId: _this.entInfo.id
+                },
                 success: function (res) {
                     console.log(res)
                     if(res.error_code == 0) {
@@ -486,6 +497,7 @@ var vNode = {
                             } else {
                                 _this.entInfo.followSearchFinish = true
                                 _this.entInfo.entExist = false
+                                _this.getEntVisits()
                             }
                             _this.singleTab = false
                         }

+ 21 - 19
src/web/staticres/common-module/collection/js/keyword-mobile.js

@@ -121,29 +121,31 @@ var keywordComponent = {
           if(res && res.userData) {
             let maxarr = []
             if(_this.isvip) {
-              let data = res.userData.o_vipjy.a_items
-              data.forEach(function(item,index) {
-                let minarr = []
-                let keyname = item.s_item
-                let eachArr = item.a_key
-                eachArr.forEach(function(data, i){
-                  data = {
-                    name: data.key[0],
+              if(res.userData && res.userData.o_vipjy) {
+                let data = res.userData.o_vipjy.a_items
+                data.forEach(function(item,index) {
+                  let minarr = []
+                  let keyname = item.s_item
+                  let eachArr = item.a_key
+                  eachArr.forEach(function(data, i){
+                    data = {
+                      name: data.key[0],
+                      type: false
+                    }
+                    minarr.push(data)
+                  })
+                  let obj = {
+                    [keyname]: minarr,
                     type: false
                   }
-                  minarr.push(data)
+                  maxarr.push(obj)
                 })
-                let obj = {
-                  [keyname]: minarr,
-                  type: false
+                _this.tablist = maxarr
+                if(maxarr.length == 0) {
+                  _this.active = 0
+                }else {
+                  _this.active = 1
                 }
-                maxarr.push(obj)
-              })
-              _this.tablist = maxarr
-              if(maxarr.length == 0) {
-                _this.active = 0
-              }else {
-                _this.active = 1
               }
             } else {
               let initArr = [

+ 2 - 0
src/web/staticres/common-module/collection/js/vip-dialog.js

@@ -140,6 +140,8 @@ var vipComponent = {
       }
     },
     goOpen: function() {
+      // 点击按钮保存tabActiveName值
+      this.$emit('tabactive', 'save')
       let isWeixin = utils.isWeiXinBrowser
       if(!isWeixin) {
         if (this.btnText == '去开通') {

+ 7 - 3
src/web/staticres/common-module/keep-tags/keep-tags-template.js

@@ -14,6 +14,9 @@ var tempStyleComponent = `<style>
         background-position: center;
         background-size: contain;
     }
+    .van-toast {
+        z-index: 9999999 !important;
+    }
     .icon-corner-mark {
         background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKUSURBVHgB7ZdPaxNBGIffmYS2aqBRKkWxur2lLWJy0HtbBY/6AfzTa3vQb6AeBA9CBbF4FLx4M54EQVZPCj3EeDF4MQepFkXXUqXYdqbzbrtlu53p7sxOsnvoc8lMZpY8eZN3frsA++yTXyovGw6BnIOStJe6uRYdfdWokiJ1OUCZQk6puM1rgSTOc1nREbd5g3B4EH4vdxUddZu3opJIriqKksDhtmwtN6Jj7sdZzvlN1Xrmos7zRvlguTALnF/fa1+mor5kP3XFsBq3NzPR4CAXQyfJ/kxEdSWRrouaSCJdFQ1HImjStQM/Gom6dKWiskjUpeMVVUWiLh2t6F6RqEvHROMiURfrokkjMUqldACW1tZhYeW/dL0AFglF4kWd62acQbg/dhKuDg3AspBtLv3btcdaM+FBLiQbkCC3ISI5PTy4PZ842i/dZ0XUNG2ikkj92y/p3tSiNiUftReh/v23dH+qZjKNRJXk3JdF5TXGzYSRSCl5hpLH+3rg4elTcHdkCIj46vPeX7ApaSyKkUg5PBbDPpxfOTEAl44d8dfOlktKWVNJgactuhWJ96LvB6Iq2RSSItzIey1RVSQurKz6r+cOl0Amm0Zyy/RF4mZKEonTQmgmIjTvLfvSxpICts7GY0V1I1Emm0ZSNGv708SZ4SLESWIkcp44bebamxIyWV1JX5SzO/iq/I/iQd5ziL7DIWgSNFH4P2skKarZmqxO4biokjRJmzBYWbwTwtPg9Y8/8PTrT9DE44SNBxPSCUkbrDF2+fP5Wj2Y78h6jMRCr38H5EB2eIyzqbAksi2a9inRBuKzPzDCaq3J2pPomv/T23hKTAM2DXa3TDCA2HwA08ATekKOv+UM6q0LtTdxF2wAr7U5snLQCTUAAAAASUVORK5CYII=);
     }
@@ -284,7 +287,7 @@ Vue.component('keep-component', {
             </div>
             <div class="kee-component-content">
                 <div class="keep-component-input-group">
-                    <input v-model.trim="tagInput" type="text" placeholder="请输入标签">
+                    <van-field maxlength="6" v-model.trim="tagInput" type="text" placeholder="请输入标签"></van-field>
                     <van-button v-show="isAddLoading || getOnlyStatus" @click="addTag" :loading="isAddLoading"  type="primary">添加并使用</van-button>
                 </div>
                 <div v-show="!isGetTagsLoading" class="keep-component-tag-group">
@@ -394,7 +397,7 @@ Vue.component('keep-component', {
               title: v.lanme,
               checked: false
             }
-          })
+          }).reverse()
         }
       })
     },
@@ -512,6 +515,7 @@ Vue.component('keep-component', {
     },
     toggleTagStatus (item) {
       if (this.getSelectLength && !item.checked) {
+        this.$toast('最多选择三个标签')
         return
       }
       item.checked = !item.checked
@@ -543,7 +547,7 @@ Vue.component('keep-component', {
     addTagInList (id) {
       var tempInput = this.tagInput
       this.tagInput = ''
-      this.tags.push({
+      this.tags.unshift({
         lid: id,
         title: tempInput,
         checked: !this.getSelectLength

+ 1 - 1
src/web/templates/frontRouter/pc/collection/sess/index.html

@@ -275,7 +275,7 @@
                 top="25vh"
                 width="30%">
                 <span v-if="tagDrawer.currentDelTagInfo.count === 0">确定删除${tagDrawer.currentDelTagInfo.label ? ('“' + tagDrawer.currentDelTagInfo.label + '”') : '该'}标签?</span>
-                <span v-else>警告:当前有${tagDrawer.currentDelTagInfo.count}条标讯使用了该便签,如果删除标签,那么对应的标讯也将删除该关联标签。</span>
+                <span v-else>警告:当前有${tagDrawer.currentDelTagInfo.count}条标讯使用了该签,如果删除标签,那么对应的标讯也将删除该关联标签。</span>
                 <span slot="footer" class="dialog-footer">
                     <button class="j-t-button confirm active" @click="delThisTagConfirm">确 定</el-button>
                     <button class="j-t-button cancel" @click="tagDrawer.dialogShow=false">取 消</button>

+ 8 - 8
src/web/templates/frontRouter/wx/collection/sess/ent_portrait.html

@@ -260,13 +260,13 @@
                     </div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:9.16rem;background:url('/common-module/collection/image/bg/vip_bg_1.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_1" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_1.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_1" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_1.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card cell-list history-list" v-if="conf._4 && tabActiveName == '2' && !getStatus">
                     <hispro-component type="winner" :id="entInfo.id"></hispro-component>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.36rem;background:url('/common-module/collection/image/bg/vip_bg_9.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_9" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_9.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_9" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_9.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts" v-if="conf._4 && tabActiveName == '2' && annualData.rows.length !== 0  && !getStatus">
                     <div class="tab-card-title">年度项目统计</div>
@@ -285,7 +285,7 @@
                     <div class="tab-card-tip">注:项目金额指所有项目的中标金额之和,少数缺失的中标金额,用项目预算补充。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.12rem;background:url('/common-module/collection/image/bg/vip_bg_2.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_2" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_2.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_2" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_2.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts"  v-if="conf._4 && tabActiveName == '2' && monthZbData.rows.length !== 0  && !getStatus">
                     <div class="tab-card-title">月度中标金额统计</div>
@@ -301,7 +301,7 @@
                     <div class="tab-card-tip">注:少数缺失的中标金额,用项目预算补充。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:10.8rem;background:url('/common-module/collection/image/bg/vip_bg_3.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_3" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_3.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_3" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_3.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts" v-if="conf._4 && tabActiveName == '2' && mapChartData.rows.length !== 0  && !getStatus">
                     <div class="tab-card-title">市场区域分布</div>
@@ -317,7 +317,7 @@
                     </div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:10.56rem;background:url('/common-module/collection/image/bg/vip_bg_4.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_4" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_4.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_4" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_4.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts"  v-if="conf._4 && tabActiveName == '2' && rateData.rows.length !== 0  && !getStatus">
                     <div class="tab-card-title">各类客户平均折扣率</div>
@@ -333,7 +333,7 @@
                     <div class="tab-card-tip">注:平均折扣率=(全部项目预算-全部中标金额)/全部项目预算,是指价格减让部分与原价的比率,仅统计预算和中标金额同时存在的项目。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.24rem;background:url('/common-module/collection/image/bg/vip_bg_5.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_5" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_5.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_5" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_5.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card charts"  v-show="conf._4 && tabActiveName == '2' && entPortraitInfo.top10 && entPortraitInfo.top10.length != 0  && !getStatus">
                     <div class="tab-card-title">客户类型分布</div>
@@ -343,7 +343,7 @@
                     <div class="tab-card-tip">注:各客户类型占比以中标金额计算,最多展示占比排名前十的客户类型。</div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:11.92rem;background:url('/common-module/collection/image/bg/vip_bg_6.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_6" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_6.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_6" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_6.png'></vip-component>
                 </div>
                 <div class="bg-white tab-card customers client"  v-show="conf._4 && tabActiveName == '2' && importantCustomers.length !== 0  && !getStatus">
                     <div class="tab-card-title">重点客户</div>
@@ -373,7 +373,7 @@
                     </div>
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:10.8rem;background:url('/common-module/collection/image/bg/vip_bg_7.png') no-repeat;background-size:100% 100%">
-                    <vip-component type="item_7" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_7.png'></vip-component>
+                    <vip-component @tabactive="tabActive" type="item_7" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_7.png'></vip-component>
                 </div>
             </van-tab>
         </van-tabs>

+ 5 - 1
src/web/templates/frontRouter/wx/collection/sess/ent_portrait_change.html

@@ -30,6 +30,9 @@
         background-size: 100% 100%;
         box-sizing: border-box;
     }
+    .bigVip_com{
+        display: none;
+    }
 </style>
 <body>
 <div class="j-container">
@@ -39,7 +42,7 @@
             <div class="j-img img-empty empty-img"></div>
             <p class="empty-text">暂无企业情报历史记录</p>
         </div>
-        <div class="vip_component" v-if="!getStatus" style="height:100%;background:url('/common-module/collection/image/bg/vip_bg_8.png') no-repeat;background-size:100% 100%">
+        <div class="vip_component bigVip_com" v-if="!getStatus" style="height:100%;background:url('/common-module/collection/image/bg/vip_bg_8.png') no-repeat;background-size:100% 100%">
             <vip-component type="item_8" :vipststus="vipststus" :entvisit="entvisit" imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_8.png'></vip-component>
         </div>
         <ul class="ent-change-list" v-else key="changeList">
@@ -134,6 +137,7 @@ var vNode = {
                         if (power.indexOf(12) != -1) {
                             // 获取企业情报历史记录-12
                             _this.conf._12 = true
+                            $('.bigVip_com').css({'display':'flex'})
                         }
                     }
                 }

+ 2 - 1
src/web/templates/pc/entsearchindex.html

@@ -109,7 +109,8 @@
                                 </div>
                                 <div class="popover-content" v-else key="popover-content">
                                     <p>超级订阅用户,每购买一个省,每月可看50个画像。</p>
-                                    <p>您当前订阅了${getVipSubText},查看机会已经消耗完毕。如需要更多服务,请前往<span class="popover-link" @click="openCustomerService">联系客服</span></p>
+                                    <p v-if="entUseInfo.province == -1">您当前订阅了${getVipSubText},查看机会已经消耗完毕。如需要更多服务,请前往<span class="popover-link" @click="openCustomerService">联系客服</span></p>
+                                    <p v-else>您当前订阅了${getVipSubText},如需查看更多,请前往订阅更多省份。<span class="popover-link" @click="openVipPage('popover-link')">前往</span></p>
                                 </div>
                                 <div class="used-counter" slot="reference">
                                     <span>当月已使用:</span>