index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view class="container">
  3. <!-- 自定义头部 -->
  4. <view class="custom-header">
  5. <view class="header-left" @click="navBack">
  6. <image class="back-icon" src="/static/icons/chevron_right_dark.svg" style="transform: rotate(180deg);"></image>
  7. </view>
  8. <text class="header-title">关于我们</text>
  9. <view class="header-right"></view>
  10. </view>
  11. <view class="header-placeholder"></view>
  12. <view class="logo-area">
  13. <image class="app-logo" src="/static/logo.png" mode="aspectFit"></image>
  14. <text class="app-name">履约者APP</text>
  15. <text class="app-version">Version 2.0.6</text>
  16. </view>
  17. <view class="group-card">
  18. <view class="list-item">
  19. <text class="item-title">服务协议</text>
  20. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  21. </view>
  22. <view class="list-item">
  23. <text class="item-title">隐私政策</text>
  24. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  25. </view>
  26. <view class="list-item no-border">
  27. <text class="item-title">版本更新</text>
  28. <view class="item-right">
  29. <view class="badge-yellow">1</view>
  30. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {}
  40. },
  41. methods: {
  42. navBack() {
  43. uni.navigateBack({
  44. delta: 1
  45. });
  46. }
  47. }
  48. }
  49. </script>
  50. <style>
  51. page {
  52. background-color: #F8F8F8;
  53. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  54. }
  55. .custom-header {
  56. position: fixed;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 88rpx;
  61. padding-top: var(--status-bar-height);
  62. background-color: #fff;
  63. display: flex;
  64. align-items: center;
  65. justify-content: space-between;
  66. padding-left: 30rpx;
  67. padding-right: 30rpx;
  68. box-sizing: border-box;
  69. z-index: 100;
  70. }
  71. .header-placeholder {
  72. height: calc(88rpx + var(--status-bar-height));
  73. }
  74. .back-icon {
  75. width: 40rpx;
  76. height: 40rpx;
  77. }
  78. .header-title {
  79. font-size: 32rpx;
  80. font-weight: bold;
  81. color: #333;
  82. }
  83. .header-right {
  84. width: 40rpx;
  85. }
  86. .container {
  87. padding: 20rpx 30rpx;
  88. }
  89. .logo-area {
  90. display: flex;
  91. flex-direction: column;
  92. align-items: center;
  93. justify-content: center;
  94. padding: 60rpx 0;
  95. }
  96. .app-logo {
  97. width: 160rpx;
  98. height: 160rpx;
  99. border-radius: 30rpx;
  100. margin-bottom: 20rpx;
  101. /* gradient background is usually part of the logo image itself, assuming logo.png is complete */
  102. }
  103. .app-name {
  104. font-size: 36rpx;
  105. font-weight: bold;
  106. color: #333;
  107. margin-bottom: 10rpx;
  108. }
  109. .app-version {
  110. font-size: 28rpx;
  111. color: #999;
  112. }
  113. .group-card {
  114. background-color: #fff;
  115. border-radius: 20rpx;
  116. padding: 0 30rpx;
  117. }
  118. .list-item {
  119. display: flex;
  120. justify-content: space-between;
  121. align-items: center;
  122. height: 100rpx;
  123. border-bottom: 1px solid #F5F5F5;
  124. }
  125. .list-item.no-border {
  126. border-bottom: none;
  127. }
  128. .item-title {
  129. font-size: 28rpx;
  130. color: #333;
  131. }
  132. .item-right {
  133. display: flex;
  134. align-items: center;
  135. }
  136. .arrow-icon {
  137. width: 28rpx;
  138. height: 28rpx;
  139. opacity: 0.5;
  140. margin-left: 10rpx;
  141. }
  142. .badge-yellow {
  143. width: 36rpx;
  144. height: 36rpx;
  145. background-color: #FFC107;
  146. color: #fff;
  147. font-size: 24rpx;
  148. line-height: 36rpx;
  149. text-align: center;
  150. border-radius: 6rpx;
  151. }
  152. </style>