Преглед на файлове

fix:三端留资逻辑调整

yangfeng преди 1 година
родител
ревизия
247509442a

+ 53 - 33
src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

@@ -538,42 +538,62 @@ var vm = new Vue({
           }
           var result = checkRequiredKeys(checkKeys, res.info)
           res.info.interest = interest
-          if (result) {
-            callback && callback()
-            _this.formAjax(_this.source, res.info)
-          } else if (res.data) {
-            _this.isForce = res.data.fource
-            if (res.data.retainedCapital) {
-              _this.showForm = true
-            // 当前头部背景图
-              _this.isSelfHeader()
-              // _this.changeTop()
-              if (res.info) {
-                echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
-                // 原有赋值回显逻辑
-                _this.form.oldPhone = res.info.phone ? res.info.phone : ''
-                _this.form.companyName = res.info.company ? res.info.company : ''
-                _this.form.companyType = res.info.companyType ? res.info.companyType.split(',') : []
-                if (res.info.position) {
-                  if (jobJson.indexOf(res.info.position) == -1) {
-                    // _this.form.job = '其他'
-                    // _this.form.otherJob = res.data.position.replace('其他/', '')
-                    _this.form.job = ''
-                    _this.form.otherJob = ''
-                  } else {
-                    _this.form.job = res.info.position
-                  }
-                } else {
-                  _this.form.job = ''
-                }
+          _this.showForm = true
+          // 当前头部背景图
+          _this.isSelfHeader()
+          if (res.info) {
+            echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
+            // 原有赋值回显逻辑
+            _this.form.oldPhone = res.info.phone ? res.info.phone : ''
+            _this.form.companyName = res.info.company ? res.info.company : ''
+            _this.form.companyType = res.info.companyType ? res.info.companyType.split(',') : []
+            if (res.info.position) {
+              if (jobJson.indexOf(res.info.position) == -1) {
+                _this.form.job = ''
+                _this.form.otherJob = ''
+              } else {
+                _this.form.job = res.info.position
               }
             } else {
-              callback && callback()
-              // 缺陷出现场景为:在其他页面留过资,但没有邮箱信息(user表也没有存邮箱字段),当前source也已留过资(是否需要留资字段返回为false)
-              // 如出现改场景 则会一直提交(更新)不了留资信息, 引次此处也需要再次提交 
-              // _this.formAjax(_this.source, res.info)
+              _this.form.job = ''
             }
           }
+          // if (result) {
+          //   callback && callback()
+          //   _this.formAjax(_this.source, res.info)
+          // } else if (res.data) {
+          //   _this.isForce = res.data.fource
+          //   if (res.data.retainedCapital) {
+          //     _this.showForm = true
+          //     // 当前头部背景图
+          //     _this.isSelfHeader()
+          //     // _this.changeTop()
+          //     if (res.info) {
+          //       echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
+          //       // 原有赋值回显逻辑
+          //       _this.form.oldPhone = res.info.phone ? res.info.phone : ''
+          //       _this.form.companyName = res.info.company ? res.info.company : ''
+          //       _this.form.companyType = res.info.companyType ? res.info.companyType.split(',') : []
+          //       if (res.info.position) {
+          //         if (jobJson.indexOf(res.info.position) == -1) {
+          //           // _this.form.job = '其他'
+          //           // _this.form.otherJob = res.data.position.replace('其他/', '')
+          //           _this.form.job = ''
+          //           _this.form.otherJob = ''
+          //         } else {
+          //           _this.form.job = res.info.position
+          //         }
+          //       } else {
+          //         _this.form.job = ''
+          //       }
+          //     }
+          //   } else {
+          //     callback && callback()
+          //     // 缺陷出现场景为:在其他页面留过资,但没有邮箱信息(user表也没有存邮箱字段),当前source也已留过资(是否需要留资字段返回为false)
+          //     // 如出现改场景 则会一直提交(更新)不了留资信息, 引次此处也需要再次提交 
+          //     // _this.formAjax(_this.source, res.info)
+          //   }
+          // }
         }
       })
     },
