소스 검색

feat:收藏功能留资判断

malin 3 년 전
부모
커밋
f17940f8f3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/web/staticres/common-module/keep-tags/keep-tags-template.js

+ 5 - 0
src/web/staticres/common-module/keep-tags/keep-tags-template.js

@@ -408,6 +408,11 @@ Vue.component('keep-component', {
       }
       if (type) {
         $.post('/salesLeads/retainedCapital', { source: 'article_collection' }).done(function (r) {
+          // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
+          if(r.info.branch && r.info.company && r.info.name && r.info.phone && r.info.position){
+            tempFn()
+            return true
+          }
           if (r && r.error_msg === '' && r.data) {
             if (r.data.retainedCapital) {
               _this.$dialog.close()