index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="about-container">
  3. <!-- 公司logo和版本信息 -->
  4. <view class="header">
  5. <image class="logo" src="/static/images/logo.png" mode="aspectFit"></image>
  6. <text class="app-name">农小禹</text>
  7. <text class="version">Version {{ version }}</text>
  8. </view>
  9. <!-- 公司简介 -->
  10. <view class="section">
  11. <view class="section-title">公司简介</view>
  12. <view class="content">
  13. 农小禹是一家专注于智慧农业解决方案的科技公司,致力于通过数字化技术提升农业生产效率,
  14. 实现农业现代化。我们提供从种植管理、设备监控到农产品销售的一站式服务,
  15. 帮助农户实现科学种植、增产增收。
  16. </view>
  17. </view>
  18. <!-- 联系方式 -->
  19. <view class="section">
  20. <view class="section-title">联系我们</view>
  21. <view class="contact-list">
  22. <view class="contact-item" @click="copyText('www.nongxiaoyu.com')">
  23. <text class="label">官方网站</text>
  24. <text class="value">www.nongxiaoyu.com</text>
  25. </view>
  26. <view class="contact-item" @click="makePhoneCall">
  27. <text class="label">服务热线</text>
  28. <text class="value">400-xxx-xxxx</text>
  29. </view>
  30. <view class="contact-item" @click="copyText('service@nongxiaoyu.com')">
  31. <text class="label">电子邮箱</text>
  32. <text class="value">service@nongxiaoyu.com</text>
  33. </view>
  34. <view class="contact-item">
  35. <text class="label">公司地址</text>
  36. <text class="value">浙江省杭州市滨江区科技园区xxx号</text>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 版权信息 -->
  41. <view class="footer">
  42. <text>Copyright © 2024 农小禹科技有限公司</text>
  43. <text>All Rights Reserved</text>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. version: '1.0.0'
  52. };
  53. },
  54. methods: {
  55. // 复制文本
  56. copyText(text) {
  57. uni.setClipboardData({
  58. data: text,
  59. success: () => {
  60. uni.showToast({
  61. title: '已复制到剪贴板',
  62. icon: 'none'
  63. });
  64. }
  65. });
  66. },
  67. // 拨打电话
  68. makePhoneCall() {
  69. uni.makePhoneCall({
  70. phoneNumber: '400-xxx-xxxx',
  71. fail: () => {
  72. this.copyText('400-xxx-xxxx');
  73. }
  74. });
  75. }
  76. }
  77. };
  78. </script>
  79. <style lang="scss">
  80. .about-container {
  81. min-height: 100vh;
  82. background-color: #f5f5f5;
  83. padding: 40rpx 30rpx;
  84. box-sizing: border-box;
  85. }
  86. .header {
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. padding: 60rpx 0;
  91. background-color: #ffffff;
  92. border-radius: 16rpx;
  93. margin-bottom: 20rpx;
  94. .logo {
  95. width: 160rpx;
  96. height: 160rpx;
  97. margin-bottom: 20rpx;
  98. }
  99. .app-name {
  100. font-size: 36rpx;
  101. font-weight: bold;
  102. color: #333;
  103. margin-bottom: 10rpx;
  104. }
  105. .version {
  106. font-size: 24rpx;
  107. color: #999;
  108. }
  109. }
  110. .section {
  111. background-color: #ffffff;
  112. border-radius: 16rpx;
  113. padding: 30rpx;
  114. margin-bottom: 20rpx;
  115. .section-title {
  116. font-size: 32rpx;
  117. font-weight: bold;
  118. color: #333;
  119. margin-bottom: 20rpx;
  120. }
  121. .content {
  122. font-size: 28rpx;
  123. color: #666;
  124. line-height: 1.6;
  125. }
  126. .contact-list {
  127. .contact-item {
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. padding: 20rpx 0;
  132. border-bottom: 1rpx solid #f0f0f0;
  133. &:last-child {
  134. border-bottom: none;
  135. }
  136. .label {
  137. font-size: 28rpx;
  138. color: #333;
  139. }
  140. .value {
  141. font-size: 28rpx;
  142. color: #666;
  143. }
  144. }
  145. }
  146. }
  147. .footer {
  148. text-align: center;
  149. padding: 40rpx 0;
  150. text {
  151. display: block;
  152. font-size: 24rpx;
  153. color: #999;
  154. line-height: 1.5;
  155. }
  156. }
  157. </style>