47 lines
1.2 KiB
Vue
47 lines
1.2 KiB
Vue
|
<template>
|
||
|
<view>
|
||
|
<status-container titlet="我的订单" returnc="#FFFFFF">
|
||
|
<view slot="content" style="margin-top: -20rpx;">
|
||
|
<view class="posi-sticky" :style="{top:newtop+'px'}">
|
||
|
<swiper-tab id="tab" :list="dataList" v-model="current" @changeEv="clickTab" :itemColor="'#e42417'" :lineColor="'#e42417'"></swiper-tab>
|
||
|
</view>
|
||
|
<view class="pad-zy20">
|
||
|
<pitera textStr="上滑加载更多/到底了~~" textColor="#b0aaa9" paddingStr="40rpx 0 20rpx 0"></pitera>
|
||
|
</view>
|
||
|
</view>
|
||
|
</status-container>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import swiperTab from '@/components/swiper-tab/swiper-tab.vue';
|
||
|
import pitera from '@/components/nothing/pitera.vue';
|
||
|
export default {
|
||
|
components:{swiperTab,pitera},
|
||
|
data() {
|
||
|
return {
|
||
|
newtop:uni.getSystemInfoSync().statusBarHeight + 42,
|
||
|
// newtop:uni.getSystemInfoSync().statusBarHeight + (140 / 750 * uni.getSystemInfoSync().windowWidth),
|
||
|
current:0,
|
||
|
dataList:[
|
||
|
{title:'全部'},
|
||
|
{title:'待付款'},
|
||
|
{title:'待收货'},
|
||
|
{title:'已完成'},
|
||
|
],
|
||
|
}
|
||
|
},
|
||
|
onLoad() {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
// tab点击事件
|
||
|
clickTab(index){
|
||
|
this.current = index;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style></style>
|