order-logistics-info.vue 1.02 KB
<template>
  <div class="logistics-wrapper">
    <div class="header">
      <p class="title">{{ logisticInfo.expressSender }}</p>
      <img class="step" alt="" :src="stageImgUrl" />
    </div>
    <div class="platform-delivery-info">
      <time-line />
    </div>
    <div class="platform-identification-info"></div>
    <div class="seller-delivery-info"></div>
  </div>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
import TimeLine from "./components/time-line";

const { mapActions, mapState, mapGetters } = createNamespacedHelpers(
  "order/logisticsInfo"
);

export default {
  components: {
    TimeLine
  },
  computed: {
    ...mapState(["logisticInfo"]),
    ...mapGetters(["stageImgUrl"])
  },
  mounted() {
    this.fetchLogisticInfo(this.$route.params);
  },
  methods: {
    ...mapActions(["fetchLogisticInfo"])
  }
};
</script>

<style lang="scss" scoped>
.logistics-wrapper {
  height: 100vh;
  -webkit-box-orient: vertical;

  .step {
    display: block;
    margin: 0 auto;
    height: 100px;
  }
}
</style>