Sfoglia il codice sorgente

流失客户我的中交主动提交申请不跳转申请页

jwyu 3 anni fa
parent
commit
cce6eb3801
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. 16 0
      pages/user/user.vue

+ 16 - 0
pages/user/user.vue

@@ -108,6 +108,22 @@
 				const res=await apiLastApplyRecord({source:1})
 				if(res.code===200){
 					if(!res.data){
+						// 流失客户主动申请一次
+						if(this.userInfo.status=='流失'){
+							apiApplyPermission({
+								company_name:this.userInfo.company_name,
+								real_name:this.userInfo.real_name,
+								source:1,
+								from_page:'我的'
+							}).then(res=>{
+								if(res.code===200){
+									console.log('主动申请成功');
+									this.pupData.show=true
+									this.pupData.content=`<p>申请已提交</p><p>请等待销售人员与您联系</p>`
+								}
+							}) 
+							return
+						}
 						uni.navigateTo({
 							url:"/pages-applyPermission/applyPermission?source=1&from_page=我的"
 						})