Pārlūkot izejas kodu

Merge branch 'yh238' into debug

ldong 10 mēneši atpakaļ
vecāks
revīzija
bc4271a8aa

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

@@ -337,6 +337,17 @@ export default {
       const res=await apiUserInfo()
       const res=await apiUserInfo()
       if(res.code===200){
       if(res.code===200){
         this.userInfo=res.data
         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
         if(!iswatermark) return
         this.$nextTick(()=>{
         this.$nextTick(()=>{
           this.waterMark(res.data.mobile,this.$refs.richConBox)
           this.waterMark(res.data.mobile,this.$refs.richConBox)

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

@@ -413,6 +413,17 @@ export default {
             const res=await apiUserInfo()
             const res=await apiUserInfo()
             if(res.code===200){
             if(res.code===200){
                 this.userInfo=res.data
                 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'})
+                    })
+                }
             }
             }
         },
         },