爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.3 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="about-container">
  3. <!-- 顶部导航栏 -->
  4. <view class="nav-bar" :style="{height: (statusBarHeight + 88) + 'rpx', paddingTop: statusBarHeight + 'px'}">
  5. <view class="back" @tap="goBack">
  6. <uni-icons type="left" size="20"></uni-icons>
  7. </view>
  8. <text class="title">关于我们</text>
  9. </view>
  10. <!-- 主卡片 -->
  11. <view class="main-card" :style="{marginTop: (statusBarHeight + 88) + 'rpx'}">
  12. <!-- 富文本内容 -->
  13. <rich-text :nodes="memberTextContent" class="rich-text-content"></rich-text>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import pullRefreshMixin from '@/pages/mixins/pullRefreshMixin.js'
  19. export default {
  20. mixins: [pullRefreshMixin],
  21. data() {
  22. return {
  23. statusBarHeight: 0
  24. }
  25. },
  26. computed: {
  27. memberTextContent() {
  28. console.log(getApp().globalData.configData, 'about-getApp().globalData.configData')
  29. const item = getApp().globalData.configData.find(i => i.keyName === 'member_text')
  30. return item ? item.keyContent : ''
  31. }
  32. },
  33. onLoad() {
  34. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  35. },
  36. methods: {
  37. goBack() {
  38. uni.navigateBack();
  39. },
  40. async onRefresh() {
  41. // 模拟刷新数据
  42. await new Promise(resolve => setTimeout(resolve, 1000))
  43. this.stopPullRefresh()
  44. }
  45. }
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. .about-container {
  50. min-height: 100vh;
  51. background: linear-gradient(180deg, #fff3db 0%, #fffefb 30%);
  52. padding-bottom: 40rpx;
  53. }
  54. .nav-bar {
  55. position: fixed;
  56. top: 0;
  57. left: 0;
  58. right: 0;
  59. z-index: 999;
  60. display: flex;
  61. align-items: center;
  62. background: #fffbe6;
  63. padding: 0 30rpx;
  64. .back {
  65. padding: 20rpx;
  66. margin-left: -20rpx;
  67. }
  68. .title {
  69. flex: 1;
  70. text-align: center;
  71. font-family: PingFang SC;
  72. font-weight: 500;
  73. font-size: 16px;
  74. line-height: 140%;
  75. letter-spacing: 0%;
  76. text-align: center;
  77. vertical-align: middle;
  78. font-weight: 500;
  79. color: #222;
  80. }
  81. }
  82. .main-card {
  83. background: #ffffff;
  84. border-radius: 36rpx;
  85. box-shadow: 0 8rpx 32rpx rgba(255, 156, 0, 0.08);
  86. margin: 32rpx 24rpx 0 24rpx;
  87. padding: 40rpx 32rpx 32rpx 32rpx;
  88. display: flex;
  89. flex-direction: column;
  90. align-items: stretch;
  91. }
  92. .rich-text-content {
  93. width: 100%;
  94. line-height: 1.7;
  95. font-size: 26rpx;
  96. color: #444;
  97. }
  98. </style>