|
|
@@ -58,8 +58,8 @@
|
|
|
<div class="domain_price_con" @click="priceOrder">
|
|
|
<div>价格排序</div>
|
|
|
<div class="tab">
|
|
|
- <van-icon size="8" name="arrow-up" :class="source ? 'tab_text' : ''" />
|
|
|
- <van-icon size="8" name="arrow-down" :class="source ? '' : 'tab_text'" />
|
|
|
+ <van-icon size="8" name="arrow-up" :class="source ? '' : 'tab_text'" />
|
|
|
+ <van-icon size="8" name="arrow-down" :class="source ? 'tab_text' : ''" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -262,14 +262,18 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
domainWidth: '0px',
|
|
|
- domainNameType: 'LIKE',
|
|
|
+ domainNameType: 'SELL',
|
|
|
scrollTop: 0,
|
|
|
rarityType: '',
|
|
|
characteristicType: '',
|
|
|
show: false,
|
|
|
- domainPrice: false,
|
|
|
+ domainPrice: true,
|
|
|
source: true,
|
|
|
domainNameList: [
|
|
|
+ {
|
|
|
+ name: '寄售中',
|
|
|
+ type: 'SELL'
|
|
|
+ },
|
|
|
{
|
|
|
name: '热度排行',
|
|
|
type: 'LIKE'
|
|
|
@@ -278,10 +282,6 @@ export default {
|
|
|
name: '最新发布',
|
|
|
type: 'RELEASE'
|
|
|
},
|
|
|
- {
|
|
|
- name: '寄售中',
|
|
|
- type: 'SELL'
|
|
|
- },
|
|
|
{
|
|
|
name: '仅展示',
|
|
|
type: 'SEE'
|
|
|
@@ -314,6 +314,10 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
characteristicList: [
|
|
|
+ {
|
|
|
+ name: '二位数字',
|
|
|
+ type: 'RIDN2'
|
|
|
+ },
|
|
|
{
|
|
|
name: '三位数字',
|
|
|
type: 'RIDN3'
|
|
|
@@ -361,6 +365,7 @@ export default {
|
|
|
},
|
|
|
priceOrder() {
|
|
|
this.source = !this.source;
|
|
|
+ this.dressing = true;
|
|
|
this.getList(true);
|
|
|
},
|
|
|
showStatus() {
|
|
|
@@ -392,10 +397,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
refreash() {
|
|
|
- (this.domainNameType = 'LIKE'), (this.rarityType = '');
|
|
|
+ (this.domainNameType = 'SELL'), (this.rarityType = '');
|
|
|
this.characteristicType = '';
|
|
|
- this.dressing = false;
|
|
|
- this.domainPrice = false;
|
|
|
+ this.dressing = true;
|
|
|
+ this.domainPrice = true;
|
|
|
this.getList(true);
|
|
|
},
|
|
|
submit() {
|
|
|
@@ -425,7 +430,7 @@ export default {
|
|
|
let query = {
|
|
|
type: 'DOMAIN'
|
|
|
};
|
|
|
- let sort = 'likes,desc';
|
|
|
+ let sort = 'price,desc';
|
|
|
if (this.dressing) {
|
|
|
if (this.rarityType != '') {
|
|
|
query = {
|
|
|
@@ -455,6 +460,7 @@ export default {
|
|
|
...query,
|
|
|
salable: false
|
|
|
};
|
|
|
+ sort = 'likes,desc';
|
|
|
}
|
|
|
if (this.domainNameType == 'RELEASE') {
|
|
|
query = {
|
|
|
@@ -462,6 +468,12 @@ export default {
|
|
|
};
|
|
|
sort = 'createdAt,desc';
|
|
|
}
|
|
|
+ if (this.domainNameType == 'LIKE') {
|
|
|
+ query = {
|
|
|
+ ...query
|
|
|
+ };
|
|
|
+ sort = 'likes,desc';
|
|
|
+ }
|
|
|
}
|
|
|
let url = 'collection/all';
|
|
|
return this.$http
|