|
@@ -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);
|
|
|
}
|
|
|
-})
|
|
|
+ })
|
|
|
+}
|