| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 | 
							- <template>
 
- 	<view>
 
- 		<view class="top-cont">
 
- 			<!-- 背景图片 -->
 
- 			<view class="bg"></view>
 
- 			<view class="top-inner">			
 
- 				<!-- 运单号 -->
 
- 				<view class="waybill-number">
 
- 					<view class="inner">
 
- 						<view class="num-box">
 
- 							<text class="text">运单号</text>
 
- 							<text class="text">{{deliverySn}}</text>
 
- 							<view class="copy" @click="copyOrderSn(deliverySn)">复制</view>
 
- 						</view>
 
- 						<view class="kf-box">
 
- 							<text class="text">{{express.name}}</text>
 
- 							<!-- <text class="text">客服电话:95311</text> -->
 
- 						</view>
 
- 					</view>
 
- 				</view>
 
- 				<view class="content"  v-if="expressList!=null">
 
- 					<!-- 物流信息 -->
 
- 					<view class="refund-steps" v-if="expressList.Traces!=null">
 
- 						<view v-for="(item,index) in expressList.Traces" :key="index" class="steps">
 
- 							<view class="title">
 
- 								<!-- <text v-if="index == 0" class="text black-text">已签收</text> -->
 
- 								<!-- <text  class="text gray-bold">运输中</text> -->
 
- 								<!-- 左侧灰色圆点 -->
 
- 								<view class="dot"></view>
 
- 								<!-- 对号 -->
 
- 								<image  class="img" src="/static/images/complete.png" mode=""></image>
 
- 								<!-- 运输中图标 -->
 
- 								<image  class="img" src="/static/images/car40.png" mode=""></image>
 
- 							</view>
 
- 							<view  class="desc-text">
 
- 								{{item.AcceptStation}}
 
- 							</view>
 
- 							 
 
- 							<view class="time">{{item.AcceptTime}}</view>
 
- 						</view>
 
- 					</view>
 
- 				</view>
 
- 				
 
- 			</view>
 
- 			
 
- 		</view>
 
- 		
 
- 	</view>
 
- </template>
 
- <script>
 
- 	import {getMyStoreOrderById,getExpress} from '@/api/storeOrder'
 
- 	export default {
 
- 		data() {
 
- 			return {
 
- 				orderId:null,
 
- 				deliverySn:null,
 
- 				express:{},
 
- 				expressList:[],
 
- 			};
 
- 		},
 
- 		onLoad(option) {
 
- 			this.orderId=option.orderId;
 
- 			this.getExpress();
 
- 		},
 
- 		methods: {
 
- 			getExpress(){
 
- 				var data={orderId:this.orderId};
 
- 				getExpress(data).then(res => {
 
- 					if(res.code==200){
 
- 						this.express=res.express;
 
- 						this.expressList=res.data;
 
- 						this.deliverySn=res.deliverySn
 
- 				 
 
- 					}else{
 
- 						uni.showToast({
 
- 							icon:'none',
 
- 							title: "请求失败",
 
- 						});
 
- 						 
 
- 					}
 
- 				});
 
- 			},
 
- 			// 返回上一页
 
- 			back() {
 
- 				uni.navigateBack()
 
- 			},
 
- 			// 复制运单号
 
- 			copyOrderSn(text) {
 
- 				// 复制方法
 
- 				uni.setClipboardData({
 
- 					data:text,
 
- 					success:()=>{
 
- 						uni.showToast({
 
- 							title:'内容已成功复制到剪切板',
 
- 							icon:'none'
 
- 						})
 
- 					}
 
- 				});
 
- 			},
 
- 			// 拨打电话
 
- 			callPhone(phone) {
 
- 				uni.makePhoneCall({
 
- 					phoneNumber: phone
 
- 				})
 
- 			}
 
- 		}
 
- 	}
 
- </script>
 
- <style lang="scss">
 
