index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="content" :rise-fall="riseFallStatus">
  3. <!-- 头部 -->
  4. <headContent>
  5. <template #left>
  6. <loginStatus></loginStatus>
  7. </template>
  8. <template #content>
  9. <view class="haed-title">
  10. <image src="../../static/images/logo.png" mode="aspectFit"></image>
  11. <image src="../../static/images/name.png" mode="aspectFit"></image>
  12. </view>
  13. </template>
  14. <template #right>
  15. <message></message>
  16. <share></share>
  17. </template>
  18. </headContent>
  19. <!-- 轮播图 -->
  20. <carousels></carousels>
  21. <!-- 滚动消息 -->
  22. <rollMessage></rollMessage>
  23. <view style="width: 100%;height: 1rpx;"></view>
  24. <!-- usdt -->
  25. <usdt></usdt>
  26. <view style="width: 100%;height: 8rpx;"></view>
  27. <!-- 快捷买币 -->
  28. <shortcut></shortcut>
  29. <view style="width: 100%;height: 8rpx;"></view>
  30. <!-- 快捷菜单 -->
  31. <navMuen></navMuen>
  32. <view style="width: 100%;height: 8rpx;"></view>
  33. <!-- 自选 / 市场 -->
  34. <market></market>
  35. </view>
  36. </template>
  37. <script>
  38. import loginStatus from "@/components/headModules/login.vue"
  39. import message from "@/components/headModules/message.vue"
  40. import share from "@/components/headModules/share.vue"
  41. import usdt from "./modules/usdt.vue"
  42. import shortcut from "./modules/shortcut.vue"
  43. import navMuen from "./modules/nav.vue"
  44. import market from "./modules/market.vue"
  45. import {
  46. mapGetters
  47. } from 'vuex'
  48. export default {
  49. components: {
  50. loginStatus,
  51. message,
  52. share,
  53. usdt,
  54. shortcut,
  55. navMuen,
  56. market
  57. },
  58. data() {
  59. return {
  60. title: 'Hello'
  61. }
  62. },
  63. computed: {
  64. ...mapGetters([
  65. 'riseFallStatus'
  66. ]),
  67. },
  68. onLoad() {
  69. },
  70. methods: {
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .content {
  76. // padding: 0 30rpx;
  77. }
  78. .haed-title {
  79. image {
  80. width: 85rpx;
  81. height: 67rpx;
  82. }
  83. }
  84. </style>