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.

241 lines
5.8 KiB

2 years ago
<template>
<view class='ordercontainer'>
2 years ago
<view class="tabsnav">
<u-tabs :list="list" :is-scroll="true" bg-color="#f0efed" bar-width="24" bar-height="24" gutter="53" font-size="24" inactive-color="#000" :active-item-style="{fontSize:'30rpx',color:'#ba8b45'}" :bar-style="{ right:'-36rpx',position:'relative',bottom:'32rpx',background:'#5b5b5a'}" :current="current" @change="change"></u-tabs>
2 years ago
</view>
<view class="orderlist">
<!-- 1条数据开始 -->
<view class="orderitem">
<view class="ordertop">
<text>运单号SFSF1454237639361</text>
<text>已发货</text>
</view>
<view class="orderinfo">
<view class="orderbrief">
<view class="orderimg">
<image src="../../static/orderimg1.jpg" mode="widthFix"></image>
</view>
<view class="orderright">
<view class="ordertitle">蟹太太大闸蟹红金款999型</view>
<view class="ordersmalltext">公4.0两母3.0 4 8只装</view>
</view>
</view>
<view class="ordertime">
<text>预计送达时间</text>
<view>9月28日<text class="orderweek">[周三]</text>09:00-15:00</view>
</view>
<view class="ordertab">
<text class="deleteorder">删除订单</text>
<text class="orderinform">通知收件人</text>
</view>
2 years ago
</view>
</view>
<!-- 1条数据结束 -->
<!-- 2条数据开始 -->
<view class="orderitem">
<view class="ordertop">
<text>商品兑换成功</text>
<text>待发货</text>
</view>
<view class="orderinfo">
<view class="orderbrief">
<view class="orderimg">
<image src="../../static/orderimg1.jpg" mode="widthFix"></image>
</view>
<view class="orderright">
<view class="ordertitle">蟹太太大闸蟹红金款999型</view>
<view class="ordersmalltext">公4.0两母3.0 4 8只装</view>
</view>
</view>
<view class="ordertime">
<text>预计送达时间</text>
<view>9月28日<text class="orderweek">[周三]</text>09:00-15:00</view>
</view>
<view class="ordertab">
<text class="addremark">添加备注</text>
<text class="deleteorder">删除订单</text>
<text class="orderinform">通知收件人</text>
</view>
</view>
</view>
<!-- 2条数据结束 -->
<!-- 3条数据开始 -->
<view class="orderitem">
<view class="ordertop">
<text>商品兑换成功</text>
<text>待发货</text>
</view>
<view class="orderinfo">
<view class="orderbrief">
<view class="orderimg">
<image src="../../static/orderimg1.jpg" mode="widthFix"></image>
</view>
<view class="orderright">
<view class="ordertitle">蟹太太大闸蟹红金款999型</view>
<view class="ordersmalltext">公4.0两母3.0 4 8只装</view>
</view>
</view>
<view class="ordertime">
<text>预计送达时间</text>
<view>9月28日<text class="orderweek">[周三]</text>09:00-15:00</view>
</view>
<view class="ordertab">
<text class="addremark">添加备注</text>
<text class="deleteorder">删除订单</text>
<text class="orderinform">通知收件人</text>
</view>
</view>
</view>
<!-- 3条数据结束 -->
2 years ago
</view>
</view>
</template>
<script>
export default {
2 years ago
data() {
return {
list: [{
name: '全部'
2 years ago
}, {
name: '待发货'
}, {
name: '待收货',
},{
2 years ago
name: '已完成',
}],
current: 0
2 years ago
}
},
onLoad() {
2 years ago
},
methods: {
change(index) {
this.current = index;
2 years ago
},
2 years ago
}
}
</script>
<style lang="scss">
.ordercontainer{
background: #f0efed;
width: 100%;
height: 100vh;
overflow-y: scroll;
2 years ago
}
.tabsnav {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 80rpx;
2 years ago
z-index: 999;
overflow: hidden;
text-align: center;
// padding: 0 33rpx;
2 years ago
}
.tabsnav {
/deep/ .u-tab-item{
z-index: 2;
2 years ago
}
}
.orderlist {
padding: 82rpx 50rpx 56rpx;
}
.orderitem{
overflow: hidden;
margin-bottom: 25rpx;
background: url(../../static/libg.jpg) no-repeat center center;
background-size: cover;
border-radius: 10rpx;
box-shadow: 0 5px 15px rgba(0,0,0,.47);
padding: 12rpx;
}
.ordertop{
display: flex;
padding: 13rpx 20rpx 23rpx;
justify-content: space-between;
}
.ordertop text{
font-size: 24rpx;
color: #f2d6c1;
}
.orderinfo{
background: #fff;
padding: 24rpx;
border-radius: 10rpx;
}
.orderbrief{
display: flex;
padding-bottom: 24rpx;
}
.orderimg{
border: 1rpx solid rgba(186,139,69,.6);
border-radius: 10rpx;
overflow: hidden;
width: 150rpx;
height: 150rpx;
background: #fff;
text-align: center;
}
.orderimg image{
width: 100%;
height: auto;
vertical-align: middle;
}
.orderright{
padding-left: 32rpx;
width: 430rpx;
font-size: 24rpx;
color: #000;
padding-top: 20rpx;
}
.ordertitle{
height: 40rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 40rpx;
}
.ordersmalltext{
text-align: justify;
}
.ordertime{
display: flex;
justify-content: space-between;
line-height: 36rpx;
font-size: 24rpx;
color: #000;
padding-bottom: 10rpx;
border-bottom: 1rpx solid #ececec;
margin-bottom: 26rpx;
}
.ordertime view text.orderweek{
color: #b62828;
margin: 0 10rpx;
}
.ordertab{
display: flex;
justify-content: flex-end;
}
.ordertab text{
display: inline-block;
width: 160rpx;
height: 50rpx;
margin: 0 22rpx;
border-radius: 50rpx;
text-align: center;
line-height: 50rpx;
border: 1rpx solid #cececd;
font-size: 24rpx;
color: #000;
}
.ordertab text.orderinform{
color: #ba8b45;
margin-right: 0;
}
2 years ago
</style>