<template>
  <!-- 鸿币充值 -->
  <div class="menu_pay">
    <i class="iconfont icon-back" @click="back"></i>
    <div class="title">
      鸿币充值
      <span class="tips" @click="detail">
        优惠明细
        <i class="iconfont icon-yiwen"></i>
      </span>
    </div>
    <!-- 鸿币充值 - 移动端 -->
    <MenuPayH5 v-on="$listeners" />
  </div>
</template>

<script>
import MenuPayH5 from "@/components/Menu/MenuPay/MenuPayH5"; // 移动端充值
export default {
  name: "MenuPay",
  components: {
    MenuPayH5,
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    // 返回
    back() {
      this.$emit("close");
    },

    // 显示哪个组件(工具函数)
    showInnerControl(name) {
      this.$emit("showInnerControl", name);
    },

    // 明细
    detail() {
      this.showInnerControl("hbDetail");
    },
  },
};
</script>

<style lang='less' scoped>
.menu_pay {
  width: 100%;
  height: 800 / @rem;
  position: absolute;
  top: 100%;
  margin-top: -800 / @rem;
  padding: 15 / @rem 20 / @rem;
  border-radius: 30 / @rem 30 / @rem 0 0;
  box-sizing: border-box;
  background-color: #fff;

  i {
    float: right;
    font-size: 60 / @rem;
  }

  .icon-back {
    margin-right: 10 / @rem;
    font-size: 50 / @rem;
    cursor: pointer;
  }

  .title {
    height: 60 / @rem;
    line-height: 60 / @rem;
    margin-top: 10 / @rem;
    margin-left: 10 / @rem;
    padding-left: 20 / @rem;
    font-size: 36 / @rem;
    font-weight: bold;
    border-left: 4px solid #3faeed;
    text-align: left;

    .tips {
      color: #ca0000;
      font-size: 28 / @rem;
      font-weight: normal;
      i {
        float: none;
        font-size: 32 / @rem;
      }
    }
  }
}

// 正常横屏样式
@media all and (orientation: landscape),
  /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px) {
  .menu_pay {
    width: 350 / @rem;
    height: 300 / @rem;
    left: 50%;
    top: 50%;
    margin-top: -150 / @rem;
    margin-left: -175 / @rem;
    padding: 7.5 / @rem 10 / @rem;
    border-radius: 10 / @rem;

    .icon-back {
      margin-top: 2 / @rem;
      margin-right: 5 / @rem;
      font-size: 25 / @rem;
    }

    .title {
      height: 30 / @rem;
      line-height: 30 / @rem;
      margin-top: 8 / @rem;
      margin-left: 5 / @rem;
      padding-left: 10 / @rem;
      font-size: 18 / @rem;

      .tips {
        font-size: 14 / @rem;
        i {
          font-size: 16 / @rem;
        }
      }
    }
  }
}

// ipad 横屏
@media /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px),
  /**ipad伪横屏 */ all and (orientation: landscape) and (min-width: 800px) and (min-height: 600px),
  all and (min-device-aspect-ratio: 3/4) and (max-device-aspect-ratio: 4/3),
  all and (device-aspect-ratio: 4/3) {
  .menu_pay {
    width: 350 / @rem;
    height: 450 / @rem;
    left: 50%;
    top: 50%;
    margin-top: -225 / @rem;
    margin-left: -175 / @rem;
    padding: 7.5 / @rem 10 / @rem;
    border-radius: 20 / @rem;

    .menu_pay_h5 {
      height: 100%;
    }
  }
}
</style>