|
|
@@ -11,9 +11,7 @@
|
|
|
<van-sticky ref="top" :offset-top="bar && bar.show ? bar.height : 0">
|
|
|
<div class="top">
|
|
|
<div class="top-btn">
|
|
|
- <div class="btn" :class="{ active: type === '' }" @click="changeActive('')">
|
|
|
- 藏品订单
|
|
|
- </div>
|
|
|
+ <div class="btn" :class="{ active: type === '' }" @click="changeActive('')">藏品订单</div>
|
|
|
<div class="btn" :class="{ active: type === 'DEFAULT' }" @click="changeActive('DEFAULT')">
|
|
|
铸造订单
|
|
|
</div>
|
|
|
@@ -46,11 +44,25 @@
|
|
|
</van-tabs>
|
|
|
</van-sticky>
|
|
|
|
|
|
- <van-list class="list" v-model:loading="loading" :finished="finished" finished-text="" @load="getData" v-if="type == ''">
|
|
|
+ <van-list
|
|
|
+ class="list"
|
|
|
+ v-model:loading="loading"
|
|
|
+ :finished="finished"
|
|
|
+ finished-text=""
|
|
|
+ @load="getData"
|
|
|
+ v-if="type == ''"
|
|
|
+ >
|
|
|
<order-info @delFn="delFn" v-for="item in list" :key="item.id" :info="item"></order-info>
|
|
|
<van-empty v-if="empty" description="你还没有订单哦~" :image="require('@assets/kong_png_wudingdan.png')" />
|
|
|
</van-list>
|
|
|
- <van-list class="list" v-model:loading="loading" :finished="finished" finished-text="" @load="getData" v-if="type == 'DEFAULT'">
|
|
|
+ <van-list
|
|
|
+ class="list"
|
|
|
+ v-model:loading="loading"
|
|
|
+ :finished="finished"
|
|
|
+ finished-text=""
|
|
|
+ @load="getData"
|
|
|
+ v-if="type == 'DEFAULT'"
|
|
|
+ >
|
|
|
<order-info-act
|
|
|
@delFn="delFn"
|
|
|
v-for="(item, index) in list"
|
|
|
@@ -166,12 +178,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.type = type;
|
|
|
- if(this.type == 'DEFAULT'){
|
|
|
- this.url = '/mintOrder/all',
|
|
|
- this.status = 'DELIVERY,PENDING,RECEIVE,AIR_DROP,FINISH'
|
|
|
- }else if(this.type == ''){
|
|
|
- this.url = '/order/all',
|
|
|
- this.status = 'PROCESSING,FINISH'
|
|
|
+ if (this.type == 'DEFAULT') {
|
|
|
+ (this.url = '/mintOrder/all'), (this.status = 'DELIVERY,PENDING,RECEIVE,AIR_DROP,FINISH');
|
|
|
+ } else if (this.type == '') {
|
|
|
+ (this.url = '/order/all'), (this.status = 'PROCESSING,FINISH');
|
|
|
}
|
|
|
this.getData(true);
|
|
|
},
|
|
|
@@ -190,7 +200,7 @@ export default {
|
|
|
padding: 10px 16px;
|
|
|
background-color: @bg;
|
|
|
align-items: center;
|
|
|
- .top_img{
|
|
|
+ .top_img {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
}
|