index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view class="page-box">
  3. <headContent>
  4. <template #content>
  5. <view class="haed-title">
  6. 闪电兑换
  7. </view>
  8. </template>
  9. <template #right>
  10. <view @click.stop="lookRecord()" class="head-record iconfont">&#xe642;</view>
  11. </template>
  12. </headContent>
  13. <view class="box">
  14. <view class="exchange-box">
  15. <view class="">
  16. <view class="exchange-item">
  17. <view class="exchange-coin">
  18. <image class="coin-icon" src="../../static/logo.png" mode="aspectFit"></image>
  19. <text class="coin-name">USDTV</text>
  20. <text class="coin-ratio">0.09</text>
  21. </view>
  22. <text class="max-title">最大</text>
  23. </view>
  24. <view class="exchange-item">
  25. 可用余额:0.0914USDT
  26. </view>
  27. </view>
  28. <view class="exchange-item">
  29. <view class="exchange-coin">
  30. <image class="coin-icon" src="../../static/logo.png" mode="aspectFit"></image>
  31. <text class="coin-name">USDTV</text>
  32. </view>
  33. </view>
  34. <view class="exchange-switch">
  35. <image class="switch-icon" src="../../static/logo.png" mode="aspectFit"></image>
  36. </view>
  37. </view>
  38. <view class="exchange-btn">预览兑换结果</view>
  39. <view class="exchange-hint">
  40. <view class="hint-title">兑换规则</view>
  41. <view class="hint-content">
  42. 市场汇率可能变动,请以实际到账的资产数量为准:
  43. </view>
  44. <view class="hint-content">
  45. 兑换汇率由第三方制定,由于兑换成本及市场波动,您兑换的汇率可能会高于市场汇率,请仔细确认后进行操作:
  46. </view>
  47. <view class="hint-content">
  48. 平台不收取手续费,每笔兑换由第三方钱包收取基础0.3%的手续费,用于支付在交易所兑换成本。
  49. </view>
  50. </view>
  51. </view>
  52. <selectCoin ref="selectCoin"/>
  53. </view>
  54. </template>
  55. <script>
  56. import share from "@/components/headModules/share.vue"
  57. import selectCoin from "./modules/select-coin.vue"
  58. import { Api_getBiTypeList , Api_getFlashRecord , Api_getSubmit} from "@/api/index.js"
  59. export default {
  60. name: 'exchange',
  61. components: {
  62. share,
  63. selectCoin
  64. },
  65. data() {
  66. return {
  67. };
  68. },
  69. onLoad() {
  70. this.getBiTypeList();
  71. },
  72. methods:{
  73. getBiTypeList(){
  74. Api_getFlashRecord().then(res => {
  75. console.log('Api_getBiTypeList = ' , res)
  76. }).catch(err => {
  77. console.log('Api_getBiTypeList = ' , err)
  78. })
  79. }
  80. }
  81. }
  82. </script>
  83. <style>
  84. page{
  85. background-color: #EDEDEF;
  86. }
  87. </style>
  88. <style lang="scss" scoped>
  89. .head-record{
  90. font-size: 60rpx;
  91. }
  92. .box {
  93. padding: 36rpx 30rpx 0;
  94. .exchange-box {
  95. width: 690rpx;
  96. min-height: 287rpx;
  97. background: #f6f7fb;
  98. border-radius: 10rpx;
  99. padding: 39rpx 30rpx 34rpx;
  100. display: flex;
  101. flex-direction: column;
  102. justify-content: space-between;
  103. position: relative;
  104. .exchange-switch {
  105. position: absolute;
  106. right: 78rpx;
  107. bottom: 82rpx;
  108. width: 84rpx;
  109. height: 84rpx;
  110. background: #05c175;
  111. border-radius: 29rpx;
  112. .switch-icon {
  113. width: 100%;
  114. height: 100%;
  115. }
  116. }
  117. .exchange-item {
  118. display: flex;
  119. align-items: center;
  120. justify-content: space-between;
  121. .exchange-coin {
  122. display: flex;
  123. align-items: center;
  124. .coin-icon {
  125. width: 52rpx;
  126. height: 52rpx;
  127. border-radius: 50%;
  128. }
  129. .coin-name {
  130. padding-left: 13rpx;
  131. font-size: 32rpx;
  132. font-family: PingFang SC, PingFang SC-Bold;
  133. font-weight: 700;
  134. color: #1a1a1a;
  135. line-height: 44rpx;
  136. }
  137. .coin-ratio {
  138. font-size: 28rpx;
  139. font-family: PingFang SC, PingFang SC-Bold;
  140. font-weight: 700;
  141. color: #1a1a1a;
  142. line-height: 40rpx;
  143. border-left: 1rpx solid #e6e6e6;
  144. padding-left: 24rpx;
  145. margin-left: 20rpx;
  146. }
  147. }
  148. .max-title {
  149. font-size: 28rpx;
  150. font-family: PingFang SC, PingFang SC-Regular;
  151. font-weight: 400;
  152. color: #05c175;
  153. line-height: 40rpx;
  154. }
  155. }
  156. .exchange-item {
  157. padding-top: 11rpx;
  158. font-size: 24rpx;
  159. font-family: PingFang SC, PingFang SC-Regular;
  160. font-weight: 400;
  161. color: #999999;
  162. }
  163. }
  164. .exchange-btn {
  165. margin-top: 68rpx;
  166. width: 690rpx;
  167. height: 90rpx;
  168. background: #dbdce0;
  169. border-radius: 8rpx;
  170. line-height: 90rpx;
  171. text-align: center;
  172. font-size: 30rpx;
  173. font-family: PingFang SC, PingFang SC-Bold;
  174. font-weight: 700;
  175. color: #1a1a1a;
  176. }
  177. .exchange-hint {
  178. width: 100%;
  179. padding-top: 97rpx;
  180. .hint-title {
  181. font-size: 28rpx;
  182. font-family: PingFang SC, PingFang SC-Regular;
  183. font-weight: 400;
  184. color: #1a1a1a;
  185. }
  186. .hint-content{
  187. padding: 24rpx 0 11rpx;
  188. font-size: 26rpx;
  189. font-family: PingFang SC, PingFang SC-Regular;
  190. font-weight: 400;
  191. text-align: left;
  192. color: #808080;
  193. }
  194. }
  195. }
  196. </style>