<template>
  <Page title="访客计划详情">
    <template v-slot:body>
      <!-- 头部 -->
      <div class="planDetailsHead">
        <div class="w-full flex items-center justify-between">
          <div class="text-size-in font-bold text-[#474A56]">535计划</div>
          <div :class="`labelTag completed`">待完成</div>
        </div>
        <div class="w-full mt-4">拜访目的：建立客情</div>
        <div class="w-full mt-4">拜访时间：2021-08-05 14:00</div>
        <div class="line"></div>
        <div class="w-full flex items-center">
          <van-icon name="user-circle-o" class="text-size-in mr-2" />
          客户:
          <div class="ml-2 themeTextColor decoration-auto underline">苹果集团</div>
        </div>
      </div>

      <!-- 主体 -->
      <van-cell-group>
        <van-cell title="计划名称" value="内容" />
        <van-cell title="客户姓名" value="内容" />
        <van-cell title="负责人" value="内容" />
        <van-cell title="拜访目的" value="内容" />
        <van-cell title="拜访时间" value="内容" />
        <van-cell title="提醒" value="内容" />
        <van-cell title="提醒时间" value="内容" />
        <van-cell title="备注" value="内容" />
      </van-cell-group>
      <div class="h-10"></div>
    </template>

    <template v-slot:footer>
      <div class="w-full flex justify-between layout">
        <div class="footerBtnLeft layouts">
          <div class="imgClss"></div>
          联系人
        </div>
        <div class="footerBtnRight layouts">
          <div class="imgClss"></div>
          延期
        </div>
        <div class="coverWithWhite"></div>
        <div class="bigCircle">
          <div class="imgClss"></div>
          完成
        </div>
      </div>
    </template>
  </Page>
</template>

<script setup>
import { ref } from "vue";
import { useLifecycle } from "@hooks/useCommon.js";

useLifecycle({
  load: () => {
    // 添加加载逻辑
  },
});
</script>

<style lang="scss" scoped>
.planDetailsHead {
  background: #ffa35919;
  padding: 14px 18px;
  margin: 10px;

  .toBeCompleted {
    background: rgba($color: #f38b3c, $alpha: 0.1);
    border-color: #f38b3c;
    color: #f38b3c;
  }

  .completed {
    background: rgba($color: #07c160, $alpha: 0.1);
    border-color: #07c160;
    color: #07c160;
  }

  .labelTag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid;
  }

  .line {
    width: 100%;
    height: 1px;
    background-color: #E6D3C7;
    margin: 14px 0;
  }
}
.layout {
  height: 90px;
  position: relative;
  .layouts {
    width: 40%;
    height: 100%;
    background: #fff;
    box-shadow: 0px -2px 30px 0px #00000014;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footerBtnLeft {
    border-top-right-radius: 25px;
    .imgClss {
      width: 30px;
      height: 30px;
      background-color: #000;
      margin-bottom: 6px;
    }
  }
  .footerBtnRight {
    border-top-left-radius: 25px;
    .imgClss {
      width: 26px;
      height: 24px;
      background-color: #000;
      margin-bottom: 9px;
    }
  }

  .coverWithWhite {
    width: 20%;
    background: #fff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 70px;
    z-index: 1;
  }

  .bigCircle{
    width: 80px;
    height: 80px;;
    border-radius: 50%;
    background: $themeColor;
    box-shadow: 0px -2px 30px 0px #00000014;
    position: absolute;
    bottom: 27px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    .imgClss {
      width: 25.5px;
      height: 25.5px;
      margin-bottom: 4px;
      background: #000;
    }
  }
}
</style>
