效果如下:
html:
<!-- 物流信息 -->
<view class="LogisticsInformation_Box">
<view class="LogisticsInformation">
<view class="LogisticsInformation_topBox">
<image src="../../static/image/my/kuaidi.png"></image>
<view>申通快递</view>
<view>123456789010987654321</view>
<view class="btnCopy">
复制
</view>
</view>
<!-- 签收信息 -->
<view class="Logistics_information">
<view class="Logistics_informationBox" v-for="(item,index) in steps" :key="index">
<view class="timesBox">
{{item.spans}}
</view>
<view class="Logistics_information_left">
</view>
<view class="Logistics_information_right">
<view class="imagesimg">
<image :src="item.icon" class="imgs" :class="item.status ?'wl_Order_placed':''">
</image>
</view>
<view class="content">
<view class="content_title">{{item.text}}</view>
<view class="content_detail">{{item.desc}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
css: ( 用了less )
// 物流信息
.LogisticsInformation_Box {
width: 100%;
background-color: #fff;
margin-top: 5rpx;
.LogisticsInformation {
width: 660rpx;
margin: 0 auto;
padding: 5rpx 0;
.LogisticsInformation_topBox {
display: flex;
image {
width: 33rpx;
height: 33rpx;
margin-right: 15rpx;
border-radius: 50%;
}
font-size: 18rpx;
font-family: zihun105hao-jianyahei;
font-weight: 400;
color: #050505;
view {
margin-right: 15rpx;
}
.btnCopy {
margin-left: 35rpx;
font-size: 18rpx;
font-family: SourceHanSansCN;
font-weight: 300;
color: #FCC1C7;
}
}
.Logistics_information {
width: 700rpx;
margin: 0 auto;
margin-top: 40rpx;
.Logistics_informationBox {
display: flex;
.timesBox {
width: 100rpx;
font-size: 16rpx;
font-family: zihun105hao-jianyahei;
font-weight: 400;
color: #767676;
}
.Logistics_information_left {
width: 4rpx;
background-color: #C9C9C9;
}
.Logistics_information_right {
display: flex;
height: 130rpx;
.imagesimg {
.wl_Order_placed {
width: 52rpx !important;
height: 52rpx !important;
background-color: #fff !important;
margin-left: -28rpx !important;
margin-right: 30rpx !important;
}
.imgs {
margin-left: -12rpx;
width: 18rpx;
height: 18rpx;
background-color: #fff;
margin-right: 49rpx;
}
}
.content {
.content_title {
width: 150rpx;
font-size: 18rpx;
font-family: SimHei;
font-weight: 400;
color: #8A8A8A;
display: flex;
justify-content: space-between;
.content_data {
font-size: 14rpx;
font-family: SimHei;
font-weight: 400;
color: #8A8A8A;
}
}
.content_detail {
margin-top: 15rpx;
width: 500rpx;
height: 14rpx;
font-size: 14rpx;
font-family: SimHei;
font-weight: 400;
color: #8A8A8A;
}
}
}
}
.Logistics_informationBox:first-child .timesBox {
font-size: 16rpx;
font-family: SourceHanSansCN;
font-weight: 500;
color: #000000 !important;
}
.Logistics_informationBox:last-child .Logistics_information_left {
width: 0;
}
.Logistics_informationBox:first-child .Logistics_information_right .content .content_title,
.Logistics_informationBox:first-child .Logistics_information_right .content .content_detail {
font-size: 16rpx;
font-family: SourceHanSansCN;
font-weight: 500;
color: #000000 !important;
}
}
}
}
js:
<script>
export default {
data() {
return {
steps: [{
text: '运输中',
spans: '03-02 19:00',
desc: '快件已到达【上海】',
icon: '../../static/image/my/order/wl_Signed_in.png',
status: true
},
{
spans: '03-02 19:00',
desc: '快件已到达【上海转运中心】扫描员是【001】',
icon: '../../static/image/my/order/wl_icon.png',
status: false
},
{
spans: '03-02 19:00',
desc: '快件已到达【上海转运中心】扫描员是【001】',
icon: '../../static/image/my/order/wl_icon.png',
status: false
},
{
spans: '03-02 19:00',
desc: '快件已到达【上海转运中心】扫描员是【001】',
icon: '../../static/image/my/order/wl_icon.png',
status: false
},
{
spans: '03-02 19:00',
desc: '快件已到达【上海转运中心】扫描员是【001】',
icon: '../../static/image/my/order/wl_icon.png',
status: false
},
{
spans: '03-02 19:00',
desc: '快件由【华北转运中心】发往【上海转运中心】',
icon: '../../static/image/my/order/wl_icon.png',
status: false
},
{
text: '已揽件',
spans: '03-02 19:00',
desc: '卖家已揽件',
icon: '../../static/image/my/order/lanjian.png',
status: true
},
{
text: '已发货',
spans: '03-02 19:00',
desc: '包裹正在等待揽收',
icon: '../../static/image/my/order/wl_Delivered.png',
status: true
},
{
text: '已下单',
spans: '03-02 19:00',
desc: '商品已下单',
icon: '../../static/image/my/order/wl_Order_placed.png',
status: true
},
],
}
},
methods: {
}
}
</script>