index.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="container">
  3. <view class="header">
  4. <text class="title">智能eTMF系统</text>
  5. <text class="subtitle">欢迎使用</text>
  6. </view>
  7. <view class="content">
  8. <view class="card">
  9. <text class="card-title">系统信息</text>
  10. <view class="info-item">
  11. <text class="label">框架版本:</text>
  12. <text class="value">Vue 3 + uni-app</text>
  13. </view>
  14. <view class="info-item">
  15. <text class="label">平台:</text>
  16. <text class="value">微信小程序</text>
  17. </view>
  18. </view>
  19. <view class="action-section">
  20. <button type="primary" @click="handleClick">开始使用</button>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script setup>
  26. import { ref } from 'vue'
  27. const handleClick = () => {
  28. uni.showToast({
  29. title: '欢迎使用智能eTMF系统',
  30. icon: 'success'
  31. })
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .container {
  36. min-height: 100vh;
  37. padding: 40rpx;
  38. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  39. }
  40. .header {
  41. text-align: center;
  42. padding: 60rpx 0;
  43. .title {
  44. display: block;
  45. font-size: 48rpx;
  46. font-weight: bold;
  47. color: #ffffff;
  48. margin-bottom: 20rpx;
  49. }
  50. .subtitle {
  51. display: block;
  52. font-size: 28rpx;
  53. color: rgba(255, 255, 255, 0.8);
  54. }
  55. }
  56. .content {
  57. .card {
  58. background: #ffffff;
  59. border-radius: 20rpx;
  60. padding: 40rpx;
  61. margin-bottom: 40rpx;
  62. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  63. .card-title {
  64. display: block;
  65. font-size: 32rpx;
  66. font-weight: bold;
  67. color: #333333;
  68. margin-bottom: 30rpx;
  69. }
  70. .info-item {
  71. display: flex;
  72. justify-content: space-between;
  73. align-items: center;
  74. padding: 20rpx 0;
  75. border-bottom: 1rpx solid #f0f0f0;
  76. &:last-child {
  77. border-bottom: none;
  78. }
  79. .label {
  80. font-size: 28rpx;
  81. color: #666666;
  82. }
  83. .value {
  84. font-size: 28rpx;
  85. color: #333333;
  86. font-weight: 500;
  87. }
  88. }
  89. }
  90. .action-section {
  91. padding: 20rpx 0;
  92. button {
  93. width: 100%;
  94. height: 88rpx;
  95. line-height: 88rpx;
  96. border-radius: 44rpx;
  97. font-size: 32rpx;
  98. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  99. }
  100. }
  101. }
  102. </style>