浏览代码

fix: 研报小程序登录优化

ldong 7 月之前
父节点
当前提交
fc741ee48d
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 11 0
      src/views/hzyb/report/ChapterDetail.vue
  2. 11 0
      src/views/hzyb/report/Detail.vue

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

@@ -337,6 +337,17 @@ export default {
       const res=await apiUserInfo()
       if(res.code===200){
         this.userInfo=res.data
+        if(this.userInfo.is_bind===0){
+            Dialog.confirm({
+                title:'温馨提示',
+                message:'为了优化您的用户体验,\n 请登录后查看更多信息!',
+                confirmButtonText:'去登录',
+                confirmButtonColor:'#E6B77D',
+                cancelButtonColor:'#666'
+            }).then(res=>{
+                wx.miniProgram.reLaunch({url:'/pages/login'})
+            })
+        }
         if(!iswatermark) return
         this.$nextTick(()=>{
           this.waterMark(res.data.mobile,this.$refs.richConBox)

+ 11 - 0
src/views/hzyb/report/Detail.vue

@@ -412,6 +412,17 @@ export default {
             const res=await apiUserInfo()
             if(res.code===200){
                 this.userInfo=res.data
+                if(this.userInfo.is_bind===0){
+                    Dialog.confirm({
+                        title:'温馨提示',
+                        message:'为了优化您的用户体验,\n 请登录后查看更多信息!',
+                        confirmButtonText:'去登录',
+                        confirmButtonColor:'#E6B77D',
+                        cancelButtonColor:'#666'
+                    }).then(res=>{
+                        wx.miniProgram.reLaunch({url:'/pages/login'})
+                    })
+                }
             }
         },