曹睿
2025-04-25 ec1bef3a37e8dcdf22f1bf52e7c272a18306f4b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<template>
  <view class="about-container">
    <!-- 顶部 Logo 区域 -->
    <view class="logo-section">
      <image class="logo" src="/static/logo.png" mode="aspectFit" />
      <text class="app-name">vue-uniapp-template</text>
      <text class="version">版本 {{ version }}</text>
    </view>
 
    <!-- 公司信息区域 -->
    <view class="company-info">
      <text class="company-name">有来开源组织</text>
      <view class="divider" />
      <text class="company-desc">专注于快速构建和高效开发的应用解决方案</text>
    </view>
 
    <!-- 信息列表 -->
    <view class="info-list">
      <view class="list-header">
        <text class="header-title">优质项目</text>
      </view>
      <view class="info-item">
        <view class="item-content">
          <text class="item-label">vue3-element-admin</text>
          <text class="item-desc">
            基于 Vue3 + Vite5+ TypeScript5 + Element-Plus + Pinia
            等主流技术栈构建的免费开源的中后台管理的前端模板
          </text>
        </view>
      </view>
      <view class="info-item">
        <view class="item-content">
          <text class="item-label">vue-uniapp-template</text>
          <text class="item-desc">
            基于 uni-app + Vue 3 + TypeScript 的项目,集成了 ESLint、Prettier、Stylelint、Husky 和
            Commitlint 等工具,确保代码规范与质量。
          </text>
        </view>
      </view>
      <view class="info-item">
        <view class="item-content">
          <text class="item-label">youlai-boot</text>
          <text class="item-desc">
            基于 JDK 17、Spring Boot 3、Spring Security 6、JWT、Redis、Mybatis-Plus、Knife4j、Vue
            3、Element-Plus 构建的前后端分离单体权限管理系统
          </text>
        </view>
      </view>
    </view>
 
    <!-- 底部版权信息 -->
    <view class="copyright">
      <text>Copyright © {{ getYear() }} 有来开源组织</text>
      <text>All Rights Reserved</text>
    </view>
  </view>
</template>
 
<script lang="ts" setup>
const version = ref("1.0.0");
const getYear = () => {
  return new Date().getFullYear();
};
onMounted(() => {
  // #ifdef MP-WEIXIN
  version.value = uni.getSystemInfoSync().appVersion;
  // #endif
});
</script>
 
<style lang="scss" scoped>
.about-container {
  min-height: 100vh;
  padding: 20px;
  background-color: #f5f5f5;
}
 
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
 
  .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
 
  .app-name {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: bold;
  }
 
  .version {
    font-size: 14px;
    color: #666;
  }
}
 
.company-info {
  padding: 30px;
  margin: 20px 0;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
 
  .company-name {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
  }
 
  .divider {
    width: 40px;
    height: 2px;
    margin: 15px auto;
    background-color: #409eff;
  }
 
  .company-desc {
    padding: 0 10px;
    margin-top: 15px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
 
.info-list {
  margin: 20px 0;
  background-color: #fff;
  border-radius: 8px;
 
  .list-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
 
    .header-title {
      font-size: 17px;
      font-weight: 600;
      color: #333;
    }
  }
 
  .info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
 
    &:last-child {
      border-bottom: none;
    }
 
    .item-content {
      flex: 1;
      padding-right: 15px;
    }
 
    .item-label {
      display: block;
      margin-bottom: 4px;
      font-size: 16px;
      color: #333;
    }
 
    .item-desc {
      display: block;
      font-size: 13px;
      line-height: 1.4;
      color: #999;
    }
 
    .item-value {
      font-size: 16px;
      color: #999;
    }
  }
}
 
.copyright {
  padding: 20px 0;
  text-align: center;
 
  text {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
  }
}
</style>