浏览代码

fix:定制导出页面留资提交提示处理

zhangsiya 2 年之前
父节点
当前提交
d64c978b0c
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

+ 3 - 2
src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

@@ -335,7 +335,8 @@ var vm = new Vue({
     },
     defaultSource: function() {
       // 默认提交成功不显示广告图和邮箱文案 如果是结构化数据则显示
-      return this.source.indexOf('structed') === -1
+      var noEmailSource = ['structedData', 'pc_data_custom_export']
+      return noEmailSource.indexOf(this.source) === -1
     },
     showBranch: function () {
       // 切换到总裁或总经理之后 把之前选择的部门清空
@@ -555,7 +556,7 @@ var vm = new Vue({
       var _this = this
       $.ajax({
         type:'POST',
-        url: source.indexOf('structedData') > -1 ? '/salesLeads/collectInfo' : '/salesLeads/official/notLogin',
+        url: '/salesLeads/collectInfo',
         contentType: "application/json;charset=utf-8",
         data: JSON.stringify(params),
         success:function (res) {