Recharge.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <template>
  2. <van-popup v-model="show" round position="bottom" class="recharge-popup">
  3. <div class="recharge_top">
  4. <div class="recharge_title">
  5. <div class="thumbnail">
  6. <img src="../assets/images/banner.png" class="thumbnail_img" alt="">
  7. </div>
  8. <div class="recharge_t_right">
  9. <div class="t_right_name">优化招投标市场营商环境与国企采购</div>
  10. <div class="t_right_active">
  11. <span>500剑鱼币</span>
  12. <span>共18页</span>
  13. <span>123k</span>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="div_close">
  18. <img src="../assets/icon/close.png" class="recharge_close" @click="closePopup()" />
  19. </div>
  20. </div>
  21. <div class="recharge_pay_content">
  22. <div class="pay_title">
  23. 支付方式
  24. </div>
  25. <div class="jianyu_pay">
  26. <span class="jy_money">剑鱼币</span>
  27. <span class="jy_tip">(剑鱼币不足,剩余20剑鱼币)</span>
  28. </div>
  29. </div>
  30. <div class="recharge_footer">
  31. <button class="j-button-cancel btn_active" @click="closePopup()">取消</button>
  32. <button class="j-button-sure btn_active">去充值</button>
  33. </div>
  34. </van-popup>
  35. </template>
  36. <script lang="ts">
  37. import { Component, Vue } from 'vue-property-decorator'
  38. import { Icon, Popup, Sticky } from 'vant'
  39. // @ is an alias to /src
  40. @Component({
  41. name: 'Search',
  42. components: {
  43. [Popup.name]: Popup,
  44. [Sticky.name]: Sticky,
  45. [Icon.name]: Icon
  46. },
  47. created () {
  48. console.log('111')
  49. }
  50. })
  51. export default class extends Vue {
  52. show = false
  53. closePopup () {
  54. this.show = false
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. .recharge-popup{
  60. box-sizing: border-box;
  61. padding: 0 16px;
  62. width: 100%;
  63. // height: 256px;
  64. .recharge_top{
  65. display: flex;
  66. justify-content: space-between;
  67. align-items: center;
  68. width: 100%;
  69. height: 100px;
  70. border-bottom: 1px solid rgba($color: #000000, $alpha: 0.05);
  71. .recharge_title{
  72. display: flex;
  73. justify-content: flex-start;
  74. align-items: center;
  75. .thumbnail{
  76. width: 48px;
  77. height: 60px;
  78. .thumbnail_img{
  79. width: 100%;
  80. height: 100%;
  81. }
  82. }
  83. .recharge_t_right{
  84. margin-left: 8px;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: space-between;
  88. width: 250px;
  89. height: 60px;
  90. .t_right_name{
  91. color: #171826;
  92. font-size: 15px;
  93. line-height: 22px;
  94. }
  95. .t_right_active{
  96. color: #5F5E64;
  97. font-size: 14px;
  98. line-height: 20px;
  99. span{
  100. margin-right: 8px;
  101. }
  102. }
  103. }
  104. }
  105. .div_close{
  106. display: flex;
  107. align-items: flex-start;
  108. justify-content: center;
  109. height: 100%;
  110. .recharge_close{
  111. margin-top:24px;
  112. display: flex;
  113. width: 20px;
  114. height: 20px;
  115. }
  116. }
  117. }
  118. .recharge_pay_content{
  119. overflow: hidden;
  120. width: 100%;
  121. height: 100px;
  122. border-bottom: 1px solid rgba($color: #000000, $alpha: 0.05);
  123. .pay_title{
  124. margin-top: 16px;
  125. width: 100%;
  126. height: 24px;
  127. color: #171826;
  128. font-size: 16px;
  129. line-height: 24px;
  130. }
  131. .jianyu_pay{
  132. margin-top: 24px;
  133. width: 100%;
  134. height: 20px;
  135. color: #171826;
  136. font-size: 14px;
  137. line-height: 20px;
  138. .jy_tip{
  139. color: #FF3A20;
  140. }
  141. }
  142. }
  143. .recharge_footer{
  144. width: 100%;
  145. height: 56px;
  146. display: flex;
  147. justify-content: space-between;
  148. align-items: center;
  149. .btn_active{
  150. width: 165px;
  151. height: 40px;
  152. }
  153. .j-button-cancel{
  154. border-radius: 4px;
  155. background: #EDEFF2;
  156. color: #5F5E64;
  157. font-size: 16px;
  158. line-height: 24px;
  159. }
  160. .j-button-sure{
  161. border-radius: 4px;
  162. background: #2ABED1;
  163. color: #F7F9FA;
  164. font-size: 16px;
  165. line-height: 24px;
  166. }
  167. }
  168. }
  169. </style>