@@ -697,7 +717,7 @@ var vm = new Vue({
     brightKeyword: function (val) {
       var name = this.form.companyName
       if (val.indexOf(name) !== -1) {
-        return val.replace(name, "<span style='color:#2ABED1;'>" + name + "</span")
+        return val.replace(name, "<span style='color:#2ABED1;'>" + name + "</span>")
       } else {
         return val
       }

+ 11 - 0
src/web/staticres/frontRouter/pc/bidedoc/css/index-pc.css

@@ -184,3 +184,14 @@
 .is-quest .dialog-footer .el-button+.el-button {
   margin-left: 32px;
 }
+
+.el-checkbox__input.is-checked+.el-checkbox__label{
+  color: #2CB7CA;
+}
+.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
+  background-color: #2CB7CA;
+  border-color: #2CB7CA;
+}
+.el-input.is-active .el-input__inner, .el-input__inner:focus{
+  border-color: #2CB7CA;
+}

+ 35 - 21
src/web/staticres/frontRouter/pc/bidedoc/js/index-pc.js

@@ -93,30 +93,44 @@ var bidLeaveInfo = new Vue({
           // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
           var checkKeys = ['name', 'phone', 'company', 'companyType']
           var result = checkRequiredKeys(checkKeys, res.info)
-          if (result) {
-            _this.showSuccess = true
-            options && options.alreadySubmitCb && options.alreadySubmitCb()
-            _this.formAjax(_this.source, res.info)
-          } else if (res.data){
-            window.isRetained = res.data.retainedCapital
-            options && options.needSubmitCb && options.needSubmitCb()
-            if (res.data.retainedCapital) {
-              _this.isShow = true
-              if (res.info) {
-                if (res.info.companyType) {
-                  res.info.companyType = res.info.companyType.split(',')
-                } else {
-                  res.info.companyType = []
-                }
-                echoRequiredValues(_this.ruleBide, res.info, checkKeys)
-                if (res.info.company) {
-                  _this.showSearchResult = false
-                }
-              }
+          // *P403需求:所有留资都不需要自动提交,弹出留资弹框回显出来信息 确认后手动提交
+          _this.isShow = true
+          if (res.info) {
+            if (res.info.companyType) {
+              res.info.companyType = res.info.companyType.split(',')
             } else {
-              _this.showSuccess = true
+              res.info.companyType = []
+            }
+            echoRequiredValues(_this.ruleBide, res.info, checkKeys)
+            if (res.info.company) {
+              _this.ruleBide.companyName = res.info.company
+              _this.showSearchResult = false
             }
           }
+          // if (result) {
+          //   _this.showSuccess = true
+          //   options && options.alreadySubmitCb && options.alreadySubmitCb()
+          //   _this.formAjax(_this.source, res.info)
+          // } else if (res.data){
+          //   window.isRetained = res.data.retainedCapital
+          //   options && options.needSubmitCb && options.needSubmitCb()
+          //   if (res.data.retainedCapital) {
+          //     _this.isShow = true
+          //     if (res.info) {
+          //       if (res.info.companyType) {
+          //         res.info.companyType = res.info.companyType.split(',')
+          //       } else {
+          //         res.info.companyType = []
+          //       }
+          //       echoRequiredValues(_this.ruleBide, res.info, checkKeys)
+          //       if (res.info.company) {
+          //         _this.showSearchResult = false
+          //       }
+          //     }
+          //   } else {
+          //     _this.showSuccess = true
+          //   }
+          // }
         }
       })
     },

+ 46 - 25
src/web/staticres/frontRouter/pc/solution/js/pc-collect-solution-info.js

@@ -357,35 +357,56 @@ var vmSolution = new Vue({
         success:function (res) {
           var checkKeys = ['name', 'phone', 'company', 'companyType', 'branch', 'position']
           var result = checkRequiredKeys(checkKeys, res.info)
-          if (result) {
-            callback && callback()
-            _this.formAjax(_this.source, res.info)
-          } else if (res.data) {
-            _this.isForce = res.data.fource
-            window.isRetained = res.data.retainedCapital
-            if (res.data.retainedCapital) {
-              _this.showForm = true
-              if (res.info) {
-                echoRequiredValues(_this.form, res.info, ['name', 'phone', 'branch'])
-                _this.form.companyName = res.info.company ? res.info.company : ''
-                if (res.info.position) {
-                  if (jobJson.indexOf(res.info.position) == -1) {
-                    // _this.form.job = '其他'
-                    // _this.form.otherJob = res.data.position.replace('其他/', '')
-                    _this.form.job = ''
-                    _this.form.otherJob = ''
-                  } else {
-                    _this.form.job = res.info.position
-                  }
-                } else {
-                  _this.form.job = ''
-                }
+          _this.showForm = true
+          if (res.info) {
+            echoRequiredValues(_this.form, res.info, ['name', 'phone', 'branch'])
+            _this.form.companyName = res.info.company ? res.info.company : ''
+            if (res.info.companyType) {
+              _this.form.companyType = res.info.companyType.split(',')
+            } else {
+              _this.form.companyType = []
+            }
+            if (res.info.position) {
+              if (jobJson.indexOf(res.info.position) == -1) {
+                _this.form.job = ''
+                _this.form.otherJob = ''
+              } else {
+                _this.form.job = res.info.position
               }
-              _this.curDom = dom
             } else {
-              callback && callback()
+              _this.form.job = ''
             }
           }
+          _this.curDom = dom
+          // if (result) {
+          //   callback && callback()
+          //   _this.formAjax(_this.source, res.info)
+          // } else if (res.data) {
+          //   _this.isForce = res.data.fource
+          //   window.isRetained = res.data.retainedCapital
+          //   if (res.data.retainedCapital) {
+          //     _this.showForm = true
+          //     if (res.info) {
+          //       echoRequiredValues(_this.form, res.info, ['name', 'phone', 'branch'])
+          //       _this.form.companyName = res.info.company ? res.info.company : ''
+          //       if (res.info.position) {
+          //         if (jobJson.indexOf(res.info.position) == -1) {
+          //           // _this.form.job = '其他'
+          //           // _this.form.otherJob = res.data.position.replace('其他/', '')
+          //           _this.form.job = ''
+          //           _this.form.otherJob = ''
+          //         } else {
+          //           _this.form.job = res.info.position
+          //         }
+          //       } else {
+          //         _this.form.job = ''
+          //       }
+          //     }
+          //     _this.curDom = dom
+          //   } else {
+          //     callback && callback()
+          //   }
+          }
         }
       })
     },

+ 2 - 2
src/web/staticres/js/pc-collect-user-info.js

@@ -361,6 +361,7 @@ var vm = new Vue({
         agree: false,
       },
       sourceTitleMap: {
+        pc_article_member_freeuse: '请升级大会员无限制查看标讯、超前项目,优先对接项目负责人,抢占绝对先机!',
         article_attach_freeuser: '请留下联系方式,立即免费体验【附件下载】1次,招标文件/采购清单一键下载,商机更完整!',
         // ent_portrait_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
         // ent_portrait_winnerNewMsg_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
@@ -401,8 +402,7 @@ var vm = new Vue({
         'activity_free_plan': '请完善信息,免费获取200剑鱼币',
         super_membership_day: '请留下联系方式,我们会尽快联系您体验大会员全部功能!',
         peugeot_supplier_regist:'请完善您的个人信息,抢先对接采购单位',
-        peugeot_view_infor: '请留下联系方式,我们会尽快联系您体验大会员全部功能!',
-        pc_article_member_freeuse: '请升级大会员无限制查看标讯、超前项目,优先对接项目负责人,抢占绝对先机!'
+        peugeot_view_infor: '请留下联系方式,我们会尽快联系您体验大会员全部功能!'
       },
       isRefresh: false, // 留完资是否需要刷新页面
       sourceDescMap: {

+ 1 - 1
src/web/templates/frontRouter/pc/solution/free/index.html

@@ -238,7 +238,7 @@
         $('.answerBtn').on('click', function() {
             checkLogin()
             vmSolution.isNeedSubmit('telecom_solution', function () {
-              vmSolution.showSuccess = true
+              // vmSolution.showSuccess = true
             })
         })
 

+ 1 - 1
src/web/templates/frontRouter/wx/bigmember/free/perfect_info_bank.html

@@ -409,7 +409,7 @@
                 var canAuto = !skipAuto.some(function (v) {
                   return _this.ajaxParams.source.indexOf(v) > -1
                 })
-                this.submitForm(canAuto)
+                // this.submitForm(canAuto)
               }
             }
           })

+ 1 - 1
src/web/templates/frontRouter/wx/bigmember/free/perfect_info_partner.html

@@ -230,7 +230,7 @@
               var canAuto = !skipAuto.some(function (v) {
                 return _this.ajaxParams.source.indexOf(v) > -1
               })
-              this.submitForm(canAuto)
+              // this.submitForm(canAuto)
             }
           }
         })

