Calculator.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <!-- 计算器 -->
  3. <HeaderNav headerText="计算器"></HeaderNav>
  4. <div class="calculator">
  5. <div class="type-select margin-top5 pf500 fs14 fc333333">
  6. 矿机产品名称
  7. <img src="../../../assets/icon/market/bottom-arrow.svg" alt="" />
  8. </div>
  9. <div class="type-select margin-top10 pf500 fs14 fc333333">
  10. <div>支付币种</div>
  11. <div>USDT</div>
  12. </div>
  13. <div class="type-double margin-top10 pf500 fs14 fc333333">
  14. <div class="type-item">
  15. <div class="type-text">矿机算力</div>
  16. <div class="type-result">
  17. <div>1160</div>
  18. <div>TH/S</div>
  19. </div>
  20. </div>
  21. <div class="type-item">
  22. <div class="type-text">单台价格</div>
  23. <div class="type-result">
  24. <div>1500.00</div>
  25. <div>USDT</div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="card-type pf500 fs14 fc333333">
  30. <div class="card-text">每日理论收益</div>
  31. <div class="type-select">
  32. <div>0.25481851</div>
  33. <div>SPACE 每 TH/S</div>
  34. </div>
  35. </div>
  36. <div class="type-double margin-top10 pf500 fs14 fc333333">
  37. <div class="type-item">
  38. <div class="type-text">矿机功耗</div>
  39. <div class="type-result">
  40. <div>1160</div>
  41. <div>W</div>
  42. </div>
  43. </div>
  44. <div class="type-item">
  45. <div class="type-text">币价</div>
  46. <div class="type-result">
  47. <div>1500.00</div>
  48. <div>$</div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="card-type pf500 fs14 fc333333">
  53. <div class="card-text">电价</div>
  54. <div class="type-select">
  55. <div>0.0360</div>
  56. <div>$/度</div>
  57. </div>
  58. </div>
  59. <div class="func-btn pf600 fs14 fcFFFFFF">
  60. <div class="reset">重置</div>
  61. <div class="calculator-btn">计算</div>
  62. </div>
  63. <div class="estimated-revenue">
  64. <div class="title pf600 fs18 fc333333">挖矿收益预估</div>
  65. <div class="desc pf400 fs12 fc999999">
  66. 提示:此计算结果采用当前难度PPS模式下的挖矿,由于挖矿收益 <br />
  67. 受矿机和矿场电力等因素影响,计算结果仅供参考。
  68. </div>
  69. </div>
  70. <div class="calculator-result">
  71. <div class="result-item" v-for="(item, index) in calculatorResultData" :key="index">
  72. <div class="item-top pf400 fs12 fc666666">{{ item.name }}</div>
  73. <div class="item-bottom pf500 fs12 fc333333">{{ item.number }}</div>
  74. </div>
  75. </div>
  76. </div>
  77. </template>
  78. <script setup>
  79. import HeaderNav from "../components/HeaderNav.vue";
  80. import { ref } from "vue";
  81. const calculatorResultData = ref([
  82. {
  83. name: "每日产币数",
  84. number: "11.4520",
  85. },
  86. {
  87. name: "每日产值",
  88. number: "57.73",
  89. },
  90. {
  91. name: "每日耗电量",
  92. number: "11.4520",
  93. },
  94. {
  95. name: "每日电费",
  96. number: "11.4520",
  97. },
  98. {
  99. name: "每日净收益",
  100. number: "11.4520",
  101. },
  102. {
  103. name: "电费占比",
  104. number: "11.4520",
  105. },
  106. {
  107. name: "预计回本天数",
  108. number: "11",
  109. },
  110. ]);
  111. </script>
  112. <style lang="less" scoped>
  113. .calculator {
  114. display: flex;
  115. flex-direction: column;
  116. justify-content: flex-start;
  117. align-items: center;
  118. margin-top: 48px;
  119. width: 100%;
  120. .margin-top5 {
  121. margin-top: 5px;
  122. }
  123. .margin-top10 {
  124. margin-top: 10px;
  125. }
  126. .type-select {
  127. display: flex;
  128. flex-direction: row;
  129. justify-content: space-between;
  130. align-items: center;
  131. padding: 0 11px;
  132. width: 345px;
  133. height: 45px;
  134. border-radius: 6px;
  135. background: #f5f5f5;
  136. box-sizing: border-box;
  137. img {
  138. width: 12px;
  139. height: 8px;
  140. }
  141. }
  142. .type-double {
  143. display: flex;
  144. flex-direction: row;
  145. justify-content: space-between;
  146. width: 345px;
  147. height: 63px;
  148. .type-item {
  149. width: 165px;
  150. height: 100%;
  151. .type-text {
  152. height: 18px;
  153. line-height: 18px;
  154. }
  155. .type-result {
  156. display: flex;
  157. flex-direction: row;
  158. justify-content: space-between;
  159. align-items: center;
  160. padding: 0 11px;
  161. margin-top: 7px;
  162. width: 165px;
  163. height: 38px;
  164. border-radius: 6px;
  165. background: #f5f5f5;
  166. box-sizing: border-box;
  167. }
  168. }
  169. }
  170. .card-type {
  171. margin-top: 10px;
  172. width: 345px;
  173. .type-select {
  174. display: flex;
  175. flex-direction: row;
  176. justify-content: space-between;
  177. align-items: center;
  178. margin-top: 5px;
  179. padding: 0 11px;
  180. width: 345px;
  181. height: 45px;
  182. border-radius: 6px;
  183. background: #f5f5f5;
  184. box-sizing: border-box;
  185. }
  186. }
  187. .func-btn {
  188. display: flex;
  189. flex-direction: row;
  190. justify-content: space-between;
  191. margin-top: 29px;
  192. width: 345px;
  193. height: 40px;
  194. .reset {
  195. width: 167px;
  196. height: 40px;
  197. line-height: 40px;
  198. text-align: center;
  199. border-radius: 10px;
  200. background: #a8a8a8;
  201. }
  202. .calculator-btn {
  203. width: 167px;
  204. height: 40px;
  205. line-height: 40px;
  206. text-align: center;
  207. border-radius: 10px;
  208. background: #df384c;
  209. }
  210. }
  211. .estimated-revenue {
  212. margin-top: 14px;
  213. width: 345px;
  214. .title {
  215. height: 24px;
  216. line-height: 24px;
  217. }
  218. .desc {
  219. margin-top: 8px;
  220. line-height: 18px;
  221. }
  222. }
  223. .calculator-result {
  224. display: flex;
  225. flex-direction: row;
  226. justify-content: space-between;
  227. flex-wrap: wrap;
  228. padding: 0 15px;
  229. margin-top: 14px;
  230. width: 345px;
  231. height: 181px;
  232. border-radius: 8px;
  233. border: 1px solid #ebebeb;
  234. box-sizing: border-box;
  235. .result-item {
  236. margin-top: 15px;
  237. width: 80px;
  238. height: 42px;
  239. .item-top {
  240. height: 18px;
  241. line-height: 18px;
  242. text-align: center;
  243. }
  244. .item-bottom {
  245. margin-top: 4px;
  246. height: 20px;
  247. line-height: 20px;
  248. text-align: center;
  249. }
  250. }
  251. }
  252. }
  253. </style>