usdt.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="usdt-box" :rise-fall="stocksColor">
  3. <view :class="['usdt-item' , index === 1 ? 'rise' : 'fall']"
  4. v-for="(item , index ) in list" :key="`usdt_${index}`">
  5. <text class="item-title">BTC/USDT</text>
  6. <text class="item-nums">28545.1</text>
  7. <text class="item-ratio">+0.19%</text>
  8. <text class="item-result">=¥196105.45</text>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import {
  14. mapGetters
  15. } from 'vuex'
  16. export default {
  17. name: "usdtModules",
  18. data() {
  19. return {
  20. list: [
  21. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  22. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  23. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  24. ]
  25. };
  26. },
  27. computed: {
  28. ...mapGetters([
  29. 'stocksColor'
  30. ]),
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .usdt-box {
  36. width: 100%;
  37. min-height: 218rpx;
  38. background-color: $modules-box-bg;
  39. padding: 30rpx $pages-padding 20rpx;
  40. display: flex;
  41. .usdt-item {
  42. width: 33%;
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. align-items: center;
  47. font-family: PingFang SC, PingFang SC-Bold;
  48. font-weight: 700;
  49. .item-title {
  50. font-size: 22rpx;
  51. line-height: 30rpx;
  52. color: #1a1a1a;
  53. letter-spacing: 0.44rpx;
  54. }
  55. .item-nums {
  56. font-size: 38rpx;
  57. line-height: 53rpx;
  58. padding-top: 11rpx;
  59. letter-spacing: 0.76rpx;
  60. }
  61. .item-ratio {
  62. font-size: 24rpx;
  63. line-height: 33rpx;
  64. padding-top: 7rpx;
  65. letter-spacing: 0.44rpx;
  66. }
  67. .item-result {
  68. font-size: 24rpx;
  69. font-family: PingFang SC, PingFang SC-Regular;
  70. font-weight: 400;
  71. line-height: 33rpx;
  72. color: #808080;
  73. letter-spacing: 0.48rpx;
  74. }
  75. }
  76. .err-item {
  77. .item-nums {
  78. color: #FF0000;
  79. }
  80. .item-ratio {
  81. color: #BE1B1B;
  82. }
  83. }
  84. }
  85. </style>