index.uvue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="page">
  3. <view class="header">
  4. <text class="title">首页</text>
  5. <text class="subtitle">uni-app x 项目已就绪</text>
  6. </view>
  7. <view class="card">
  8. <text class="card-title">基础架构</text>
  9. <text class="card-item">· pages / components / api / store / utils</text>
  10. <text class="card-item">· TabBar 三页已配置</text>
  11. <text class="card-item">· 请求封装见 utils/request.uts</text>
  12. </view>
  13. </view>
  14. </template>
  15. <script lang="uts">
  16. export default {
  17. data() {
  18. return {}
  19. },
  20. onLoad() {
  21. console.log('index onLoad')
  22. }
  23. }
  24. </script>
  25. <style>
  26. .page {
  27. flex: 1;
  28. padding: 16px;
  29. }
  30. .header {
  31. padding: 24px 0;
  32. }
  33. .title {
  34. font-size: 24px;
  35. font-weight: bold;
  36. color: #333333;
  37. }
  38. .subtitle {
  39. margin-top: 8px;
  40. font-size: 14px;
  41. color: #999999;
  42. }
  43. .card {
  44. padding: 16px;
  45. background-color: #ffffff;
  46. border-radius: 8px;
  47. }
  48. .card-title {
  49. font-size: 16px;
  50. font-weight: bold;
  51. color: #333333;
  52. margin-bottom: 12px;
  53. }
  54. .card-item {
  55. font-size: 14px;
  56. color: #666666;
  57. line-height: 26px;
  58. }
  59. </style>