index.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div class="download-wrap">
  3. <div class="content">
  4. <h1 class="title">远程桌面客户端下载</h1>
  5. <div class="hr"></div>
  6. <div class="list">
  7. <div class="item">
  8. <h2>Electron</h2>
  9. <span>
  10. 代码仓库:<span
  11. class="link"
  12. @click="
  13. openToTarget(COMMON_URL.download.remoteDesktop.electron.github)
  14. "
  15. >
  16. {{ COMMON_URL.download.remoteDesktop.electron.github }}
  17. </span>
  18. </span>
  19. <h3>Windows</h3>
  20. <div>
  21. <span>最新版本:<span>自行构建</span></span>
  22. </div>
  23. <h3>macOS</h3>
  24. <div>
  25. <span>最新版本:<span>自行构建</span></span>
  26. </div>
  27. <h3>Linux</h3>
  28. <div>
  29. <span>最新版本:<span>自行构建</span></span>
  30. </div>
  31. </div>
  32. <div class="hr"></div>
  33. <div class="item">
  34. <h2>Flutter</h2>
  35. <span>
  36. 代码仓库:<span
  37. class="link"
  38. @click="
  39. openToTarget(COMMON_URL.download.remoteDesktop.flutter.github)
  40. "
  41. >
  42. {{ COMMON_URL.download.remoteDesktop.flutter.github }}
  43. </span>
  44. </span>
  45. <h3>安卓</h3>
  46. <div>
  47. <span>最新版本:<span>todo</span></span>
  48. </div>
  49. <h3>苹果</h3>
  50. <div>
  51. <span>最新版本:<span>todo</span></span>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="aside">
  57. <div class="title">本页目录</div>
  58. <div class="item h1">Electron</div>
  59. <div class="item h2">Windows</div>
  60. <div class="item h2">macOS</div>
  61. <div class="item h2">Linux</div>
  62. <div class="item h1">Flutter</div>
  63. <div class="item h2">安卓</div>
  64. <div class="item h2">苹果</div>
  65. </div>
  66. </div>
  67. </template>
  68. <script lang="ts" setup>
  69. import { openToTarget } from 'billd-utils';
  70. import { onMounted, ref } from 'vue';
  71. import { fetchServerInfo } from '@/api/other';
  72. import { COMMON_URL } from '@/constant';
  73. import { IServerInfo } from '@/interface';
  74. const serverInfo = ref<IServerInfo>();
  75. const loading = ref(false);
  76. async function handleFetchServerInfo() {
  77. try {
  78. loading.value = true;
  79. const res = await fetchServerInfo();
  80. if (res.code === 200) {
  81. serverInfo.value = res.data;
  82. }
  83. } catch (error) {
  84. console.log(error);
  85. } finally {
  86. loading.value = false;
  87. }
  88. }
  89. onMounted(() => {
  90. handleFetchServerInfo();
  91. });
  92. </script>
  93. <style lang="scss" scoped>
  94. .download-wrap {
  95. display: flex;
  96. box-sizing: border-box;
  97. margin: 0 auto;
  98. padding-top: 50px;
  99. padding-bottom: 10px;
  100. width: 960px;
  101. color: rgb(33, 53, 71);
  102. .link {
  103. color: $theme-color-gold;
  104. cursor: pointer;
  105. }
  106. .content {
  107. flex: 1;
  108. .title {
  109. margin: 0;
  110. margin-bottom: 20px;
  111. font-weight: 500;
  112. font-size: 40px;
  113. }
  114. .hr {
  115. margin: 60px 0 20px 0;
  116. width: 100%;
  117. height: 1px;
  118. background-color: #e7e7e7;
  119. }
  120. .list {
  121. h2 {
  122. font-weight: 600;
  123. }
  124. .item {
  125. position: relative;
  126. font-size: 16px;
  127. }
  128. }
  129. }
  130. .aside {
  131. padding-left: 90px;
  132. width: 150px;
  133. .title {
  134. margin-bottom: 8px;
  135. color: rgb(33, 53, 71);
  136. font-weight: 700;
  137. font-size: 12px;
  138. }
  139. .item {
  140. margin-bottom: 8px;
  141. color: rgba(60, 60, 60, 0.7);
  142. font-size: 13px;
  143. cursor: pointer;
  144. &:hover {
  145. color: #213547;
  146. }
  147. &.h1 {
  148. }
  149. &.h2 {
  150. margin-left: 10px;
  151. }
  152. }
  153. }
  154. }
  155. </style>