|
@@ -568,6 +568,9 @@ export default {
|
|
ranking: item.rank
|
|
ranking: item.rank
|
|
? parseInt(item.rank)
|
|
? parseInt(item.rank)
|
|
: Math.floor(Math.random() * 10000),
|
|
: Math.floor(Math.random() * 10000),
|
|
|
|
+ sale_time: item.sale_time
|
|
|
|
+ ? new Date(item.sale_time).getTime()
|
|
|
|
+ : 0,
|
|
}
|
|
}
|
|
const min = Number(item.price_min)
|
|
const min = Number(item.price_min)
|
|
const max = Number(item.price_max)
|
|
const max = Number(item.price_max)
|
|
@@ -642,13 +645,12 @@ export default {
|
|
this.$route.query.feature &&
|
|
this.$route.query.feature &&
|
|
Number(this.$route.query.feature) === 54
|
|
Number(this.$route.query.feature) === 54
|
|
) {
|
|
) {
|
|
- temp.sort((a, b) => b.create_time - a.create_time)
|
|
|
|
|
|
+ temp.sort((a, b) => b.sale_time - a.sale_time)
|
|
} else {
|
|
} else {
|
|
temp.sort(sortFunc)
|
|
temp.sort(sortFunc)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
this.productsList = temp
|
|
this.productsList = temp
|
|
this.loaded = true
|
|
this.loaded = true
|
|
this.listLoading = false
|
|
this.listLoading = false
|