<template>
  <div class="payment-way">
    <div class="apply-mask" @click="emits('paymentWayClose')"></div>
    <div class="apply-content">
      <div class="slide-line"></div>
      <div class="apply-text pf600 fs18 fc121212">支付方式</div>
      <div class="payment-main">
        <div class="payment-item" v-for="(item, index) in paymentWayData" :key="index">
          <div class="pf500 fs16 fc121212">{{ item }}</div>
          <img src="@/assets/icon/asset/ic_check_blue.svg" alt="" />
        </div>
      </div>
      <div class="sure-btn pf600 fs14 fcFFFFFF">确认</div>
      <div class="reset pf500 fs14 fcDF384C">重置</div>
    </div>
  </div>
</template>
<script setup>
  const emits = defineEmits(["paymentWayClose"]);

  const paymentWayData = ["全部", "支付宝", "银行卡"];
</script>
<style lang="less" scoped>
  .payment-way {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 100vh;

    .apply-mask {
      position: fixed;
      left: 0;
      top: 0;
      z-index: -1;
      width: 100%;
      min-height: 100vh;
      background: rgba(0, 0, 0, 0.5);
    }

    .apply-content {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 375px;
      height: 313px;
      background: #ffffff;
      border-radius: 24px 24px 0px 0px;

      .slide-line {
        margin-top: 12px;
        width: 32px;
        height: 4px;
        border-radius: 2px;
        opacity: 0.4;
        background: rgba(0, 0, 0, 0.5);
      }

      .apply-text {
        margin-top: 21px;
        width: 345px;
        height: 24px;
        line-height: 24px;
        letter-spacing: 0.2px;
      }

      .payment-main {
        margin-top: 15px;
        width: 345px;

        .payment-item {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          margin-top: 15px;
          width: 345px;
          height: 25px;

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

          img {
            width: 20px;
            height: 20px;
          }
        }
      }

      .sure-btn {
        margin-top: 24px;
        width: 311px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 100px;
        background: #df384c;
      }

      .reset {
        margin-top: 15px;
      }
    }
  }
</style>
