浏览代码

feat:加载优化、我得文库不展示标签

zhangsiya 11 月之前
父节点
当前提交
a786c107d1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      jydocs-mobile/src/components/docs-card/Card.vue
  2. 1 1
      jydocs-mobile/src/views/details/details.vue

+ 1 - 1
jydocs-mobile/src/components/docs-card/Card.vue

@@ -78,7 +78,7 @@ export default class DocsCard extends Vue {
   @Prop({ default: '' }) uploader?: string | undefined;
   @Prop({ default: -1 }) price?: string | number;
   @Prop({ default: false }) isVip?: boolean;
-  @Prop({ default: 1 }) productType?: number;
+  @Prop({ default: 0 }) productType?: number;
   @Prop({
     type: Array,
     default () {

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

@@ -679,10 +679,10 @@ export default class extends Vue {
 
   buyShow (type: any) {
     this.getShow({ docId: this.docIds }).then((res: any) => {
+      this.buyShowUrl = res.data
       if (res.data.includes('.pdf') || this.detailData.docFileType === 2 || !this.showfileType) {
         this.getNumPages(res.data, type)
       }
-      this.buyShowUrl = res.data
     })
   }