xiongzhu hace 4 años
padre
commit
3c59846635
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/main/nine-space/src/views/Discover.vue

+ 3 - 3
src/main/nine-space/src/views/Discover.vue

@@ -154,7 +154,7 @@ export default {
             this.getProduct('BLIND_BOX').then(res => {
             this.getProduct('BLIND_BOX').then(res => {
                 this.box = res;
                 this.box = res;
             });
             });
-            this.getProduct('DEFAULT').then(res => {
+            this.getProduct('DEFAULT', 'likes,desc;sort,desc;createdAt,desc').then(res => {
                 this.hots = res;
                 this.hots = res;
             });
             });
             this.getProduct().then(res => {
             this.getProduct().then(res => {
@@ -162,7 +162,7 @@ export default {
             });
             });
             this.getMiner();
             this.getMiner();
         },
         },
-        getProduct(type = '') {
+        getProduct(type = '', sort = 'sort,desc') {
             return this.$http
             return this.$http
                 .post(
                 .post(
                     '/collection/all',
                     '/collection/all',
@@ -175,7 +175,7 @@ export default {
                             del: false,
                             del: false,
                             source: 'OFFICIAL'
                             source: 'OFFICIAL'
                         },
                         },
-                        sort: 'sort,desc'
+                        sort: sort
                     },
                     },
                     { body: 'json' }
                     { body: 'json' }
                 )
                 )