about.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="container">
  3. <!-- 顶部导航栏 -->
  4. <view class="header">
  5. <view class="back-btn" @click="goBack">
  6. <text class="back-icon">←</text>
  7. </view>
  8. <text class="header-title">关于我们虞</text>
  9. <view class="header-right"></view>
  10. </view>
  11. <scroll-view class="scroll-content" scroll-y>
  12. <!-- 应用信息 -->
  13. <view class="app-info-section">
  14. <view class="app-icon-wrapper">
  15. <view class="app-icon">
  16. <text class="app-icon-text">📖</text>
  17. </view>
  18. </view>
  19. <text class="app-name">云阅读</text>
  20. <text class="app-version">version 1.0.0</text>
  21. </view>
  22. <!-- 联系信息 -->
  23. <view class="contact-section">
  24. <text class="contact-item">客服微信: 1574250342</text>
  25. <text class="contact-item">在线时间: 8:30am-5:30pm</text>
  26. </view>
  27. <!-- 法律链接 -->
  28. <view class="legal-section">
  29. <text class="legal-link" @click="goToUserAgreement">用户协议</text>
  30. <text class="legal-separator">|</text>
  31. <text class="legal-link" @click="goToPrivacyPolicy">隐私政策</text>
  32. </view>
  33. </scroll-view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. methods: {
  39. goBack() {
  40. uni.navigateBack()
  41. },
  42. goToUserAgreement() {
  43. uni.showToast({
  44. title: '用户协议',
  45. icon: 'none'
  46. })
  47. // 可以跳转到用户协议页面
  48. // uni.navigateTo({
  49. // url: '/pages/user-agreement/user-agreement'
  50. // })
  51. },
  52. goToPrivacyPolicy() {
  53. uni.showToast({
  54. title: '隐私政策',
  55. icon: 'none'
  56. })
  57. // 可以跳转到隐私政策页面
  58. // uni.navigateTo({
  59. // url: '/pages/privacy-policy/privacy-policy'
  60. // })
  61. }
  62. }
  63. }
  64. </script>
  65. <style scoped>
  66. .container {
  67. width: 100%;
  68. height: 100vh;
  69. min-height: 100vh;
  70. background-color: #FFFFFF;
  71. display: flex;
  72. padding-top: 30px;
  73. box-sizing: border-box;
  74. flex-direction: column;
  75. box-sizing: border-box;
  76. overflow: hidden;
  77. }
  78. .header {
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. padding: 20rpx 30rpx;
  83. padding-top: calc(20rpx + env(safe-area-inset-top));
  84. background-color: #FFFFFF;
  85. border-bottom: 1rpx solid #F0F0F0;
  86. position: relative;
  87. flex-shrink: 0;
  88. box-sizing: border-box;
  89. }
  90. .back-btn {
  91. width: 60rpx;
  92. height: 60rpx;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. z-index: 10;
  97. }
  98. .back-icon {
  99. font-size: 40rpx;
  100. color: #333333;
  101. font-weight: bold;
  102. }
  103. .header-title {
  104. position: absolute;
  105. left: 50%;
  106. transform: translateX(-50%);
  107. font-size: 36rpx;
  108. font-weight: bold;
  109. color: #333333;
  110. }
  111. .header-right {
  112. width: 60rpx;
  113. }
  114. .scroll-content {
  115. flex: 1;
  116. width: 100%;
  117. height: 0;
  118. overflow: hidden;
  119. padding-bottom: calc(env(safe-area-inset-bottom));
  120. background-color: #FFFFFF;
  121. box-sizing: border-box;
  122. }
  123. .app-info-section {
  124. display: flex;
  125. flex-direction: column;
  126. align-items: center;
  127. padding: 80rpx 30rpx 60rpx;
  128. }
  129. .app-icon-wrapper {
  130. margin-bottom: 30rpx;
  131. }
  132. .app-icon {
  133. width: 160rpx;
  134. height: 160rpx;
  135. background-color: #4FC3F7;
  136. border-radius: 24rpx;
  137. display: flex;
  138. align-items: center;
  139. justify-content: center;
  140. box-shadow: 0 4rpx 12rpx rgba(79, 195, 247, 0.3);
  141. }
  142. .app-icon-text {
  143. font-size: 80rpx;
  144. }
  145. .app-name {
  146. font-size: 40rpx;
  147. font-weight: bold;
  148. color: #333333;
  149. margin-bottom: 15rpx;
  150. }
  151. .app-version {
  152. font-size: 26rpx;
  153. color: #999999;
  154. }
  155. .contact-section {
  156. padding: 40rpx 30rpx;
  157. display: flex;
  158. flex-direction: column;
  159. gap: 20rpx;
  160. }
  161. .contact-item {
  162. font-size: 28rpx;
  163. color: #999999;
  164. line-height: 1.6;
  165. }
  166. .legal-section {
  167. display: flex;
  168. align-items: center;
  169. justify-content: center;
  170. padding: 60rpx 30rpx;
  171. gap: 20rpx;
  172. }
  173. .legal-link {
  174. font-size: 28rpx;
  175. color: #999999;
  176. text-decoration: underline;
  177. }
  178. .legal-separator {
  179. font-size: 28rpx;
  180. color: #CCCCCC;
  181. }
  182. </style>