积分兑换

This commit is contained in:
liuye
2022-12-01 11:16:33 +08:00
parent b58678d896
commit 976cfc2341

View File

@@ -18,8 +18,8 @@
<span class="top mar-l8" :class="search.priceSort === 0 ? 'active' : ''"></span> <span class="top mar-l8" :class="search.priceSort === 0 ? 'active' : ''"></span>
<span class="bottom mar-l8" :class="search.priceSort === 1 ? 'active' : ''"></span> <span class="bottom mar-l8" :class="search.priceSort === 1 ? 'active' : ''"></span>
</div> </div>
<div class="sure" :class="search.status == 2 ? 'active' : ''" @click="clickStatus()">可兑换的 <div class="sure" :class="search.isExchange == 1 ? '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.isExchange == 1">
</div> </div>
</div> </div>
<div class="type"> <div class="type">
@@ -53,9 +53,9 @@ export default {
typeList: ['全部', '100分以下', '500分以下', '1000分以下', '5000分以下'], typeList: ['全部', '100分以下', '500分以下', '1000分以下', '5000分以下'],
typeIndex: 0, typeIndex: 0,
search: { search: {
status: '',
newestSort: '0', newestSort: '0',
priceSort: '' priceSort: '',
isExchange: ''
}, },
userIntegral: '' userIntegral: ''
} }
@@ -113,7 +113,7 @@ export default {
uni.navigateTo({url:`./myOrder`}) uni.navigateTo({url:`./myOrder`})
}, },
clickStatus() { clickStatus() {
this.search.status = this.search.status == 2 ? '' : 2 this.search.isExchange = this.search.isExchange == 1 ? '' : 1
this.getListInit() this.getListInit()
}, },
clickNew() { clickNew() {