Răsfoiți Sursa

feat: 采购单位免费体验模块传入source

yangfeng 4 ani în urmă
părinte
comite
5bc7889ef0

+ 2 - 2
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/unit_portrayal.js

@@ -258,13 +258,13 @@ var vNode = {
               console.log(res)
               setTimeout(function() {
                 // location.href = '/jyapp/big/page/buy_commit?bid=' + _this.encryptId
-                location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=app_page_buyer'
+                location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=buyer_portrait_getNewMsg'
               }, 200)
             },
             error: function (error) {
               console.log(error)
               // location.href = '/jyapp/big/page/buy_commit?bid=' + _this.encryptId
-              location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=app_page_buyer'
+              location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=buyer_portrait_getNewMsg'
             }
           })
         },

+ 2 - 2
src/web/staticres/big-member/js/unit_portrayal.js

@@ -258,13 +258,13 @@ var vNode = {
               console.log(res)
               setTimeout(function() {
                 // location.href = '/big/wx/page/buy_commit?bid=' + _this.encryptId
-                location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=wx_page_buyer'
+                location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=buyer_portrait_getNewMsg'
               }, 200)
             },
             error: function (error) {
               console.log(error)
               // location.href = '/big/wx/page/buy_commit?bid=' + _this.encryptId
-              location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=wx_page_buyer'
+              location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=buyer_portrait_getNewMsg'
             }
           })
         },

+ 22 - 14
src/web/staticres/common-module/collection/js/buyer-example.js

@@ -11,7 +11,7 @@ var vipDialog = `
     </div>
   </div>
   <div class="openBtn">
-      <button class="goBtn" @click="goOpen(getTextMap.headText.top,getTextMap.headText.bot)">{{getTextMap.btnText}}</button>
+      <button class="goBtn" @click="goOpen(getTextMap.headText.top,getTextMap.headText.bot, getTextMap.source)">{{getTextMap.btnText}}</button>
   </div>
 </div>
 `
