Bläddra i källkod

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

zhangsiya 11 månader sedan
förälder
incheckning
a786c107d1

+ 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
     })
   }