Ver Fonte

fix: 移动端留资文案调整

cuiyalong há 1 ano atrás
pai
commit
52784167cf

+ 7 - 4
src/web/staticres/common-module/perfect-info/js/perfect-info.js

@@ -615,13 +615,13 @@ var vNode = {
       this.signId = decodeURIComponent(utils.getParam('signId'))
     }
     this.sourceLogAjax(this.ajaxParams.source)
-    this.checkLabels()
     this.notit_group_init()
   },
   mounted: function () {
     // app头部默认隐藏检查
     this.checkHeaderShow()
     this.ajaxGetEchoInfo()
+    this.checkLabels()
     this.bigDocAjax('ICRP') // 进入留资页面埋点
     // this.fromBuyerAjax('isICRP') // 采购单位画像、企业画像进来埋点
     if (utils.isWeiXinBrowser) {
@@ -923,7 +923,8 @@ var vNode = {
           }
         default: {
           // 标书制作或者三方认证(case语句满足不了条件,放default中做更多判断)
-          if (source === 'bid_document_Introduction_page' || source.indexOf('certificateServices') > -1) {
+          var biaoshu = source === 'bid_document_Introduction_page' || source.indexOf('article_BidPreparation') > -1
+          if (biaoshu || source.indexOf('certificateServices') > -1) {
             this.hideLabel(['email', 'class', 'position', 'workScope', 'partnerNeeds', 'agree'])
             break
           }
@@ -1010,7 +1011,8 @@ var vNode = {
         if (r && r.error_msg === '' && r.data) {
           this.setEchoInfo(r.data)
           var requiredKeys = []
-          if (this.ajaxParams.source === 'bid_document_Introduction_page' || this.ajaxParams.source.indexOf('certificateServices') > -1) {
+          var biaoshu = source === 'bid_document_Introduction_page' || source.indexOf('article_BidPreparation') > -1
+          if (biaoshu || this.ajaxParams.source.indexOf('certificateServices') > -1) {
             // 标书制作或者三方认证(case语句满足不了条件,放default中做更多判断)
             requiredKeys = ['name', 'phone', 'company','companyType']
           } else {
@@ -1659,8 +1661,9 @@ var vNode = {
                   break
                 }
               default: {
+                var biaoshu = source === 'bid_document_Introduction_page' || source.indexOf('article_BidPreparation') > -1
                 // 标书制作或者三方认证(case语句满足不了条件,放default中做更多判断)
-                if (source === 'bid_document_Introduction_page' || source.indexOf('certificateServices') > -1 || source === 'telecom_solution') {
+                if (biaoshu || source.indexOf('certificateServices') > -1 || source === 'telecom_solution') {
                   _this.bidShow = true
                   break
                 }