MenuPay.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <!-- 鸿币充值 -->
  3. <div class="menu_pay">
  4. <i class="iconfont icon-back" @click="back"></i>
  5. <div class="title">
  6. 鸿币充值
  7. <span class="tips" @click="detail">
  8. 优惠明细
  9. <i class="iconfont icon-yiwen"></i>
  10. </span>
  11. </div>
  12. <!-- 鸿币充值 - 移动端 -->
  13. <MenuPayH5 v-on="$listeners" />
  14. </div>
  15. </template>
  16. <script>
  17. import MenuPayH5 from "@/components/Menu/MenuPay/MenuPayH5"; // 移动端充值
  18. export default {
  19. name: "MenuPay",
  20. components: {
  21. MenuPayH5,
  22. },
  23. data() {
  24. return {};
  25. },
  26. computed: {},
  27. watch: {},
  28. created() {},
  29. mounted() {},
  30. methods: {
  31. // 返回
  32. back() {
  33. this.showInnerControl("");
  34. },
  35. // 显示哪个组件(工具函数)
  36. showInnerControl(name) {
  37. this.$emit("showInnerControl", name);
  38. },
  39. // 明细
  40. detail() {
  41. this.showInnerControl("hbDetail");
  42. },
  43. },
  44. };
  45. </script>
  46. <style lang='less' scoped>
  47. .menu_pay {
  48. width: 100%;
  49. height: 800 / @rem;
  50. position: absolute;
  51. top: 100%;
  52. margin-top: -800 / @rem;
  53. padding: 15 / @rem 20 / @rem;
  54. border-radius: 30 / @rem 30 / @rem 0 0;
  55. box-sizing: border-box;
  56. background-color: #fff;
  57. i {
  58. float: right;
  59. font-size: 60 / @rem;
  60. }
  61. .icon-back {
  62. margin-right: 10 / @rem;
  63. font-size: 50 / @rem;
  64. }
  65. .title {
  66. height: 60 / @rem;
  67. line-height: 60 / @rem;
  68. margin-top: 10 / @rem;
  69. margin-left: 10 / @rem;
  70. padding-left: 20 / @rem;
  71. font-size: 36 / @rem;
  72. font-weight: bold;
  73. border-left: 4px solid #3faeed;
  74. text-align: left;
  75. .tips {
  76. color: #ca0000;
  77. font-size: 28 / @rem;
  78. font-weight: normal;
  79. i {
  80. float: none;
  81. font-size: 32 / @rem;
  82. }
  83. }
  84. }
  85. }
  86. // 正常横屏样式
  87. @media all and (orientation: landscape),
  88. /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px) {
  89. .menu_pay {
  90. width: 45%;
  91. height: 250 / @rem;
  92. left: 0;
  93. top: 50%;
  94. margin-top: -125 / @rem;
  95. padding: 7.5 / @rem 10 / @rem;
  96. border-radius: 0 20 / @rem 20 / @rem 0;
  97. .icon-back {
  98. margin-top: 2 / @rem;
  99. margin-right: 5 / @rem;
  100. font-size: 25 / @rem;
  101. }
  102. .title {
  103. height: 30 / @rem;
  104. line-height: 30 / @rem;
  105. margin-top: 8 / @rem;
  106. margin-left: 5 / @rem;
  107. padding-left: 10 / @rem;
  108. font-size: 18 / @rem;
  109. .tips {
  110. font-size: 14 / @rem;
  111. i {
  112. font-size: 16 / @rem;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. // ipad 横屏
  119. @media /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px),
  120. /**ipad伪横屏 */ all and (orientation: landscape) and (min-width: 800px) and (min-height: 600px),
  121. all and (min-device-aspect-ratio: 3/4) and (max-device-aspect-ratio: 4/3),
  122. all and (device-aspect-ratio: 4/3) {
  123. .menu_pay {
  124. width: 350 / @rem;
  125. height: 430 / @rem;
  126. left: 50%;
  127. top: 50%;
  128. margin-top: -215 / @rem;
  129. margin-left: -175 / @rem;
  130. padding: 7.5 / @rem 10 / @rem;
  131. border-radius: 20 / @rem;
  132. .menu_pay_h5 {
  133. height: 100%;
  134. }
  135. }
  136. }
  137. </style>