|
|
- <template>
- <view class="about-container">
- <!-- 顶部导航栏 -->
- <view class="nav-bar" :style="{height: (statusBarHeight + 88) + 'rpx', paddingTop: statusBarHeight + 'px'}">
- <view class="back" @tap="goBack">
- <uni-icons type="left" size="20"></uni-icons>
- </view>
- <text class="title">关于我们</text>
- </view>
- <!-- 主卡片 -->
- <view class="main-card" :style="{marginTop: (statusBarHeight + 88) + 'rpx'}">
- <!-- 富文本内容 -->
- <rich-text :nodes="memberTextContent" class="rich-text-content"></rich-text>
- </view>
- </view>
- </template>
-
- <script>
- import pullRefreshMixin from '@/pages/mixins/pullRefreshMixin.js'
-
- export default {
- mixins: [pullRefreshMixin],
- data() {
- return {
- statusBarHeight: 0
- }
- },
- computed: {
- memberTextContent() {
- console.log(getApp().globalData.configData, 'about-getApp().globalData.configData')
- const item = getApp().globalData.configData.find(i => i.keyName === 'member_text')
- return item ? item.keyContent : ''
- }
- },
- onLoad() {
- this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
- },
- methods: {
- goBack() {
- uni.navigateBack();
- },
- async onRefresh() {
- // 模拟刷新数据
- await new Promise(resolve => setTimeout(resolve, 1000))
- this.stopPullRefresh()
- }
- }
- }
- </script>
-
- <style scoped lang="scss">
- .about-container {
- min-height: 100vh;
- background: linear-gradient(180deg, #fff3db 0%, #fffefb 30%);
- padding-bottom: 40rpx;
- }
- .nav-bar {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 999;
- display: flex;
- align-items: center;
- background: #fffbe6;
- padding: 0 30rpx;
- .back {
- padding: 20rpx;
- margin-left: -20rpx;
- }
- .title {
- flex: 1;
- text-align: center;
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 16px;
- line-height: 140%;
- letter-spacing: 0%;
- text-align: center;
- vertical-align: middle;
- font-weight: 500;
- color: #222;
- }
- }
- .main-card {
- background: #ffffff;
- border-radius: 36rpx;
- box-shadow: 0 8rpx 32rpx rgba(255, 156, 0, 0.08);
- margin: 32rpx 24rpx 0 24rpx;
- padding: 40rpx 32rpx 32rpx 32rpx;
- display: flex;
- flex-direction: column;
- align-items: stretch;
- }
- .rich-text-content {
- width: 100%;
- line-height: 1.7;
- font-size: 26rpx;
- color: #444;
- }
- </style>
|