|
@@ -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=我的"
|
|
|
})
|