about.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view>
  3. <uni-nav-bar :fixed="true" shadow left-icon="left" title="关于我们" :statusBar="true" @clickLeft="handleToBack" />
  4. <view class="content">
  5. <view>
  6. <uni-list :border="false">
  7. <uni-list-chat
  8. :avatar-circle="true"
  9. :title="item.title"
  10. :avatar="item.avatar"
  11. :note="item.note"
  12. v-for="(item, index) in items"
  13. :key="index"
  14. clickable
  15. @click="handleToHelp(item.id)"
  16. >
  17. <view class="chat-custom-right">
  18. <image src="/static/common/right.png" class="extra_image" mode="aspectFill" />
  19. </view>
  20. </uni-list-chat>
  21. </uni-list>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script setup>
  27. import { ref, reactive } from 'vue';
  28. import { onLoad, onShow } from '@dcloudio/uni-app';
  29. const statusBarHeight = ref();
  30. const items = reactive([
  31. {
  32. id: '3',
  33. title: '责任声明',
  34. avatar: '/static/account/about/statement.png',
  35. note: '点击查看嘀咚点到责任声明'
  36. },
  37. {
  38. id: '21',
  39. title: '用户协议',
  40. avatar: '/static/account/about/agreement.png',
  41. note: '点击查看嘀咚点到用户协议'
  42. },
  43. {
  44. id: '5',
  45. title: '隐私政策',
  46. avatar: '/static/account/about/privacy.png',
  47. note: '点击查看嘀咚点到隐私政策'
  48. }
  49. ]);
  50. const handleToHelp = (id) => {
  51. uni.navigateTo({
  52. url: `/pages/account/help?id=${id}`
  53. });
  54. };
  55. const handleToBack = () => {
  56. const canNavBack = getCurrentPages();
  57. if (canNavBack && canNavBack.length > 1) uni.navigateBack();
  58. else history.back();
  59. };
  60. onLoad((option) => {
  61. statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight;
  62. });
  63. onShow(() => {
  64. uni.$emit('fastOrderNum', false);
  65. uni.$emit('receiveOrdernum', false);
  66. })
  67. </script>
  68. <style lang="scss" scoped>
  69. .content {
  70. padding: 20upx;
  71. .uni-list {
  72. background: transparent;
  73. :deep(.uni-list-chat) {
  74. margin: 10upx 0;
  75. height: 150upx;
  76. .uni-list-chat__header {
  77. width: 84upx;
  78. height: 80upx;
  79. .uni-list-chat__header-image {
  80. width: 76upx;
  81. height: 76upx;
  82. }
  83. }
  84. .uni-list-chat__container {
  85. padding: 40upx;
  86. .uni-list-chat__content-title {
  87. font-size: 32upx;
  88. font-weight: 400;
  89. color: #000000;
  90. }
  91. .uni-list-chat__content-note {
  92. font-size: 24upx;
  93. font-weight: 400;
  94. color: #999999;
  95. }
  96. .uni-list-chat__content-extra {
  97. justify-content: center;
  98. .chat-custom-right {
  99. .extra_image {
  100. width: 14upx;
  101. height: 24upx;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. </style>