|
@@ -26,7 +26,7 @@
|
|
|
<span @click="changeSelect">{{binSectionName}}板块</span>
|
|
|
</div>
|
|
|
<div class="mainSeachImg">
|
|
|
- <img :src="sortImg" alt="">
|
|
|
+ <img :src="sortImg" alt="" @click="sortSeasonData">
|
|
|
<img :src="seachImg" alt="" @click="getSeasonData(binSection, showDate)">
|
|
|
</div>
|
|
|
</div>
|
|
@@ -168,6 +168,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ sortSeasonData() {
|
|
|
+ if (this.seasonConpanyData.length>1) {
|
|
|
+ if (this.seasonConpanyData[0].score > this.seasonConpanyData[this.seasonConpanyData.length-1].score) {
|
|
|
+ this.seasonConpanyData.sort(function(a,b){
|
|
|
+ return a.score - b.score
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.seasonConpanyData.sort(function(a,b){
|
|
|
+ return b.score - a.score
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
chooseMenu() {
|
|
|
this.$router.push({ path: "/menu"})
|
|
|
},
|