ソースを参照

fix: app三级页留资问题

cuiyalong 3 年 前
コミット
2129080d54

+ 9 - 2
src/web/staticres/common-module/keep-tags/keep-ent-tags-template.js

@@ -558,7 +558,12 @@ function checkBackSuccess () {
   sessionStorage.removeItem('salesBackStatus')
   sessionStorage.removeItem('salesBackData')
 }
-$(function () {
+
+// 没注册过,注册。注册过,则不用再次注册
+window.registerCheckBack = false
+if (!window.registerCheckBack) {
+  $(function () {
+    window.registerCheckBack = true
     checkBackSuccess()
     if (utils.isWeiXinBrowser) {
       var aTime = new Date().getTime()
@@ -571,4 +576,6 @@ $(function () {
         }
       }, false);
     }
-})
+  })
+}
+

+ 9 - 3
src/web/staticres/common-module/keep-tags/keep-tags-template.js

@@ -408,7 +408,7 @@ Vue.component('keep-component', {
       }
       if (type) {
         $.post('/salesLeads/retainedCapital' + '?source=article_collection', { source: 'article_collection' }).done(function (r) {
-          var checkKeys = ['name', 'phone', 'company', 'mail', 'branch', 'position', 'companyType']
+          var checkKeys = ['name', 'phone', 'company', 'branch', 'position', 'companyType']
           var result = checkRequiredKeys(checkKeys, r.info)
           // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
           if (result || !window.isFree) {
@@ -632,7 +632,12 @@ function checkBackSuccess () {
   sessionStorage.removeItem('salesBackStatus')
   sessionStorage.removeItem('salesBackData')
 }
-$(function () {
+
+// 没注册过,注册。注册过,则不用再次注册
+window.registerCheckBack = false
+if (!window.registerCheckBack) {
+  $(function () {
+    window.registerCheckBack = true
     checkBackSuccess()
     if (utils.isWeiXinBrowser) {
       var aTime = new Date().getTime()
@@ -645,4 +650,5 @@ $(function () {
         }
       }, false);
     }
-})
+  })
+}

+ 0 - 3
src/web/staticres/public-pc/js/article-content.js

@@ -2539,11 +2539,8 @@ $(function() {
       source: 'peugeot_view_infor',
       infoid: id
     }
-    console.log(info)
     vm.isNeedSubmit(info.source, function () {
       vm.showSuccess = true
     },"", info.infoid)
-    vm.dialogTitleTop='供应商报名'
-    vm.dialogTitle = '请完善您的个人信息,抢先对接采购单位'
   })
 })