更新小程序仓库
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
// pages/expressMsgList/expressMsgList.js
|
||||
const app = getApp()
|
||||
import {logistics} from "../../api/medinceOrder"
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
express:null,
|
||||
logistics_no:'',
|
||||
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static'
|
||||
},
|
||||
copy(event){
|
||||
let text=event.target.dataset.text;
|
||||
wx.setClipboardData({
|
||||
data:text
|
||||
})
|
||||
},
|
||||
getLogistics(){
|
||||
let {logistics_no}=this.data;
|
||||
logistics(logistics_no).then(data=>{
|
||||
this.setData({
|
||||
express:data
|
||||
})
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
if(options.logistics_no){
|
||||
this.setData({
|
||||
logistics_no:options.logistics_no
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
this.setData({
|
||||
img_host:app.hostConfig().imghost
|
||||
});
|
||||
this.getLogistics();
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
|
||||
})
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"nav":"../../components/nav/nav",
|
||||
"van-steps": "@vant/weapp/steps/index"
|
||||
},
|
||||
"navigationStyle":"custom",
|
||||
"navigationBarTitleText": "肝胆相照互联网医院"
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<nav navName="物流信息"></nav>
|
||||
<wxs src="../../filters/filter.wxs" module="filter"></wxs>
|
||||
<view class="page">
|
||||
<view class="expresscon">
|
||||
<view class="titlebox">
|
||||
<view class="row">
|
||||
<view class="name">信息来源:</view>
|
||||
<view class="desc">{{express.logistics.company_name}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="name">运单编号:</view>
|
||||
<view class="desc">{{express.logistics.logistics_no}}</view>
|
||||
<view class="copy" bindtap="copy" data-text="{{express.logistics.logistics_no}}" wx:if="{{express.logistics.logistics_no}}">复制</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box">
|
||||
<view class="expressdesc" wx:if="{{express.logistics.logistics_content.length>0}}">
|
||||
<view class="line" wx:if="{{express.logistics.logistics_content.length>0}}"></view>
|
||||
|
||||
<view class="cell" wx:for="{{express.logistics.logistics_content}}" wx:key="time">
|
||||
<image src="{{img_host+'/step.png'}}" class="step" wx:if="{{express.logistics.logistics_status==3 && index==0}}"></image>
|
||||
<view class="circle" wx:else></view>
|
||||
<view class="date {{index==0?'active':''}}">
|
||||
<view class="day">{{filter.transforDay(item.ftime,'day')}}</view>
|
||||
<view class="time">{{filter.transforDay(item.ftime,'HM')}}</view>
|
||||
</view>
|
||||
<view class="desc {{index==0?'active':''}}">{{item.context}}</view>
|
||||
</view>
|
||||
<!-- <view class="cell">
|
||||
<image src="../../assets/images/step.png" class="step"></image>
|
||||
<view class="circle"></view>
|
||||
<view class="date">
|
||||
<view class="day">11-07</view>
|
||||
<view class="time">00:23 </view>
|
||||
</view>
|
||||
<view class="desc"> [北京市丰台区马家堡公司】已收入
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="expressdesc" wx:else>
|
||||
<view class="tips" style="margin-bottom:40rpx;">
|
||||
<view class="tip">未查询到物流信息 </view>
|
||||
<view class="tips">您可以到官网查询详细物流信息</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,129 @@
|
||||
.page{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.titlebox{
|
||||
background-color: #fff;
|
||||
padding:30rpx 30rpx;
|
||||
border-bottom:2rpx solid #E3E4E5
|
||||
}
|
||||
.expresscon{
|
||||
flex:1;
|
||||
margin-top: 192rpx;
|
||||
overflow: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.row{
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.row:first-child{
|
||||
margin-bottom:20rpx;
|
||||
}
|
||||
.copy{
|
||||
width: 80rpx;
|
||||
height: 40rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
border: 1rpx solid #CCCCCC;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.box{
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
.expressdesc{
|
||||
|
||||
position: relative;
|
||||
padding:0rpx 30rpx 20rpx;
|
||||
margin:64rpx 0 0rpx
|
||||
}
|
||||
.cell{
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-height:140rpx;
|
||||
}
|
||||
.step{
|
||||
width:38rpx;
|
||||
height:38rpx;
|
||||
top:0rpx;
|
||||
left:95rpx;
|
||||
position: absolute;
|
||||
}
|
||||
.circle{
|
||||
width:20rpx;
|
||||
position: absolute;
|
||||
top:11rpx;
|
||||
background: #DCDEE0;
|
||||
left:105rpx;
|
||||
height:20rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.expressdesc .date{
|
||||
margin-top: 5rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.expressdesc .date.active{
|
||||
color: #323233;
|
||||
}
|
||||
.expressdesc .day{
|
||||
white-space: nowrap;
|
||||
font-size: 30rpx;
|
||||
|
||||
}
|
||||
.line{
|
||||
top:0;
|
||||
width: 4rpx;
|
||||
left:142rpx;
|
||||
background: #DCDEE0;
|
||||
bottom:0;
|
||||
position: absolute;
|
||||
}
|
||||
.cell .date{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: right;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.expressdesc .time{
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.expressdesc .desc{
|
||||
margin-left: 80rpx;
|
||||
font-size: 30rpx;
|
||||
|
||||
color:#999;
|
||||
line-height: 40rpx;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.expressdesc .desc.active{
|
||||
color: #323233;
|
||||
}
|
||||
.tips {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
}
|
||||
.tips .tip:first-child{
|
||||
margin-bottom:25rpx;
|
||||
}
|
||||
.go{
|
||||
margin:30rpx auto;
|
||||
width: 261rpx;
|
||||
height: 86rpx;
|
||||
background: #FFFFFF;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 8rpx;
|
||||
border: 1rpx solid #979797;
|
||||
}
|
||||
Reference in New Issue
Block a user