panhui 4 년 전
부모
커밋
a314dfadc0
2개의 변경된 파일20개의 추가작업 그리고 14개의 파일을 삭제
  1. 5 0
      src/views/Discover.vue
  2. 15 14
      src/views/product/Detail.vue

+ 5 - 0
src/views/Discover.vue

@@ -260,6 +260,10 @@ export default {
             this.loading = true;
             this.loading = true;
             this.finished = false;
             this.finished = false;
             this.empty = false;
             this.empty = false;
+            let type = '';
+            if (this.sort === 'likes,desc') {
+                type = 'DEFAULT';
+            }
             return this.$http
             return this.$http
                 .post(
                 .post(
                     '/collection/all',
                     '/collection/all',
@@ -269,6 +273,7 @@ export default {
                         query: {
                         query: {
                             onShelf: true,
                             onShelf: true,
                             del: false,
                             del: false,
+                            type: type,
                             source: this.$store.state.reviewPay ? 'OFFICIAL' : ''
                             source: this.$store.state.reviewPay ? 'OFFICIAL' : ''
                         },
                         },
                         sort: this.sort
                         sort: this.sort

+ 15 - 14
src/views/product/Detail.vue

@@ -669,20 +669,21 @@ export default {
             }
             }
         },
         },
         vipAssignment() {
         vipAssignment() {
-            if (this.info.vipSurplus <= 0) {
-                this.$dialog
-                    .alert({
-                        title: '通道已关闭',
-                        message: '您的vip购买次数已经用完啦,请完成邀请任务继续购买吧~'
-                    })
-                    .then(res => {
-                        if (this.info.totalQuota) {
-                            this.share();
-                        }
-                    });
-            } else {
-                this.buy();
-            }
+            // if (this.info.vipSurplus <= 0) {
+            //     this.$dialog
+            //         .alert({
+            //             title: '通道已关闭',
+            //             message: '您的vip购买次数已经用完啦,请完成邀请任务继续购买吧~'
+            //         })
+            //         .then(res => {
+            //             if (this.info.totalQuota) {
+            //                 this.share();
+            //             }
+            //         });
+            // } else {
+            //     this.buy();
+            // }
+            this.buy();
         },
         },
         onRefresh() {
         onRefresh() {
             this.getInit().then(() => {
             this.getInit().then(() => {