about.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="container">
  3. <view class="app-info">
  4. <view class="app-logo">
  5. <image class="logo-image" src="/static/icon.png" mode="aspectFit"></image>
  6. </view>
  7. <view class="app-name">青鸾之恋</view>
  8. <view class="app-version">v1.0.0</view>
  9. </view>
  10. <view class="agreements">
  11. <view class="agreement-item" @click="navigateToAgreement('user')">
  12. <text class="agreement-text">用户协议</text>
  13. <text class="arrow-icon">›</text>
  14. </view>
  15. <view class="agreement-item" @click="navigateToAgreement('privacy')">
  16. <text class="agreement-text">隐私政策</text>
  17. <text class="arrow-icon">›</text>
  18. </view>
  19. <view class="agreement-item" @click="navigateToAgreement('privacy-summary')">
  20. <text class="agreement-text">隐私政策摘要</text>
  21. <text class="arrow-icon">›</text>
  22. </view>
  23. <view class="agreement-item" @click="navigateToAgreement('platform')">
  24. <text class="agreement-text">平台信息管理规范</text>
  25. <text class="arrow-icon">›</text>
  26. </view>
  27. </view>
  28. <view class="record-info">
  29. <view class="record-item">
  30. <text class="record-text">ICP 备案号</text>
  31. </view>
  32. <view class="record-item">
  33. <text class="record-text">互联网信息服务算法备案号</text>
  34. </view>
  35. </view>
  36. <!-- <view class="withdraw-agreement" @click="showWithdrawConfirm">-->
  37. <!-- <text class="withdraw-text">撤回同意协议</text>-->
  38. <!-- </view>-->
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. methods: {
  44. navigateToAgreement(type) {
  45. console.log(`跳转到${type}协议页面`)
  46. },
  47. showWithdrawConfirm() {
  48. uni.showModal({
  49. title: '确认撤回',
  50. content: '您确定要撤回同意协议吗?',
  51. success: (res) => {
  52. if (res.confirm) {
  53. console.log('用户确认撤回同意协议')
  54. }
  55. }
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style>
  62. .container {
  63. padding: 40rpx;
  64. background-color: #f5f5f5;
  65. min-height: 100vh;
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. }
  70. .content {
  71. width: 100%;
  72. background-color: #ffffff;
  73. border-radius: 12rpx;
  74. padding: 40rpx;
  75. box-sizing: border-box;
  76. margin-top: 20rpx;
  77. }
  78. .app-info {
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. margin-bottom: 40rpx;
  83. }
  84. .app-logo {
  85. width: 160rpx;
  86. height: 160rpx;
  87. background-color: transparent;
  88. border-radius: 32rpx;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. margin-bottom: 30rpx;
  93. }
  94. .logo-image {
  95. width: 160rpx;
  96. height: 160rpx;
  97. border-radius: 32rpx;
  98. }
  99. .app-name {
  100. font-size: 40rpx;
  101. font-weight: bold;
  102. color: #333333;
  103. margin-bottom: 10rpx;
  104. }
  105. .app-version {
  106. font-size: 28rpx;
  107. color: #999999;
  108. }
  109. .agreements {
  110. width: 100%;
  111. }
  112. .agreement-item {
  113. display: flex;
  114. align-items: center;
  115. justify-content: space-between;
  116. padding: 35rpx 30rpx;
  117. border-bottom: 1rpx solid #f0f0f0;
  118. background-color: #ffffff;
  119. }
  120. .agreement-item:last-child {
  121. border-bottom: none;
  122. }
  123. .agreement-text {
  124. font-size: 32rpx;
  125. color: #333333;
  126. }
  127. .arrow-icon {
  128. font-size: 40rpx;
  129. color: #cccccc;
  130. font-weight: 300;
  131. }
  132. .record-info {
  133. display: flex;
  134. flex-direction: column;
  135. align-items: center;
  136. margin: 40rpx 0;
  137. width: 100%;
  138. }
  139. .record-item {
  140. margin-bottom: 15rpx;
  141. width: 100%;
  142. text-align: center;
  143. }
  144. .record-text {
  145. font-size: 24rpx;
  146. color: #999999;
  147. }
  148. .withdraw-agreement {
  149. display: flex;
  150. justify-content: center;
  151. margin: 20rpx 0 40rpx;
  152. padding: 10rpx;
  153. }
  154. .withdraw-text {
  155. font-size: 24rpx;
  156. color: #999999;
  157. text-decoration: underline;
  158. }
  159. </style>