Browse Source

feat:非主动触发留资节点,数据库不会记录

tsz 3 năm trước cách đây
mục cha
commit
a7988903d6

+ 5 - 1
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info.html

@@ -1235,6 +1235,8 @@
         },
         ajaxGetEchoInfo() {
           this.isEchoInfoLoading = true
+          let sourceList = ['article_collection', 'article_original', 'jyarticle_see3_plus_app', 'jyarticle_see3_plus_pc', 'jyarticle_see3_plus_wx', 'jypush_see10_plus_app', 'jypush_see10_plus_wx']
+          let isCollect = sourceList.includes(this.ajaxParams.source)
           this.ajaxFn('/salesLeads/retainedCapital' + '?source=' + this.ajaxParams.source, {}, function (r) {
             this.isEchoInfoLoading = false
             if (r && r.info) {
@@ -1249,7 +1251,9 @@
                 var canAuto = !skipAuto.some(function (v) {
                   return _this.ajaxParams.source.indexOf(v) > -1
                 })
-                this.submitForm(canAuto)
+                if(!isCollect) {
+                  this.submitForm(canAuto)
+                }
               }
             }
           })

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

@@ -573,6 +573,8 @@ var vm = new Vue({
         success:function (res) {
           // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
           var checkKeys = ['name', 'phone','companyType', 'company', 'branch', 'position']
+          var sourceList = ['article_collection', 'article_original', 'jyarticle_see3_plus_app', 'jyarticle_see3_plus_pc', 'jyarticle_see3_plus_wx', 'jypush_see10_plus_app', 'jypush_see10_plus_wx']
+          var isCollect = sourceList.includes(source)
           if (infoid != ""){
             res.info.publish_id = infoid
           }
@@ -581,7 +583,11 @@ var vm = new Vue({
             _this.showForm = false
             res.data.retainedCapital = false
             callback && callback(res)
-            _this.formAjax(_this.source, res.info)
+            // 包含这些source,不存记录
+            // 非主动触发留资节点,每点击一次数据库不会记录
+            if(!isCollect) {
+              _this.formAjax(_this.source, res.info)
+            }
             switch (source) {
               case 'member_freeuse': {
                 _this.showSuccess = true

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

@@ -915,6 +915,8 @@
       },
       ajaxGetEchoInfo() {
         this.isEchoInfoLoading = true
+        let sourceList = ['article_collection', 'article_original', 'jyarticle_see3_plus_app', 'jyarticle_see3_plus_pc', 'jyarticle_see3_plus_wx', 'jypush_see10_plus_app', 'jypush_see10_plus_wx']
+        let isCollect = sourceList.includes(this.ajaxParams.source)
         this.ajaxFn('/salesLeads/retainedCapital' + '?source=' + this.ajaxParams.source, { source: this.ajaxParams.source }, function (r) {
           this.isEchoInfoLoading = false
           if (r && r.info) {
@@ -929,7 +931,9 @@
               var canAuto = !skipAuto.some(function (v) {
                 return _this.ajaxParams.source.indexOf(v) > -1
               })
-              this.submitForm(canAuto)
+              if(!isCollect) {
+                this.submitForm(canAuto)
+              }
             }
           }
         })