fix
lefengyang
2026-08-16 bdb5f6f25c47c22920eb5d81b63d2ae80759b933
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
    <view class="page_bg">
        <uv-navbar title="关于我们" :autoBack="true" :placeholder="true" leftIconColor="#fff" bgColor="rgba(0,0,0,0)"
            titleStyle="color:#fff"></uv-navbar>
 
        <view class="about">
            <rich-text :nodes="aboutData"></rich-text>
        </view>
 
    </view>
</template>
 
<script>
    import {
        content
    } from '@/api/api.js'
    export default {
        data() {
            return {
                aboutData: ""
            }
        },
        onLoad() {
            this.getContent()
        },
        methods: {
            getContent() {
                content(2).then(res => {
                    console.log(res.data)
                    this.aboutData = res.data.content.replace(/(?<=src=")\/prod-api/g, uni.$uv.http.config.baseURL)
                })
            }
        }
    }
</script>
<style>
  /deep/ rich-text img {
    max-width: 100%;
    height: auto;
  }
</style>
<style lang="scss" scoped>
    .about {
        margin-top: 360rpx;
        padding: 30rpx;
        font-weight: 400;
        font-size: 27rpx;
        color: rgba(0, 0, 0, 0.7);
        line-height: 46rpx;
        text-align: justified;
    }
 
    .page_bg {
        width: 100%;
        min-height: calc(100vh - var(--window-bottom));
        background: url('/static/img/bg_4.png') no-repeat center top;
        background-size: 100% auto;
    }
</style>