|
@@ -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' }
|
|
|
)
|
|
)
|