浏览代码

feat:登录文档调试

zhangsiya 10 月之前
父节点
当前提交
a405cb504e
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 2 0
      jydocs-mobile/public/index.html
  2. 3 1
      jydocs-mobile/src/views/details/details.vue

+ 2 - 0
jydocs-mobile/public/index.html

@@ -25,6 +25,8 @@
     <script type="text/javascript" src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
     <% } %>
     <script src="/common-module/public/head.js"></script>
+    <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
+    <script> new VConsole(); </script>
 </head>
 <body>
 <noscript>

+ 3 - 1
jydocs-mobile/src/views/details/details.vue

@@ -456,7 +456,7 @@ export default class extends Vue {
     // P620需求:1、未购买预览时,引流文案
     // 或者,购买豆丁文件加载时错误后,最多预览5页,最后的引流文案
     let btnText = '下载文档阅读全文'
-    if(!this.loginInfo) {
+    if (!this.loginInfo) {
       return '开通文库会员免费阅读全文'
     }
     if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
@@ -831,6 +831,8 @@ export default class extends Vue {
   }
 
   readAll () {
+    console.log(444444444)
+    console.log(this.loginInfo)
     if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
       this.getFile()
     } else if ((this.power.freeDownload === 2 || this.power.freeDownload === 0) && this.isvipFree && this.buyed === 0 && !this.isviper) {