- 	.top-cont{
 
- 		width: 100%;
 
- 		height: 336upx;
 
- 		position: relative;
 
- 		.bg{
 
- 			width: 100%;
 
- 			height: 350upx;
 
- 			position: absolute;
 
- 			top: 0;
 
- 			left: 0;
 
- 			z-index: 1;
 
- 			background-color: #C39A58;
 
- 			background: linear-gradient(#C39A58, #E2C99E);
 
- 			border-radius: 0rpx 0rpx 100rpx 100rpx;
 
- 		}
 
- 		.top-inner{
 
- 			width: 100%;
 
- 			height: 100%;
 
- 			position: absolute;
 
- 			top: 0;
 
- 			left: 0;
 
- 			z-index: 2;
 
- 			.back-box{
 
- 				height: 88upx;
 
- 				padding-left: 22upx;
 
- 				display: flex;
 
- 				align-items: center;
 
- 				justify-content: space-between;
 
- 				padding: 0 20upx;
 
- 				image{
 
- 					width: 40upx;
 
- 					height: 40upx;
 
- 				}
 
- 				.title{
 
- 					font-size: 36upx;
 
- 					font-family: PingFang SC;
 
- 					font-weight: 500;
 
- 					color: #FFFFFF;
 
- 				}
 
- 			}
 
- 			.waybill-number{
 
- 				padding: 0 20upx;
 
- 				margin-top: 66upx;
 
- 				.inner{
 
- 					box-sizing: border-box;
 
- 					height: 150upx;
 
- 					background: #FFFFFF;
 
- 					border-radius: 16upx;
 
- 					padding: 40upx 30upx;
 
- 					display: flex;
 
- 					flex-direction: column;
 
- 					justify-content: space-between;
 
- 					.num-box{
 
- 						display: flex;
 
- 						align-items: center;
 
- 						.text{
 
- 							font-size: 28upx;
 
- 							font-family: PingFang SC;
 
- 							font-weight: 500;
 
- 							color: #111111;
 
- 							line-height: 1;
 
- 							margin-right: 30upx;
 
- 							&:last-child{
 
- 								margin-right: 20upx;
 
- 							}
 
- 						}
 
- 						.copy{
 
- 							width: 58upx;
 
- 							height: 32upx;
 
- 							line-height: 32upx;
 
- 							text-align: center;
 
- 							font-size: 22upx;
 
- 							font-family: PingFang SC;
 
- 							font-weight: 500;
 
- 							color: #222222;
 
- 							background: #F5F5F5;
 
- 							border-radius: 4upx;
 
- 						}
 
- 					}
 
- 					.kf-box{
 
- 						display: flex;
 
- 						align-items: center;
 
- 						.text{
 
- 							font-size: 26upx;
 
- 							font-family: PingFang SC;
 
- 							font-weight: 500;
 
- 							color: #999999;
 
- 							line-height: 1;
 
- 							margin-right: 20upx;
 
- 						}
 
- 					}
 
- 				}
 
- 			}
 
- 			
 
- 		}
 
- 	}
 
- 	.content{
 
- 		margin: 20rpx 0rpx;
 
- 		padding: 0 20upx;
 
- 		.refund-steps{
 
- 			background: #FFFFFF;
 
- 			border-radius: 16upx;
 
- 			padding: 40upx 44upx;
 
- 			.steps{
 
- 				padding-left: 40upx;
 
- 				padding-bottom: 56upx;
 
- 				position: relative;
 
- 				&::after{
 
- 					content: "";
 
- 					width: 4upx;
 
- 					height: 100%;
 
- 					background: #F1F1F1;
 
- 					position: absolute;
 
- 					left: 0;
 
- 					top: 20upx;
 
- 				}
 
- 				&:last-child{
 
- 					padding-bottom: 0;
 
- 					&::after{
 
- 						display: none;
 
- 					}
 
- 				}
 
- 				.title{
 
- 					position: relative;
 
- 					.text{
 
- 						font-size: 30upx;
 
- 						font-family: PingFang SC;
 
- 						font-weight: 500;
 
- 						color: #666666;
 
- 						line-height: 38upx;
 
- 						&.black-text{
 
- 							color: #111111;
 
- 							font-weight: bold;
 
- 						}
 
- 						&.gray-bold{
 
- 							font-weight: bold;
 
- 							color: #666666;
 
- 						}
 
- 					}
 
- 					.dot{
 
- 						width: 16upx;
 
- 						height: 16upx;
 
- 						background: #EBEBEB;
 
- 						border-radius: 50%;
 
- 						position: absolute;
 
- 						left: -46upx;
 
- 						top: 11upx;
 
- 						z-index: 10;
 
- 						&.active{
 
- 							background-color: #2BC7B9;
 
- 						}
 
- 					}
 
- 					.img{
 
- 						width: 40upx;
 
- 						height: 40upx;
 
- 						position: absolute;
 
- 						left: -57upx;
 
- 						top: 2upx;
 
- 						z-index: 10;
 
- 					}
 
- 				}
 
- 				.desc-text{
 
- 					font-size: 28upx;
 
- 					font-family: PingFang SC;
 
- 					font-weight: 500;
 
- 					color: #666666;
 
- 					line-height: 1.6;
 
- 					margin-top: 10upx;
 
- 					.phone{
 
- 						font-size: 28upx;
 
- 						font-family: PingFang SC;
 
- 						font-weight: 500;
 
- 						color: #2BC7B9;
 
- 						line-height: 1.6;
 
- 					}
 
- 				}
 
- 				.time{
 
- 					font-size: 24upx;
 
- 					font-family: Gilroy;
 
- 					font-weight: 500;
 
- 					color: #999999;
 
- 					margin-top: 10upx;
 
- 				}
 
- 			}
 
- 		}
 
- 		
 
- 	}
 
- 	
 
- </style>
 
 
  |