GamePay.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div class="game">
  3. <div class="inner_box" @click="close"></div>
  4. <!-- 游戏内充值 -->
  5. <GamePayBox
  6. v-if="showGameInner === ''"
  7. @showInnerControl="showInnerControl"
  8. @close="close"
  9. />
  10. <!-- 鸿币充值 -->
  11. <MenuPay
  12. v-if="showGameInner === 'hb'"
  13. @showInnerControl="showInnerControl"
  14. />
  15. <!-- 鸿币支付确认 -->
  16. <MenuHbPay
  17. v-if="showGameInner == 'hbConfirm'"
  18. @showInnerControl="showInnerControl"
  19. />
  20. <!-- 鸿币充值优惠明细 -->
  21. <MenuHbDetail
  22. v-if="showGameInner == 'hbDetail'"
  23. @showInnerControl="showInnerControl"
  24. />
  25. </div>
  26. </template>
  27. <script>
  28. import GamePayBox from "@/views/GamePay/GamePayBox"; // 游戏内充值
  29. import MenuPay from "@/components/Menu/MenuPay/MenuPay"; // 鸿币充值
  30. import MenuHbPay from "@/components/Menu/MenuPay/MenuHbPay"; // 鸿币支付确认
  31. import MenuHbDetail from "@/components/Menu/MenuPay/MenuHbDetail"; // 鸿币充值优惠明细
  32. export default {
  33. name: "GamePay",
  34. components: {
  35. GamePayBox,
  36. MenuPay,
  37. MenuHbPay,
  38. MenuHbDetail,
  39. },
  40. data() {
  41. return {
  42. showGameInner: "", // 控制显示哪个组件
  43. };
  44. },
  45. computed: {},
  46. watch: {},
  47. created() {},
  48. mounted() {},
  49. methods: {
  50. // 控制显示哪个组件
  51. showInnerControl(showGameInner) {
  52. this.showGameInner = showGameInner;
  53. },
  54. // 关闭
  55. close() {
  56. // 1. 展示游戏内充值
  57. this.showInnerControl("");
  58. // 2. 关闭当前
  59. console.log("gamepay close");
  60. },
  61. },
  62. };
  63. </script>
  64. <style lang='less' scoped>
  65. </style>