about.vue 622 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="about-text-align" v-html="aboutText">
  3. </div>
  4. </template>
  5. <script>
  6. import axios from 'axios'
  7. export default{
  8. data () {
  9. return {
  10. aboutText: {}
  11. }
  12. },
  13. created () {
  14. this.getUserCoupon()
  15. },
  16. methods: {
  17. getUserCoupon () {
  18. axios.get('api/common/staticSource&key=about_us').then(res => {
  19. console.log(res)
  20. this.aboutText = res.data.data.content
  21. console.log(this.aboutText)
  22. })
  23. }
  24. }
  25. }
  26. </script>
  27. <style scoped lang="less">
  28. .about-text-align {
  29. text-align: left;
  30. font-size: .8rem;
  31. }
  32. </style>