<template>
  <div class="timelines">
    <div class="split"></div>
    <div class="line" v-for="(item, index) in d" :key="index">
      <div class="time">{{item.Time}}</div>
      <div class="smybile" :class="{'orange':item.Type==2,'red':item.Type==3,'green':item.Type==1}"></div>
      <div class="operaContent">{{item.Content}}</div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      d: [],
      loading: true
    };
  },
  mounted() {
    this.queryOpera();
  },
  methods: {
    queryOpera() {
      let PageIndex = 0;
      let PageSize = 0;
      this.loading = true;
      this.apipost(
        "orderlog_post_GetToDayOperationLog",
        { PageIndex, PageSize },
        r => {
          this.d = r.data.data;
          this.loading = false;
        }
      );
    }
  }
};
</script>
<style scoped>
.timelines {
  position: relative;
}
.timelines .line {
  display: flex;
  margin-bottom: 22px;
}
.timelines .split {
  width: 2px;
  background: #e7e9f5;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 66px;
}
.timelines .line .time {
  font-size: 16px;
  font-family: pingfangR;
  color: #a7abc3;
  width: 50px;
}
.timelines .line .smybile {
  border: 3px solid #5d78ff;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  position: relative;
  border-radius: 100%;
  margin: 4px 15px 0 10px;
  background: #fff;
}
.timelines .line .smybile.orange {
  border-color: #ffb822 !important;
}
.timelines .line .smybile.red {
  border-color: #fd397a !important;
}
.timelines .line .smybile.green {
  border-color: #0abb87 !important;
}
.timelines .line .smybile::after {
  border: 3px solid #fff;
  width: 14px;
  height: 14px;
  content: " ";
  position: absolute;
  left: -3px;
  top: -3px;
  z-index: -1;
  border-radius: 100%;
}
.timelines .line .operaContent {
  color: #a7abc3;
  font-size: 12px;
  word-break: break-all;
  flex: 1;
  margin-top: 3px;
}
</style>
