<template> <u-navbar :title="title" :auto-back="true" left-icon-size="40rpx" :safe-area-inset-top="true" :placeholder="true" bgColor="#ffffff" ></u-navbar> <u-row :custom-style="{padding:'38rpx 66rpx'}"> <u-col :span="12"> <view class="content"> <u-parse :content="content"></u-parse> </view> </u-col> </u-row> </template> <script> import { imghost } from '@/config/host.js' import MzSubsection from '@/components/MzSubsection/Index.vue'; import api from '@/utils/functions.js'; import {webConfig} from "@/api/other"; export default { components: { MzSubsection }, data() { return { title: '关于我们', content:'', loading: true, staticImage: { bg: imghost + '/static/image/BG.png', newIcon: imghost + '/static/image/new-icon.png', }, isTop: false, } }, onLoad() { }, computed: { api() { return api }, }, methods: { getAboutUs(){ webConfig({type:'about_us'}).then(res => { if(res.code === 200){ this.content = res.data.about_us; } }) } }, onPageScroll(res) { if (res.scrollTop <= 20) { uni.$emit('isTop', true); } else { uni.$emit('isTop', false); } }, created() { }, mounted() { this.getAboutUs(); } } </script> <style lang="scss"> @import './components/index.scss'; </style>