Sfoglia il codice sorgente

我的中流失客户主动提交一次申请

jwyu 3 anni fa
parent
commit
64212e988a
1 ha cambiato i file con 20 aggiunte e 0 eliminazioni
  1. 20 0
      src/layout/Index.vue

+ 20 - 0
src/layout/Index.vue

@@ -69,6 +69,26 @@ const handleGoApplyPermission=async ()=>{
         confirmButtonClass:'self-elmessage-confirm-btn'
       })
     }else{
+      // 流失客户主动申请一次
+      if(userInfo.value.status=='流失'){
+        apiApplyPermission({
+          company_name:userInfo.value.company_name,
+          real_name:userInfo.value.real_name,
+          source:1,
+          from_page:'我的',
+        }).then(res=>{
+          const htmlStr=`<p>申请已提交</p><p>请等待销售人员与您联系</p>`
+          ElMessageBox({
+            title:'申请提醒',
+            message:htmlStr,
+            center: true,
+            dangerouslyUseHTMLString: true,
+            confirmButtonText:'知道了',
+            confirmButtonClass:'self-elmessage-confirm-btn'
+          })
+        })
+        return
+      }
       router.push({
         path:'/apply/permission',
         query:{