123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <template>
- <view class="wrap">
- <view class="base">
- <view class="title">{{expressInfo.expressCompany}}</view>
- <view class="item"> 快递单号:{{expressInfo.shippingSn}}</view>
- <view class="item"> 收货地址:{{order.consigneeAddress}}</view>
- </view>
- <view class="list">
- <uv-steps direction="column">
- <uv-steps-item v-for="(item, index) in expressInfo.infoList" :key="index">
- <template v-slot:title>
- <view>
- <view v-if="index==0" class="uv-order-title">{{expressInfo.stateStr}}</view>
- <view class="uv-order-desc">{{item.AcceptStation}}</view>
- </view>
- </template>
- <template v-slot:desc>
- <view class="uv-order-time">{{ item.AcceptTime }}</view>
- </template>
- </uv-steps-item>
- </uv-steps>
- </view>
- </view>
- </template>
- <script>
- import {
- getRequest
- } from '@/request/api/shop.js'
- export default {
- data() {
- return {
- order: {
- consigneeAddress: '',
- orderSn: '',
- address: {
- name: ''
- }
- },
- expressInfo: {
- shippingSn: ''
- }
- }
- },
- onLoad(option) {
- this.order.orderSn = option.orderSn;
- this.init();
- },
- methods: {
- init() {
- getRequest('user/order/getExpressInfo/' + this.order.orderSn).then(res => {
- if (res.state) {
- this.order = res.data.order;
- this.expressInfo = res.data.expressInfo;
- }
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- height: 100%;
- background-color: #f2f2f2;
- }
- .base {
- background-color: #FFFFFF;
- padding: 20rpx;
- margin: 30rpx 0;
- .title {
- color: #F59A23;
- font-size: 30rpx;
- }
- .item {
- padding-top: 10rpx;
- }
- }
- .list {
- background-color: #FFFFFF;
- padding: 30rpx;
- }
- .uv-node {
- width: 44rpx;
- height: 44rpx;
- border-radius: 100rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #d0d0d0;
- }
- .uv-order-title {
- color: #333333;
- font-weight: bold;
- font-size: 32rpx;
- }
- .uv-order-desc {
- color: rgb(150, 150, 150);
- font-size: 28rpx;
- margin-bottom: 6rpx;
- }
- .uv-order-time {
- color: rgb(200, 200, 200);
- font-size: 26rpx;
- }
- </style>
|