jwyu 2 年 前
コミット
a820875230

+ 14 - 12
src/views/hzyb/chart/component/noAuth.vue

@@ -35,18 +35,6 @@ const authType = computed(() => {
 });
 
 const handleAutoApply=()=>{
-  if(userInfo.value.is_bind===0){
-    Dialog.confirm({
-      title:'温馨提示',
-      message:'为了优化您的用户体验,\n 请登录后查看更多信息!',
-      confirmButtonText:'去登录',
-      confirmButtonColor:'#E6B77D',
-      cancelButtonColor:'#666'
-    }).then(res=>{
-      wx.miniProgram.reLaunch({url:'/pages/login'})
-    })
-    return
-  }
   if(!props.data.customer_info.has_apply){
     if(props.data.customer_info.status=='冻结'||(props.data.customer_info.status=='试用'&&props.data.customer_info.is_suspend==1)){
         apiApplyPermission({
@@ -65,6 +53,20 @@ const handleAutoApply=()=>{
 
 // 点击申请
 const handleApply=()=>{
+    if(userInfo.value.is_bind===0){
+      Dialog.confirm({
+        title:'温馨提示',
+        message:'为了优化您的用户体验,\n 请登录后查看更多信息!',
+        confirmButtonText:'去登录',
+        confirmButtonColor:'#E6B77D',
+        cancelButtonColor:'#666'
+      }).then(res=>{
+        wx.miniProgram.reLaunch({url:'/pages/login'})
+      })
+      return
+    }
+
+
     if(props.data.customer_info.status=='流失'){
         apiApplyPermission({
             company_name:props.data.customer_info.company_name,

+ 1 - 0
src/views/hzyb/report/ChapterDetail.vue

@@ -207,6 +207,7 @@ export default {
     this.chapterId=this.$route.query.chapterId
     this.fromPage=this.$route.query.fromPage||''
     this.getDetail()
+    this.getUserInfo()
   },
   mounted(){
         $(document).on('click', '.rich-content img',function(event) {