about.vue 536 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="pages padding-page">
  3. <u-parse :content="data.content"></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. data:{
  11. content:'',
  12. },
  13. }
  14. },
  15. onShow() {
  16. this.getCompanyInfo()
  17. },
  18. onLoad() {
  19. },
  20. methods: {
  21. getCompanyInfo(){
  22. this.$u.api.getCompanyInfo().then(res=>{
  23. this.data = res.data;
  24. console.log('res',res.data);
  25. }).catch(err=>{
  26. console.log('getCompanyInfo',err);
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. </style>