|
@@ -8,10 +8,10 @@
|
|
|
v-for="(item, index) in sortTypeList"
|
|
|
:key="index"
|
|
|
@click="sortAndSearch(item, index)"
|
|
|
- :class="{ active: item.active }"
|
|
|
+ :class="{ active: item.active, reverse: item.sort }"
|
|
|
>
|
|
|
<span class="sort-text">{{ item.label }}</span>
|
|
|
- <span class="sort-icon" :class="item.sort ? 'el-icon-top' : 'el-icon-bottom'"></span>
|
|
|
+ <span class="sort-icon" :class="'el-icon-jy-' + (item.active ? 'down-blue' : 'down-grey')"></span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="search-result-list" v-loading="listState.loading">
|
|
@@ -198,6 +198,9 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+@include diy-icon('down-grey', 18, 18);
|
|
|
+@include diy-icon('down-blue', 18, 18);
|
|
|
+
|
|
|
.search-container {
|
|
|
padding-top: 48px;
|
|
|
}
|
|
@@ -224,6 +227,11 @@ export default {
|
|
|
.sort-icon {
|
|
|
color: #aaa;
|
|
|
}
|
|
|
+ &.reverse {
|
|
|
+ .sort-icon {
|
|
|
+ transform: rotate(180deg);
|
|
|
+ }
|
|
|
+ }
|
|
|
&.active {
|
|
|
.sort-text,
|
|
|
.sort-icon {
|