积分兑换筛选条件

This commit is contained in:
liuye
2022-11-30 17:11:45 +08:00
parent b31a4c8b25
commit e6f5037b3a

View File

@@ -13,8 +13,8 @@
</AiTopFixed> </AiTopFixed>
<div class="list-content"> <div class="list-content">
<div class="select"> <div class="select">
<div :class="search.newStatus == 1 ? 'active' : ''" @click="clickNew()">最新上架</div> <div :class="search.newestSort === 0 ? 'active' : ''" @click="clickNew()">最新上架</div>
<div class="price" :class="search.priceStatus == 1 ? 'active' : ''" @click="clickPrice()">价格<span class="top mar-l8" :class="search.priceStatus == 1 ? 'active' : ''"></span><span class="bottom mar-l8" :class="search.priceStatus != 1 ? 'active' : ''"></span></div> <div class="price" :class="search.priceSort == 1 ? 'active' : ''" @click="clickPrice()">价格<span class="top mar-l8" :class="search.priceSort == 1 ? '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>
@@ -51,8 +51,8 @@ export default {
typeIndex: 0, typeIndex: 0,
search: { search: {
status: '', status: '',
newStatus: '', newestSort: '',
priceStatus: '1' priceSort: '0'
}, },
userIntegral: '' userIntegral: ''
} }
@@ -85,7 +85,7 @@ export default {
...this.search, ...this.search,
size: 20, size: 20,
current: this.current, current: this.current,
queryIntegralType: this.typeIndex queryIntegralType: this.typeIndex,
}, },
}) })
.then((res) => { .then((res) => {
@@ -113,11 +113,11 @@ export default {
this.getListInit() this.getListInit()
}, },
clickNew() { clickNew() {
this.search.newStatus = this.search.newStatus == 1 ? '' : 1 this.search.newestSort = this.search.newestSort === 0 ? '' : 0
this.getListInit() this.getListInit()
}, },
clickPrice() { clickPrice() {
this.search.priceStatus = this.search.priceStatus == 1 ? '' : 1 this.search.priceSort = this.search.priceSort == 1 ? 0 : 1
this.getListInit() this.getListInit()
}, },
}, },