积分兑换
This commit is contained in:
@@ -14,7 +14,10 @@
|
|||||||
<div class="list-content">
|
<div class="list-content">
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<div :class="search.newestSort === 0 ? 'active' : ''" @click="clickNew()">最新上架</div>
|
<div :class="search.newestSort === 0 ? 'active' : ''" @click="clickNew()">最新上架</div>
|
||||||
<div class="price" :class="search.priceSort == 0 ? 'active' : ''" @click="clickPrice()">价格<span class="top mar-l8" :class="search.priceSort == 0 ? 'active' : ''">⏶</span><span class="bottom mar-l8" :class="search.priceSort === 1 ? 'active' : ''">⏷</span></div>
|
<div class="price" :class="search.priceSort !== '' ? 'active' : ''" @click="clickPrice()">价格
|
||||||
|
<span class="top mar-l8" :class="search.priceSort === 0 ? 'active' : ''">⏶</span>
|
||||||
|
<span class="bottom mar-l8" :class="search.priceSort === 1 ? 'active' : ''">⏷</span>
|
||||||
|
</div>
|
||||||
<div class="sure" :class="search.status == 2 ? 'active' : ''" @click="clickStatus()">可兑换的
|
<div class="sure" :class="search.status == 2 ? 'active' : ''" @click="clickStatus()">可兑换的
|
||||||
<img src="./components/imgs/check-icon.png" alt="" v-if="search.status == 2">
|
<img src="./components/imgs/check-icon.png" alt="" v-if="search.status == 2">
|
||||||
</div>
|
</div>
|
||||||
@@ -115,10 +118,14 @@ export default {
|
|||||||
},
|
},
|
||||||
clickNew() {
|
clickNew() {
|
||||||
this.search.newestSort = this.search.newestSort === 0 ? '' : 0
|
this.search.newestSort = this.search.newestSort === 0 ? '' : 0
|
||||||
|
if(this.search.newestSort == 0) {
|
||||||
|
this.search.priceSort = ''
|
||||||
|
}
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
},
|
},
|
||||||
clickPrice() {
|
clickPrice() {
|
||||||
this.search.priceSort = this.search.priceSort == 1 ? 0 : 1
|
this.search.priceSort = this.search.priceSort == 1 ? 0 : 1
|
||||||
|
this.search.newestSort = ''
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user