瀏覽代碼

fix: 替换获取用户留资信息接口

zhangyuhan 3 年之前
父節點
當前提交
b85429bf97

+ 10 - 2
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info.html

@@ -1223,13 +1223,21 @@
         },
         ajaxGetEchoInfo() {
           this.isEchoInfoLoading = true
-          this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+          this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
             this.isEchoInfoLoading = false
+            if (r && r.info) {
+              r.data = r.info
+            }
             if (r && r.error_msg === '' && r.data) {
               this.setEchoInfo(r.data)
               var result = checkRequiredKeys(['name', 'phone', 'company', 'position', 'branch'], r.data)
               if (result) {
-                this.submitForm('auto')
+                var skipAuto = ['jyarticle_see3', 'article_collection', 'article_original', 'jypush_see10']
+                var _this = this
+                var canAuto = !skipAuto.some(function (v) {
+                  return _this.ajaxParams.source.indexOf(v) > -1
+                })
+                this.submitForm(canAuto)
               }
             }
           })

+ 4 - 1
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_partner.html

@@ -160,8 +160,11 @@
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
         let _this = this
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             if(r.data.phone != '') {
               _this.vercodecor = true

+ 4 - 1
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_push.html

@@ -302,8 +302,11 @@
       },
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             this.setEchoInfo(r.data)
           }

+ 4 - 1
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_solution.html

@@ -316,8 +316,11 @@
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
         let _this = this
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             this.setEchoInfo(r.data)
           }

+ 4 - 1
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_strud.html

@@ -422,8 +422,11 @@
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
         let _this = this
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             if(r.data.phone != '') {
               _this.vercodecor = true

+ 9 - 6
src/web/staticres/js/pc-collect-bid-info.js

@@ -35,10 +35,10 @@ var temps = `
                 </div>
                 <div class="long-control" style="position: relative;">
                   <el-form-item label="公司名称 :" prop="companyName">
-                    <el-input 
-                    v-model.trim="form.companyName" 
+                    <el-input
+                    v-model.trim="form.companyName"
                     data-long-input
-                    class=" company-name" 
+                    class=" company-name"
                     @focus="companyFocus"
                     @input="searchCompany"
                     placeholder="请输入公司名称">
@@ -279,7 +279,7 @@ var vmbid = new Vue({
             if (!dom.contains((e.target))) {
               that.showSearchResult = false
             }
-        } 
+        }
     })
   },
   beforeDestroy() {
@@ -406,11 +406,14 @@ var vmbid = new Vue({
       var _this = this
       $.ajax({
         type:'POST',
-        url:'/salesLeads/echoInfo?t=' + Date.now(),
+        url:'/salesLeads/retainedCapital?t=' + Date.now(),
         success:function (res) {
+          if (res && res.info) {
+            res.data = res.info
+          }
           if (res.data) {
             _this.form.name = res.data.name ? res.data.name : ''
-            _this.form.phone = res.data.phone ? res.data.phone : '' 
+            _this.form.phone = res.data.phone ? res.data.phone : ''
             _this.form.companyName = res.data.company ? res.data.company : ''
             _this.form.branch = res.data.branch || ''
             if (res.data.position) {

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

@@ -716,8 +716,11 @@ var vm = new Vue({
       var _this = this
       $.ajax({
         type:'POST',
-        url:'/salesLeads/echoInfo?t=' + Date.now(),
+        url:'/salesLeads/retainedCapital?t=' + Date.now(),
         success:function (res) {
+          if (res && res.info) {
+            res.data = res.info
+          }
           if (res.data) {
             _this.form.name = res.data.name ? res.data.name : ''
             _this.form.phone = res.data.phone ? res.data.phone : ''

+ 10 - 2
src/web/templates/frontRouter/wx/bigmember/free/perfect_info.html

@@ -900,13 +900,21 @@
       },
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             this.setEchoInfo(r.data)
             var result = checkRequiredKeys(['name', 'phone', 'company', 'position', 'branch'], r.data)
             if (result) {
-              this.submitForm('auto')
+              var skipAuto = ['jyarticle_see3', 'article_collection', 'article_original', 'jypush_see10']
+              var _this = this
+              var canAuto = !skipAuto.some(function (v) {
+                return _this.ajaxParams.source.indexOf(v) > -1
+              })
+              this.submitForm(canAuto)
             }
           }
         })

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

@@ -204,8 +204,11 @@
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
         let _this = this
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             if(r.data.phone != '') {
               _this.vercodecor = true

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

@@ -335,8 +335,11 @@
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
         let _this = this
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             this.setEchoInfo(r.data)
           }

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

@@ -437,8 +437,11 @@
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
         let _this = this
-        this.ajaxFn('/salesLeads/echoInfo', {}, function (r) {
+        this.ajaxFn('/salesLeads/retainedCapital', {}, function (r) {
           this.isEchoInfoLoading = false
+          if (r && r.info) {
+            r.data = r.info
+          }
           if (r && r.error_msg === '' && r.data) {
             if(r.data.phone != '') {
               _this.vercodecor = true