zhangyuhan 3 жил өмнө
parent
commit
67c5102ca6

+ 3 - 0
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info.html

@@ -1548,6 +1548,9 @@
 
 
               var source = _this.ajaxParams.source || utils.getParam('source')
               var source = _this.ajaxParams.source || utils.getParam('source')
               if (r.error_msg === '') {
               if (r.error_msg === '') {
+                sessionStorage.setItem('salesBackData', JSON.stringify({
+                  type: source,
+                }))
                 switch (source) {
                 switch (source) {
                   case 'member_freeuse': {
                   case 'member_freeuse': {
                     _this.showMessage('您的申请已提交,我们会尽快联系您并预约演示时间,请耐心等待~您将获得免费体验大会员全部功能!')
                     _this.showMessage('您的申请已提交,我们会尽快联系您并预约演示时间,请耐心等待~您将获得免费体验大会员全部功能!')

+ 9 - 0
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_partner.html

@@ -174,6 +174,15 @@
               _this.setcodeShow = true
               _this.setcodeShow = true
             }
             }
             this.setEchoInfo(r.data)
             this.setEchoInfo(r.data)
+            var result = checkRequiredKeys(['name', 'phone'], r.data)
+            if (result) {
+              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)
+            }
           }
           }
         })
         })
       },
       },

+ 9 - 0
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_solution.html

@@ -323,6 +323,15 @@
           }
           }
           if (r && r.error_msg === '' && r.data) {
           if (r && r.error_msg === '' && r.data) {
             this.setEchoInfo(r.data)
             this.setEchoInfo(r.data)
+            var result = checkRequiredKeys(['name', 'phone', 'company', 'position', 'branch'], r.data)
+            if (result) {
+              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)
+            }
           }
           }
         })
         })
       },
       },

+ 9 - 0
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info_strud.html

@@ -436,6 +436,15 @@
               _this.setcodeShow = true
               _this.setcodeShow = true
             }
             }
             this.setEchoInfo(r.data)
             this.setEchoInfo(r.data)
+            var result = checkRequiredKeys(['name', 'phone', 'company', 'mail', 'position', 'branch'], r.data)
+            if (result) {
+              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)
+            }
           }
           }
         })
         })
       },
       },

+ 3 - 0
src/web/templates/frontRouter/wx/bigmember/free/perfect_info.html

@@ -1223,6 +1223,9 @@
 
 
             var source = _this.ajaxParams.source || utils.getParam('target') || utils.getParam('source')
             var source = _this.ajaxParams.source || utils.getParam('target') || utils.getParam('source')
             if (r.error_msg === '') {
             if (r.error_msg === '') {
+              sessionStorage.setItem('salesBackData', JSON.stringify({
+                type: source,
+              }))
               Object.assign(_this.submitResponse, r)
               Object.assign(_this.submitResponse, r)
               switch (source) {
               switch (source) {
                 case 'member_freeuse': {
                 case 'member_freeuse': {

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

@@ -211,13 +211,22 @@
           }
           }
           if (r && r.error_msg === '' && r.data) {
           if (r && r.error_msg === '' && r.data) {
             if(r.data.phone != '') {
             if(r.data.phone != '') {
-              _this.vercodecor = true
-              _this.setcodeShow = false
+              // _this.vercodecor = true
+              // _this.setcodeShow = false
               sessionStorage.setItem('strud_phone', r.data.phone)
               sessionStorage.setItem('strud_phone', r.data.phone)
             } else {
             } else {
-              _this.setcodeShow = true
+              // _this.setcodeShow = true
             }
             }
             this.setEchoInfo(r.data)
             this.setEchoInfo(r.data)
+            var result = checkRequiredKeys(['name', 'phone'], r.data)
+            if (result) {
+              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)
+            }
           }
           }
         })
         })
       },
       },

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

@@ -342,6 +342,15 @@
           }
           }
           if (r && r.error_msg === '' && r.data) {
           if (r && r.error_msg === '' && r.data) {
             this.setEchoInfo(r.data)
             this.setEchoInfo(r.data)
+            var result = checkRequiredKeys(['name', 'phone', 'company', 'position', 'branch'], r.data)
+            if (result) {
+              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)
+            }
           }
           }
         })
         })
       },
       },

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

@@ -451,6 +451,15 @@
               _this.setcodeShow = true
               _this.setcodeShow = true
             }
             }
             this.setEchoInfo(r.data)
             this.setEchoInfo(r.data)
+            var result = checkRequiredKeys(['name', 'phone', 'company', 'mail', 'position', 'branch'], r.data)
+            if (result) {
+              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)
+            }
           }
           }
         })
         })
       },
       },