+ 1 - 1
src/web/templates/frontRouter/wx/bigmember/free/perfect_info_solution.html

@@ -397,7 +397,7 @@
               var canAuto = !skipAuto.some(function (v) {
                 return _this.ajaxParams.source.indexOf(v) > -1
               })
-              this.submitForm(canAuto)
+              // this.submitForm(canAuto)
             }
           }
         })

+ 1 - 1
src/web/templates/frontRouter/wx/bigmember/free/perfect_info_strud.html

@@ -505,7 +505,7 @@
               var canAuto = !skipAuto.some(function (v) {
                 return _this.ajaxParams.source.indexOf(v) > -1
               })
-              this.submitForm(canAuto)
+              // this.submitForm(canAuto)
             }
           }
         })

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

@@ -235,7 +235,7 @@
           display: inline-block;
           padding: 5px 28px;
           border: 1px solid #E7C28A;
-          background: linear-gradient(to right, #FFF9F0, #E7C28A);
+          background: linear-gradient(to right, #FFF9F0, #FEF0D7);
           color: #B1700E;
           font-size: 14px;
           text-align: center;
@@ -243,6 +243,7 @@
           cursor: pointer;
         }
         .free-equity-contrast .contact-kf {
+          margin-top: 2px;
           text-decoration: underline;
           color: #B1700E;
           font-size: 12px;