积分兑换筛选条件
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
</AiTopFixed>
|
||||
<div class="list-content">
|
||||
<div class="select">
|
||||
<div :class="search.newStatus == 1 ? '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="search.newestSort === 0 ? 'active' : ''" @click="clickNew()">最新上架</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()">可兑换的
|
||||
<img src="./components/imgs/check-icon.png" alt="" v-if="search.status == 2">
|
||||
</div>
|
||||
@@ -51,8 +51,8 @@ export default {
|
||||
typeIndex: 0,
|
||||
search: {
|
||||
status: '',
|
||||
newStatus: '',
|
||||
priceStatus: '1'
|
||||
newestSort: '',
|
||||
priceSort: '0'
|
||||
},
|
||||
userIntegral: ''
|
||||
}
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
...this.search,
|
||||
size: 20,
|
||||
current: this.current,
|
||||
queryIntegralType: this.typeIndex
|
||||
queryIntegralType: this.typeIndex,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
@@ -113,11 +113,11 @@ export default {
|
||||
this.getListInit()
|
||||
},
|
||||
clickNew() {
|
||||
this.search.newStatus = this.search.newStatus == 1 ? '' : 1
|
||||
this.search.newestSort = this.search.newestSort === 0 ? '' : 0
|
||||
this.getListInit()
|
||||
},
|
||||
clickPrice() {
|
||||
this.search.priceStatus = this.search.priceStatus == 1 ? '' : 1
|
||||
this.search.priceSort = this.search.priceSort == 1 ? 0 : 1
|
||||
this.getListInit()
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user