<template>
  <view class="">
    <view class="img">
      <image src="../../static/img/task/car.png"></image>
      <view class="type">
        <view class="on_line">在线</view>
        <view class="off-line">离线</view>
      </view>
    </view>
    <view class="center_card">
      <u-steps direction="column" dot>
        <u-steps-item title="开始地点: 某某村">
        </u-steps-item>
        <u-steps-item title="中转地点: 某某村">
        </u-steps-item>
        <u-steps-item title="结束地点: 某某村">
        </u-steps-item>
      </u-steps>
    </view>
    <view class="center_card">
      <view class="item">
        <view>开始地点：<text>通滩镇砾石村1组</text></view>
        <view>抵达时间：<text>2023/08/02 11:00:35</text></view>
      </view>
      <view class="item">
        <view>中转地点：<text>通滩镇砾石村1组</text></view>
        <view>抵达时间：<text>2023/08/02 11:00:35</text></view>
      </view>
      <view class="item">
        <view>结束地点：<text>通滩镇砾石村1组</text></view>
        <view>抵达时间：<text>2023/08/02 11:00:35</text></view>
      </view>
    </view>
    <mybtn text="开始任务"></mybtn>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    onLoad() {},
    onShow() {},
    methods: {},
    onPullDownRefresh() {
      uni.stopPullDownRefresh()
    }
  }
</script>

<style lang="scss">
  .img {
    width: 696rpx;
    height: 343rpx;
    background: #FFFFFF;
    border-radius: 18rpx 18rpx 18rpx 18rpx;
    opacity: 1;
    margin: 28rpx auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    image {
      width: 357.48rpx;
      height: 201.52rpx;
    }
    .type{
      display: flex;
      view{
        margin: 0 28rpx;
        font-size: 28rpx;
        font-weight: 400;
        color: #07C160;
        display: flex;
        align-items: center;
        &:before{
          content: '';
          display: inline-block;
          width: 30rpx;
          height: 30rpx;
          background-color: #07C160;
          border-radius: 50%;
          margin-right: 10rpx;
        }
      }
      .off-line{
        color: #FA5151FF;
        &:before{
          background-color: #FA5151FF;
        }
      }
    }
  }

  .center_card {
    width: 694rpx;
    // height: 226rpx;
    background: #FFFFFF;
    border-radius: 18rpx 18rpx 18rpx 18rpx;
    opacity: 1;
    margin: 0 auto;
    padding: 28rpx;
    margin-bottom: 28rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: #999999;
    .item{
      margin-bottom: 28rpx;
      line-height: 48rpx;
      &:last-child{
        margin-bottom: 0;
      }
      text{
        color: #333;
      }
    }
  }
</style>