微信小程序物流信息展示

css:
/* 物流信息展示 */.pages{ background: #fff; overflow-x: hidden; position: absolute; top: 100rpx; width: 100%;}.head{ width: 100%; height: 225rpx; border-bottom: 20rpx solid #eee; display: flex;}.tabulate{ display:flex; flex-direction:column; justify-content:space-evenly; }/* 收货图片 */.head_img{ width: 160rpx; height: 160rpx; margin: auto 20rpx; }/* 快递状态 */.head_name{ font-size: 26rpx; color: #666;}/* 快递编号 */.head_title{font-size: 26rpx;color: #666;}.head_tel_name{font-size: 26rpx;color: #666;} /* 追踪 */.logisit{ width: 100%; margin-left: 10rpx; margin-top: 50rpx; display: flex; }.express-middle-axis { width: 48rpx; position: relative; top: -218rpx; left: -1rpx;}.express-status-address{ font-size: 28rpx; color: #666;}.express-statusing{ font-size: 22rpx; color: #999}.express-left-date { display: flex; width: 300rpx; align-items: center; flex-direction: column; justify-content: center;} .online-top-closing { width: 1rpx; height: 180rpx; background: #d7d7d7; position:absolute; top:40rpx; left:21rpx; }.color{ color: #000; font-weight: bold;}.color_second{ color: #999;} .dot-closing { width: 30rpx; height: 30rpx; border-radius: 50%; margin-top: 50rpx; /* margin-bottom:-45rpx; */ border:1rpx solid #d7d7d7; text-align:center; line-height:30rpx; font-size:30rpx; color:#d7d7d7; animation:myfirst; animation-fill-mode:forwards; position:absolute; top:175rpx; left:4rpx; }.dot-closing_two { width: 30rpx; height: 30rpx; border-radius: 50%; margin-top: 50rpx; /* margin-bottom:-45rpx; */ border:1rpx solid #000; background: #000; animation:myfirst; animation-fill-mode:forwards; position:absolute; top:175rpx; left:4rpx; }@keyframes myfirst{to { font-weight: bold; transform: rotate(270deg); }}.dot-shou { width: 30rpx; height: 30rpx; border-radius: 50%; border:1rpx solid #000; background: #000; margin-left: 3rpx; margin-top: 6rpx;}.dot_two{ width: 30rpx; height: 30rpx; border-radius: 50%; border:1rpx solid #d7d7d7; background: #d7d7d7; margin-left: 3rpx; margin-top: 6rpx;}.express-right { width:90%; height: 170rpx; color: #666; margin-left: 20rpx; margin-right: 40rpx; }.line{ height: 180rpx;} .buttom{ width: 100%; height: 400rpx; line-height: 400rpx; text-align: center; color: #999;}js
data:{expresslist: [],//物流详情列表 , expressstatus:'',//物流状态 showexpress:false}//查看物流 express(e){ let index = e.target.dataset.index; let uid = this.data.list[index].order_id; BaseApi.express({ //接口 uni: uid }).then((res) => { console.log(res); if (res.data.code == 200) { let datas = res.data.data; this.setData({ expresslist: datas.express.result, expressstatus: datas.express.result.list.length>0?datas.express.result.list[0].status.substring(0,15):'', showexpress:true }) } }, (err) => { }) },//点击关闭物流信息盒子 closeexpress(){ this.setData({ showexpress: false }) },小程序
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

