<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>卖家想要</span>卖家提供信息，平台负责找货的商品</p>
      <p><span>工厂有货</span>工厂已备货在国内仓库的商品</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>分销商预定采购数量</p>
        <p>平台与供应商协商备货海外仓</p>
        <p>供应商备货在途</p>
        <p>平台通知分销商预计开售时间</p>
      </div>
    </div>
    <div class="btn-wrap mt40">
      <el-button class="btn_main" @click="emit(Events.cancel, true);">
        我明白了
      </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>
  