@@ -63,7 +63,8 @@ var buyerExample = {
         headText: {
           top: '通过实时监控项目的招标、中标、合同等',
           bot: '信息,全面挖掘更多潜在商机!'
-        }
+        },
+        source: ''
       }
       if (this.power.indexOf(5) < 0 && this.status > 0) {
         textMap.btnText = '联系客服'
@@ -72,78 +73,85 @@ var buyerExample = {
           // 历史项目联系方式
         case 'item_1': {
           textMap.headText.top = ' 获取采购单位类似项目联系人、'
-          textMap.headText.bot = '联系方式等,一键拨打!'
+          textMap.headText.bot = '联系方式等,一键拨打!',
+          textMap.source = ''
           break
         }
           // 年度项目统计
         case 'item_2': {
           textMap.headText.top = '采购单位年度项目规模、增长趋势'
           textMap.headText.bot = '一目了然,快速分析市场!'
+          textMap.source = 'buyer_portrait_yearData'
           break
         }
           // 月度采购规模统计
         case 'item_3': {
           textMap.headText.top = '通过纵向对比近3年月度中标金额,'
           textMap.headText.bot = '快速分析行业月度采购趋势!'
+          textMap.source = 'buyer_portrait_monthData'
           break
         }
           // 采购规模分布
         case 'item_4': {
           textMap.headText.top = '全面了解采购单位的年度采购规划、'
           textMap.headText.bot = '项目预算,帮助投标人制定投标策略!'
+          textMap.source = 'buyer_portrait_moneyRange'
           break
         }
           // 各类招标方式占比
         case 'item_5': {
           textMap.headText.top = '洞察采购单位招标方式、数量、金额占比,'
           textMap.headText.bot = '综合了解采购单位,帮企业决策是否投标!'
+          textMap.source = 'buyer_portrait_bidtypeData'
           break
         }
           // 各行业项目平均节支率
         case 'item_6': {
           textMap.headText.top = '分析行业项目的预算、中标价格差额比率,'
           textMap.headText.bot = '帮助企业核算采购项目的利润率!'
+          textMap.source = 'buyer_portrait_rate'
           break
         }
           // 各行业项目规模占比
         case 'item_7': {
           textMap.headText.top = '通过行业采购项目的规模、数量、利润率,'
           textMap.headText.bot = '洞悉采购单位的采购状况!'
+          textMap.source = 'buyer_portrait_top12'
           break
         }
           // 重点合作企业
         case 'item_8': {
           textMap.headText.top = '通过挖掘重点合作企业,直观了解采购单位'
           textMap.headText.bot = '与企业关系远近,辅助投标决策!'
+          textMap.source = 'buyer_portrait_topShow'
           break
         }
           // 合作企业注册资本分布
         case 'item_9': {
           textMap.headText.top = '通过分析合作企业注册资本、采购项目规模、'
           textMap.headText.bot = '利润率,全面洞察采购单位合作企业!'
+          textMap.source = 'buyer_portrait_withCapitalData'
           break
         }
          // 合作企业年龄分布
         case 'item_10': {
           textMap.headText.top = '通过分析合作企业年龄、数量、规模分布情况,'
           textMap.headText.bot = '全面洞察采购单位合作企业!'
+          textMap.source = 'buyer_portrait_withEstablishData'
           break
         }
         // 合作企业注册地分布
         case 'item_11': {
           textMap.headText.top = '通过分析合作企业的地址、数量、采购规模,'
           textMap.headText.bot = '了解采购单位营商环境,辅助投标决策!'
+          textMap.source = 'buyer_portrait_withAreaData'
           break
         }
         // 重点合作代理机构
         case 'item_12': {
           textMap.headText.top = '通过提供合作代理机构的名录、数量,全面洞察'
           textMap.headText.bot = '采购单位合作环境,辅助投标决策!'
-          break
-        }
-        default: {
-          textMap.headText.top = '采购单位项目动态全面获取,帮助企业'
-          textMap.headText.bot = '洞察采购需求,开发新客户!'
+          textMap.source = 'buyer_portrait_topAgencyData'
           break
         }
       }
@@ -151,13 +159,13 @@ var buyerExample = {
     },
   },
   methods: {
-    linkFn: function(id) {
+    linkFn: function(id, source) {
       var isWeixin = utils.isWeiXinBrowser
       if(!isWeixin) {
         if (this.getTextMap.btnText == '免费体验') {
           // 跳转到大会员
           // location.href = '/jyapp/big/page/buy_commit?bid=' + id
-          location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=app_page_buyer'
+          location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + source
         } else if (this.getTextMap.btnText == '联系客服') {
           try {
             JyObj.callPhone('400-108-6670');
@@ -169,13 +177,13 @@ var buyerExample = {
         if (this.getTextMap.btnText == '免费体验') {
           // 跳转到大会员
           // location.href = '/big/wx/page/buy_commit?bid=' + id
-          location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=wx_page_buyer'
+          location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=' + source
         } else if (this.getTextMap.btnText == '联系客服') {
           location.href = 'tel:400-108-6670'
         }
       }
     },
-    goOpen: function(top, bot) {
+    goOpen: function(top, bot, source) {
       console.log(this.$parent.encryptId)
       var params = {
         mold: 'isCBBT',
@@ -192,11 +200,11 @@ var buyerExample = {
           data: JSON.stringify(params),
           success: function (res) {
             console.log(res)
-            _this.linkFn(_this.$parent.encryptId)
+            _this.linkFn(_this.$parent.encryptId, source)
           },
           error: function (error) {
             console.log(error)
-            _this.linkFn(_this.$parent.encryptId)
+            _this.linkFn(_this.$parent.encryptId, source)
           }
         })
       } else if (_this.getTextMap.btnText == '联系客服') {