<template>
  <view class="body-background" :style="{
		backgroundImage:'url('+staticImage.wallpaperBgImage+')'
		}"></view>
  <HeaderNav title="关于我们" :is-back="true"></HeaderNav>

  <view style="padding: 0 30rpx 50rpx">
    <u-parse :content="aboutUs"></u-parse>
  </view>
</template>

<script>
import {getConfig} from "@/api/other";
import HeaderNav from "../../components/HeaderNav/Index.vue";
import {imghost} from "@/config/host";

export default {
  components: {HeaderNav},
  data() {
    return {
      staticImage: {
        orderCardBackground: imghost + '/order-card-background.png',
        wallpaperBgImage: imghost + '/background.png',
        addrDetailTitle: imghost + '/addr-detail-title.png',
      },
      aboutUs: ''
    };
  },
  onLoad() {
    this.getAboutUs();
  },
  methods: {
    getAboutUs() {
      getConfig('aboutUs').then(res => {
        this.aboutUs = res.data.aboutUs;
      })
    }
  },
  onPageScroll(res) {
    if (res.scrollTop <= 20) {
      uni.$emit('isTop', true);
    } else {
      uni.$emit('isTop', false);
    }
  },
}
</script>

<style lang="scss">

</style>
