jwyu 3 years ago
parent
commit
98ddcbb79c
3 changed files with 12 additions and 1 deletions
  1. 4 0
      pages/activity/activity.vue
  2. 5 0
      pages/chart/chart.vue
  3. 3 1
      pages/chart/component/noAuth.vue

+ 4 - 0
pages/activity/activity.vue

@@ -350,6 +350,7 @@ export default {
                                 apiApplyPermission({
                                     company_name:res.data.customer_info.company_name,
                                     real_name:res.data.customer_info.name,
+                                    source:2,
                                 }).then(res=>{
                                     if(res.code===200){
                                         console.log('主动申请成功');
@@ -641,6 +642,7 @@ export default {
                             apiApplyPermission({
                                 company_name:res.data.customer_info.company_name,
                                 real_name:res.data.customer_info.name,
+                                source:2,
                             }).then(res=>{
                                 if(res.code===200){
                                     console.log('主动申请成功');
@@ -717,6 +719,7 @@ export default {
                             apiApplyPermission({
                                 company_name:res.data.customer_info.company_name,
                                 real_name:res.data.customer_info.name,
+                                source:2,
                             }).then(res=>{
                                 if(res.code===200){
                                     console.log('主动申请成功');
@@ -774,6 +777,7 @@ export default {
                     const res=await apiApplyPermission({
                         company_name:this.pupData.customer_info.company_name,
                         real_name:this.pupData.customer_info.name,
+                        source:2,
                     })
                     if(res.code===200){
                         this.pupData.content=`<p>申请已提交</p><p>请等待销售人员与您联系</p>`

+ 5 - 0
pages/chart/chart.vue

@@ -124,6 +124,11 @@ export default {
       this.getClassifyList()
       this.addEventListenerSelectClassify()
     },
+    onShow() {
+      if(!this.hasAuth){
+        this.getClassifyList()
+      }
+    },
     onUnload(){
       uni.$off('classifyPageSelect')
     },

+ 3 - 1
pages/chart/component/noAuth.vue

@@ -48,7 +48,7 @@ export default {
             if(this.info.type==='apply'&&!this.info.customer_info.has_apply){
                 return 3
             }
-            if(this.info.type==='apply'&&!this.info.customer_info.has_apply){
+            if(this.info.type==='apply'&&this.info.customer_info.has_apply){
                 return 4
             }
         }
@@ -67,6 +67,7 @@ export default {
                 apiApplyPermission({
                     company_name:this.info.customer_info.company_name,
                     real_name:this.info.customer_info.name,
+                    source:3,
                 }).then(res=>{
                     uni.navigateTo({url:'/pages-applyPermission/applyResult'})
                 })
@@ -88,6 +89,7 @@ export default {
         margin-bottom: 50rpx;
     }
     .img-wait{
+        margin-top: 200rpx;
         width: 186rpx;
         margin-bottom: 50rpx;
     }