about.vue 561 B

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