capital-switch.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <uni-popup ref="popupRef">
  3. <view class="unopen-box">
  4. <view class="unopen-title">
  5. <text class="z-close"></text>
  6. <text>温馨提示</text>
  7. <text class="z-close" @click.stop="close">x</text>
  8. </view>
  9. <view class="unopen-content">
  10. <view class="account-box">
  11. <view class="account-item">
  12. 合约账户
  13. </view>
  14. <view class="account-link">
  15. <image src="../../../static/logo.png" mode="aspectFit"></image>
  16. <text>划转</text>
  17. </view>
  18. <view class="account-item">
  19. 币币账户
  20. </view>
  21. </view>
  22. <view class="capital-type">
  23. <text class="type-left">全部</text>
  24. <text class="type-rigth">USDT</text>
  25. </view>
  26. <view class="capital-nums">
  27. <text class="num-title">可划转金额:</text>
  28. <text class="num">29997.9123 USDT</text>
  29. </view>
  30. <view class="capital-btn">
  31. 确定
  32. </view>
  33. </view>
  34. </view>
  35. </uni-popup>
  36. </template>
  37. <script>
  38. // 合约 - 币币
  39. // 币币 - 合约 / 法币
  40. export default {
  41. name: "capitalSwitchModules",
  42. data() {
  43. return {
  44. };
  45. },
  46. mounted() {
  47. },
  48. methods: {
  49. open() {
  50. this.$nextTick(() => {
  51. this.$refs.popupRef.open();
  52. })
  53. },
  54. close(){
  55. this.$refs.popupRef.close();
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. $paddingLR: 32rpx;
  62. .unopen-box {
  63. width: 587rpx;
  64. background-color: #fff;
  65. border-radius: 12rpx;
  66. overflow: hidden;
  67. .unopen-title {
  68. height: 90rpx;
  69. font-size: 32rpx;
  70. font-family: PingFang SC, PingFang SC-Bold;
  71. font-weight: 700;
  72. color: #1a1a1a;
  73. line-height: 90rpx;
  74. letter-spacing: 0.64rpx;
  75. border-bottom: 1rpx solid #e6e6e6;
  76. display: flex;
  77. justify-content: space-between;
  78. padding: 0 $paddingLR;
  79. .z-close{
  80. width: 25rpx;
  81. height: 25rpx;
  82. flex-shrink: 0;
  83. }
  84. }
  85. .unopen-content {
  86. padding: 73.5rpx $paddingLR 65rpx;
  87. .account-box {
  88. width: 100%;
  89. display: flex;
  90. align-items: center;
  91. justify-content: space-between;
  92. .account-item {
  93. width: 220rpx;
  94. height: 80rpx;
  95. text-align: center;
  96. line-height: 80rpx;
  97. background: #f1f1f3;
  98. border-radius: 6rpx;
  99. font-size: 22rpx;
  100. font-family: PingFang SC, PingFang SC-Regular;
  101. font-weight: 400;
  102. text-align: center;
  103. color: #333333;
  104. }
  105. .account-link {
  106. flex: 1;
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: space-around;
  110. align-items: center;
  111. font-size: 22rpx;
  112. font-family: PingFang SC, PingFang SC-Regular;
  113. font-weight: 400;
  114. color: #05c175;
  115. line-height: 30rpx;
  116. image {
  117. width: 30rpx;
  118. height: 26rpx;
  119. }
  120. }
  121. }
  122. .capital-type {
  123. width: 100%;
  124. height: 84rpx;
  125. border: 1rpx solid #b3b3b3;
  126. margin-top: 30rpx;
  127. padding: 0 20rpx;
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. .type-left {
  132. font-size: 24rpx;
  133. font-family: PingFang SC, PingFang SC-Regular;
  134. font-weight: 400;
  135. color: #05c175;
  136. }
  137. .type-rigth {
  138. font-size: 28rpx;
  139. font-family: PingFang SC, PingFang SC-Bold;
  140. font-weight: 700;
  141. color: #1a1a1a;
  142. }
  143. }
  144. // <view class="capital-nums">
  145. // <text class="num-title">可划转金额:</text>
  146. // <text class="num">29997.9123 USDT</text>
  147. // </view>
  148. .capital-nums {
  149. width: 100%;
  150. font-size: 28rpx;
  151. font-family: PingFang SC, PingFang SC-Regular;
  152. font-weight: 400;
  153. text-align: center;
  154. padding: 20rpx 0 30rpx;
  155. .num-title {
  156. color: #808080;
  157. }
  158. .num {
  159. color: #05C175;
  160. }
  161. }
  162. .capital-btn{
  163. width: 100%;
  164. height: 75rpx;
  165. background: #05c175;
  166. border-radius: 8rpx;
  167. font-size: 32rpx;
  168. font-family: PingFang SC, PingFang SC-Regular;
  169. font-weight: 400;
  170. color: #ffffff;
  171. letter-spacing: 0.64rpx;
  172. text-align: center;
  173. line-height: 75rpx;
  174. }
  175. }
  176. }
  177. </style>