You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.1 KiB
106 lines
2.1 KiB
<template> |
|
<view class="order_box"> |
|
<view class="order_title"> |
|
<p @click="handleTab(1)" class="tit" :class="active == 1 ? 'actived' : ''">全部</p> |
|
<p @click="handleTab(2)" class="tit" :class="active == 2 ? 'actived' : ''">待付款</p> |
|
<p @click="handleTab(3)" class="tit" :class="active == 3 ? 'actived' : ''">待发货</p> |
|
<p @click="handleTab(4)" class="tit" :class="active == 4 ? 'actived' : ''">待收货</p> |
|
<p @click="handleTab(5)" class="tit" :class="active == 5 ? 'actived' : ''">已完成</p> |
|
</view> |
|
<view class="order_content"> |
|
<view class="order_item"> |
|
<view class="top_title"> |
|
<p class="title">壹人壹枕</p> |
|
<p class="status_txt">待收货</p> |
|
</view> |
|
<view class="top_content"> |
|
<view class="left_cont"> |
|
<image class="img_box" src="../../../static/image/zhentou_bag.png" mode=""></image> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
data() { |
|
return { |
|
active:1, |
|
} |
|
}, |
|
methods: { |
|
handleTab(val){ |
|
this.active = val |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
.order_box{ |
|
.order_title{ |
|
width: 100%; |
|
height: 100rpx; |
|
background: #fff; |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-around; |
|
.tit{ |
|
padding-bottom: 10rpx; |
|
font-size: 26rpx; |
|
color: #333; |
|
|
|
&.actived{ |
|
border-bottom: 5rpx solid #D73232; |
|
color: #D73232; |
|
} |
|
} |
|
} |
|
.order_content{ |
|
width: 100%; |
|
height: auto; |
|
overflow-y: auto; |
|
|
|
.order_item{ |
|
width: 690rpx; |
|
background: #FFFFFF; |
|
border-radius: 30rpx; |
|
margin:0 auto; |
|
margin-top: 30rpx; |
|
|
|
.top_title{ |
|
padding: 30rpx 31rpx 25rpx; |
|
display: flex; |
|
justify-content: space-between; |
|
|
|
.title{ |
|
font-size: 28rpx; |
|
} |
|
.status_txt{ |
|
font-size: 24rpx; |
|
} |
|
} |
|
|
|
.top_content{ |
|
width: 630rpx; |
|
height: 160rpx; |
|
background: #F8F8F8; |
|
border-radius: 20rpx; |
|
margin: 0 auto; |
|
|
|
.left_cont{ |
|
width: 160rpx; |
|
height: 160rpx; |
|
|
|
.img_box{ |
|
width: 100%; |
|
height: 100%; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
</style>
|
|
|