index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 setup>
  48. import { ref } from 'vue'
  49. // 响应式数据
  50. const version = ref('1.0.0')
  51. // 复制文本
  52. const copyText = (text) => {
  53. uni.setClipboardData({
  54. data: text,
  55. success: () => {
  56. uni.showToast({
  57. title: '已复制到剪贴板',
  58. icon: 'none'
  59. })
  60. }
  61. })
  62. }
  63. // 拨打电话
  64. const makePhoneCall = () => {
  65. uni.makePhoneCall({
  66. phoneNumber: '400-xxx-xxxx',
  67. fail: () => {
  68. copyText('400-xxx-xxxx')
  69. }
  70. })
  71. }
  72. </script>
  73. <style lang="scss">
  74. .about-container {
  75. min-height: 100vh;
  76. background-color: #f5f5f5;
  77. padding: 40rpx 30rpx;
  78. box-sizing: border-box;
  79. }
  80. .header {
  81. display: flex;
  82. flex-direction: column;
  83. align-items: center;
  84. padding: 60rpx 0;
  85. background-color: #ffffff;
  86. border-radius: 16rpx;
  87. margin-bottom: 20rpx;
  88. .logo {
  89. width: 160rpx;
  90. height: 160rpx;
  91. margin-bottom: 20rpx;
  92. }
  93. .app-name {
  94. font-size: 36rpx;
  95. font-weight: bold;
  96. color: #333;
  97. margin-bottom: 10rpx;
  98. }
  99. .version {
  100. font-size: 24rpx;
  101. color: #999;
  102. }
  103. }
  104. .section {
  105. background-color: #ffffff;
  106. border-radius: 16rpx;
  107. padding: 30rpx;
  108. margin-bottom: 20rpx;
  109. .section-title {
  110. font-size: 32rpx;
  111. font-weight: bold;
  112. color: #333;
  113. margin-bottom: 20rpx;
  114. }
  115. .content {
  116. font-size: 28rpx;
  117. color: #666;
  118. line-height: 1.6;
  119. }
  120. .contact-list {
  121. .contact-item {
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. padding: 20rpx 0;
  126. border-bottom: 1rpx solid #f0f0f0;
  127. &:last-child {
  128. border-bottom: none;
  129. }
  130. .label {
  131. font-size: 28rpx;
  132. color: #333;
  133. }
  134. .value {
  135. font-size: 28rpx;
  136. color: #666;
  137. }
  138. }
  139. }
  140. }
  141. .footer {
  142. text-align: center;
  143. padding: 40rpx 0;
  144. text {
  145. display: block;
  146. font-size: 24rpx;
  147. color: #999;
  148. line-height: 1.5;
  149. }
  150. }
  151. </style>