<template>
  <div class="max-w1280">
    <div class="layer cart-order-confirm">
      <div class="order_success">
        <img src="@/assets/img/icon/success.png">
        <h3>库存锁仓中...</h3>
        <p class="one" style="display:block;text-align:center">您的订单已经提交成功，商家会确认您的订单后给您发货，请保持电话通畅，如有紧急订单，请联系客服，我们会第一时间处理您的订单</p>
        <div class="btn">
          <NuxtLink :to="{path:'/search',query:{key:'',pageNum:1,pageSize:20}}" class="submit">继续购物</NuxtLink>
          <router-link to="/home/order/list" class="back">查看订单</router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Search } from "@element-plus/icons-vue";
import empty from "@/assets/img/empty.svg";
import { showLoadingToast, closeToast } from "vant";
let pageTitle: any = ref("HOTKING-购物车");
useHead(() => ({
  title: pageTitle.value,
}));
import { useAll } from "~/api/pubAll/service";
const { delCartGood, updateCart } = useAll();
</script>
<style scoped lang="scss">
.max-w1280 {
  background-color: #f7f7f7;
}
.cart-order-confirm {
  background: #fff;
  min-height: calc(100vh - 44px);
}
.order_success {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  h3 {
    font-size: 18px;
    color: #1e1f30;
    letter-spacing: 1.42px;
    padding: 25px 0 11px 0;
  }

  p {
    display: inline-block;
    font-size: 12px;
    color: #9fafbc;
    text-align: left;
    line-height: 22px;

    &.success {
      display: block;
      padding-left: 116px;
    }

    i {
      font-size: 14px;
      color: #1e1f30;
      font-weight: bold;

      &.err {
        color: #e0212f;
      }
    }

    a {
      font-weight: bold;
      margin: 0 5px;
    }

    .one {
      font-size: 12px;
      color: #1e1f30;
      letter-spacing: 0.95px;
      margin-bottom: 12px;
    }

    &.one {
      span {
        color: #0067ed;
        cursor: pointer;
      }
    }
  }

  .btn {
    padding-top: 20px;
    padding-bottom: 20px;

    a {
      display: inline-block;
      width: 120px;
      height: 40px;
      line-height: 40px;
      color: #0067ed;
      border: 1px solid #0067ed;
      background: #fff;
      border-radius: 4px;
      font-size: 12px;

      &.back {
        background: #0067ed;
        color: #ffffff;
        margin-left: 55px;

        &:hover {
          background: #0560d6;
        }
      }

      &.erro {
        color: #fff;
      }
    }
  }
}
</style>