yfs/pages/shop/wuliu_detail.vue
2025-03-14 11:01:58 +08:00

229 lines
4.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="wuliu">
<view class="status">
<view class="status_image">
<image :src="news.goods_image"></image>
<view class="status_foot">{{news.goods_num}}件商品</view>
</view>
<view>
<view class="sta_1">物流状态<text>{{news.status_name}}</text></view>
<view class="sta_2">快递公司{{news.delivery_name}}</view>
<view class="sta_3">快递单号{{news.delivery_no}}<text @click="copy(news.delivery_no)">复制</text></view>
</view>
</view>
<!-- <block v-for="(item, index) in tracesData" :key="index" >
<trackNode :is-first="index===tracesData.length-1" :is-newest="index===0" :is-main-node="item.isMainNode"
:node-data="item"></trackNode>
</block> -->
<view class="news_z">
<view v-for="(item,index) in tracesData" :key="index" class="con">
<view class="con_l">
<view :class="index==0?'yuan2':'yuan'">
<view v-if="index==0" class="yuan3"></view>
</view>
</view>
<view class="con_r"
:style="index==0?'color:#FFFFFF;':'color:#333333;'+ 'border:'+(index+1==tracesData.length?'none':'') ">
<view class="title" :style="index==0?'font-size:28rpx':''">{{item.node_desc}}</view>
<view class="time">{{item.node_time}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
news: '',
tracesData: [],
}
},
onLoad(e) {
this.getData(e.order_id)
},
methods: {
getData(e) {
let that = this;
that.req({
url: 'seckill_order_logistics',
data: {
id: e
},
success(res) {
if (res.status == 1) {
that.news = res.data
that.tracesData = that.news.data
}
}
})
},
copy(value) {
//提示模板
// uni.showModal({
// content:value,//模板中提示的内容
// confirmText:"复制内容",
// success:()=>{//点击复制内容的后调函数
//uni.setClipboardData方法就是讲内容复制到粘贴板
uni.setClipboardData({
data: value, //要被复制的内容
success: () => { //复制成功的回调函数
uni.showToast({ //提示
title: "复制成功"
})
}
});
// }
// });
}
}
}
</script>
<style>
.news_z {
width: 690rpx;
margin: 20rpx auto 0;
box-shadow: 0px 0rpx 10rpx 0px #1FF7F0;
border-radius: 20rpx;
}
.yuan3 {
width: 24rpx;
height: 24rpx;
background: #1FF7F0;
border-radius: 50%;
}
.yuan2 {
background: rgba(31, 247, 240, 0.3);
width: 40rpx;
height: 40rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.time {
color: #FFFFFF;
margin-top: 20rpx;
}
.con_l {
width: 120rpx;
display: flex;
justify-content: center;
align-items: center;
/* border: 1px solid red; */
}
.title {
/* color: rgba(255, 255, 255, 0.6); */
line-height: 36rpx;
}
.con_r {
width: 600rpx;
font-size: 24rpx;
border-bottom: 1rpx solid #EEEEEE;
padding: 20rpx 0;
margin-right: 20rpx;
box-sizing: border-box;
}
.yuan {
width: 24rpx;
height: 24rpx;
background: #dddddd;
border-radius: 50%;
}
.con {
display: flex;
align-items: center;
width: 100%;
}
.sta_3 text {
background: #1FF7F0;
border-radius: 16rpx;
font-size: 20rpx;
margin-left: 24rpx;
padding: 2rpx 10rpx;
color: #FFFFFF;
}
.sta_2,
.sta_3 {
font-size: 24rpx;
color: #999999;
margin-top: 24rpx;
}
.sta_1 text {
color: #1FF7F0;
}
.sta_1 {
font-size: 28rpx;
color: #999999;
font-weight: 500;
margin-top: 10rpx;
}
.status_foot {
position: absolute;
bottom: 0;
left: 0;
font-size: 24rpx;
color: #FFFFFF;
border-radius: 0 0 10rpx 10rpx;
background: rgba(0, 0, 0, 0.7);
width: 100%;
height: 40rpx;
text-align: center;
}
.status image {
width: 170rpx;
height: 170rpx;
border-radius: 10rpx;
}
.status_image {
width: 170rpx;
height: 170rpx;
margin-right: 34rpx;
border-radius: 10rpx;
position: relative;
}
.status {
width: 690rpx;
margin: 20rpx auto 0;
box-shadow: 0px 0rpx 10rpx 0px #1FF7F0;
padding: 24rpx 24rpx 48rpx 24rpx;
box-sizing: border-box;
display: flex;
border-radius: 10rpx;
}
.wuliu {
width: 100vw;
background: #000000;
min-height: 100vh;
padding-top: 2rpx;
padding-bottom: 100rpx;
box-sizing: border-box;
position: relative;
}
</style>