<template>
  <div class="menu_game_pay">
    <i class="iconfont icon-back" @click="back"></i>
    <div class="title">确认付款</div>
    <!-- 游戏内支付 h5 -->
    <GamePayH5 v-on="$listeners" />
  </div>
</template>

<script>
import GamePayH5 from "@/views/GamePay/GamePayH5"; // 游戏内充值 h5
import { mapState } from "vuex";
export default {
  name: "GamePayBox",
  components: {
    GamePayH5,
  },
  data() {
    return {};
  },
  computed: {
    ...mapState(["userInfo"]),
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {
    // 返回
    back() {
      this.$emit("close");
    },
  },
};
</script>

<style lang='less' scoped>
.menu_game_pay {
  width: 100%;
  height: 620 / @rem;
  position: absolute;
  top: 100%;
  margin-top: -620 / @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;
  }

  .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;
  }
}

// 正常横屏样式
@media all and (orientation: landscape),
  /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px) {
  .menu_game_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;
    }
  }
}

// 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_game_pay {
    width: 350 / @rem;
    height: 400 / @rem;
    left: 50%;
    top: 50%;
    margin-top: -200 / @rem;
    margin-left: -175 / @rem;
    padding: 7.5 / @rem 10 / @rem;
    border-radius: 20 / @rem;
  }
}
</style>