RechargeHave.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <template>
  2. <van-popup v-model="show" round position="bottom" class="rechargehave-popup">
  3. <div class="rechargehave_top">
  4. <div class="rechargehave_title">
  5. <div class="thumbnail">
  6. <img src="../assets/images/banner.png" class="thumbnail_img" alt="">
  7. </div>
  8. <div class="rechargehave_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="rechargehave_close" @click="closePopup()" />
  19. </div>
  20. </div>
  21. <div class="rechargehave_pay_content">
  22. <div class="pay_title">
  23. 支付方式
  24. </div>
  25. <div class="jianyu_pay">
  26. <div class="jy_pay_left">
  27. <span class="jy_money">剑鱼币</span>
  28. <span class="jy_tip">(剩余2020剑鱼币)</span>
  29. </div>
  30. <div class="jy_pay_icon">
  31. <img src="../assets/icon/checked.png" class="icon_right_option" />
  32. </div>
  33. </div>
  34. </div>
  35. <div class="j-footer rechargehave_footer">
  36. <div class="apply_detail">
  37. <div class="det_left">
  38. 支付积分:
  39. </div>
  40. <div class="det_right">
  41. <span class="det_money">500</span>
  42. <span>剑鱼币</span>
  43. </div>
  44. </div>
  45. <div class="readly">
  46. <van-checkbox v-model="checked" checked-color="#2ABED1" >我已阅读,理解并接受<a href="javascript:;" class="clause" @click="clause()">《剑鱼伙伴服务条款》</a></van-checkbox>
  47. </div>
  48. <div class="apply_footer">
  49. <button class="j-button-cancel btn_active">取消</button>
  50. <button class="j-button-sure btn_active" :disabled="!this.checked" @click="exchange()">去充值</button>
  51. </div>
  52. </div>
  53. </van-popup>
  54. </template>
  55. <script lang="ts">
  56. import { Component, Vue } from 'vue-property-decorator'
  57. import { Icon, Popup, Checkbox } from 'vant'
  58. // @ is an alias to /src
  59. @Component({
  60. name: 'Search',
  61. components: {
  62. [Popup.name]: Popup,
  63. [Checkbox.name]: Checkbox,
  64. [Icon.name]: Icon
  65. },
  66. created () {
  67. console.log('111')
  68. }
  69. })
  70. export default class extends Vue {
  71. show = true
  72. checked = false
  73. closePopup () {
  74. this.show = false
  75. }
  76. }
  77. </script>
  78. <style lang="scss">
  79. .rechargehave-popup{
  80. box-sizing: border-box;
  81. padding: 0 16px;
  82. width: 100%;
  83. // height: 256px;
  84. .rechargehave_top{
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. width: 100%;
  89. height: 100px;
  90. border-bottom: 1px solid rgba($color: #000000, $alpha: 0.05);
  91. .rechargehave_title{
  92. display: flex;
  93. justify-content: flex-start;
  94. align-items: center;
  95. .thumbnail{
  96. width: 48px;
  97. height: 60px;
  98. .thumbnail_img{
  99. width: 100%;
  100. height: 100%;
  101. }
  102. }
  103. .rechargehave_t_right{
  104. margin-left: 8px;
  105. display: flex;
  106. flex-direction: column;
  107. justify-content: space-between;
  108. width: 250px;
  109. height: 60px;
  110. .t_right_name{
  111. color: #171826;
  112. font-size: 15px;
  113. line-height: 22px;
  114. }
  115. .t_right_active{
  116. color: #5F5E64;
  117. font-size: 14px;
  118. line-height: 20px;
  119. span{
  120. margin-right: 8px;
  121. }
  122. }
  123. }
  124. }
  125. .div_close{
  126. display: flex;
  127. align-items: flex-start;
  128. justify-content: center;
  129. height: 100%;
  130. .rechargehave_close{
  131. margin-top:24px;
  132. display: flex;
  133. width: 20px;
  134. height: 20px;
  135. }
  136. }
  137. }
  138. .rechargehave_pay_content{
  139. overflow: hidden;
  140. width: 100%;
  141. height: 100px;
  142. border-bottom: 1px solid rgba($color: #000000, $alpha: 0.05);
  143. .pay_title{
  144. margin-top: 16px;
  145. width: 100%;
  146. height: 24px;
  147. color: #171826;
  148. font-size: 16px;
  149. line-height: 24px;
  150. }
  151. .jianyu_pay{
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. margin-top: 24px;
  156. width: 100%;
  157. height: 20px;
  158. color: #171826;
  159. font-size: 14px;
  160. line-height: 20px;
  161. .jy_pay_left{
  162. .jy_tip{
  163. color: #2abed1;
  164. }
  165. }
  166. .jy_pay_icon{
  167. width: 24px;
  168. height: 24px;
  169. .icon_right_option{
  170. width: 100%;
  171. height: 100%;
  172. }
  173. }
  174. }
  175. }
  176. .rechargehave_footer{
  177. height: 148px;
  178. background: #ffffff;
  179. .apply_detail{
  180. display: flex;
  181. justify-content: space-between;
  182. align-items: center;
  183. height: 38px;
  184. .det_left{
  185. color: #9B9CA3;
  186. font-family: PingFang SC;
  187. font-weight: medium;
  188. font-size: 12px;
  189. line-height: 18px;
  190. }
  191. .det_right{
  192. display: flex;
  193. align-items: center;
  194. color: #2ABED1;
  195. font-weight: medium;
  196. font-size: 14px;
  197. line-height: 30px;
  198. .det_money{
  199. display: flex;
  200. margin-right: 4px;
  201. font-size: 20px;
  202. }
  203. }
  204. }
  205. .apply_footer {
  206. width: 100%;
  207. height: 56px;
  208. display: flex;
  209. justify-content: space-between;
  210. align-items: center;
  211. .btn_active{
  212. width: 165px;
  213. height: 40px;
  214. }
  215. .j-button-cancel{
  216. border-radius: 4px;
  217. background: #EDEFF2;
  218. color: #5F5E64;
  219. font-size: 16px;
  220. line-height: 24px;
  221. }
  222. .j-button-sure{
  223. border-radius: 4px;
  224. background: #2ABED1;
  225. color: #F7F9FA;
  226. font-size: 16px;
  227. line-height: 24px;
  228. }
  229. }
  230. .readly{
  231. display:flex;
  232. align-items:center;
  233. min-height:32px;
  234. font-size: 12px;
  235. color: #5F5E64;
  236. .clause{
  237. color:#2ABED1;
  238. }
  239. .van-checkbox__icon{
  240. font-size:18px;
  241. }
  242. }
  243. }
  244. }
  245. </style>