index.vue 3.7 KB

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