<script setup lang="ts">
import { Events } from "~/dim/event";

const emit = defineEmits([Events.done, Events.cancel]);

onMounted(() => {});
</script>

<template>
  <div class="detail-tips">
    <NuxtImg
      src="https://io.house-tk.com/hop/pro/other/images/be0319b21472973f490c00014a304beb"
      loading="lazy"
      alt=""
      class="img"
      placeholder="/img/loading.png"
    />
    <div class="tips">
      <p><span>Seller Wanted</span>Products where the seller provides information and the platform helps source goods</p>
      <p><span>Factory Stock</span>Products that the factory has already stocked in domestic warehouses</p>
    </div>
    <div class="con">
      <NuxtImg
        src="https://io.house-tk.com/hop/pro/other/images/fc38c1240a80ffa2ca64f64123700ac6"
        loading="lazy"
        alt=""
        class="img2"
        placeholder="/img/loading.png"
      />
      <div class="text">
        <p>Distributors place pre-orders for purchase quantities</p>
        <p>The platform coordinates with suppliers to stock overseas warehouses</p>
        <p>Supplier inventory is in transit</p>
        <p>The platform notifies distributors of the estimated sale date</p>
      </div>
    </div>
    <div class="btn-wrap mt40">
      <el-button class="btn_main" @click="emit(Events.cancel, true)">
        Got it
      </el-button>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.detail-tips {
  .tips {
    background: #fff2f6;
    padding: 10px 10px;
    border-radius: 8px;
    margin-bottom: 20px;

    p {
      font-size: 12px;
      color: #1f1d1d;
      display: flex;
      align-items: center;

      & + p {
        margin-top: 8px;
      }

      span {
        width: 68px;
        height: 25px;
        background: #fff;
        border-radius: 4px;
        font-size: 12px;
        display: flex;
        margin-right: 8px;
        align-items: center;
        justify-content: center;
        color: $mainColor;
        font-weight: bold;
      }
    }
  }

  .img {
    margin-bottom: 20px;
    width: 202px;
    height: 36px;
  }

  .con {
    width: 90%;
    margin: 0 auto;
    position: relative;

    .img2 {
      position: absolute;
      width: 295px;
      top: 0;
      left: 0;
      z-index: 1;
    }

    .text {
      position: relative;
      z-index: 2;
      padding-left: 46px;
      padding-top: 1px;

      p {
        color: #1f1d1d;
        font-size: 14px;
        line-height: 20px;
        width: 144px;
        margin-top: 60px;

        &:first-child {
          margin-top: 21px;
        }
      }
    }
  }

  .btn_main {
    width: 100%;
    height: 40px !important;
    font-size: 16px;
    border-radius: 8px !important;
  }
}
</style>
