aboutme.vue 683 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view>
  3. <view class="align-items" style="margin-top: 80rpx;">
  4. <back></back>
  5. <view class="title-text" style="margin-left: 20rpx;">
  6. {{title}}
  7. </view>
  8. </view>
  9. <rich-text :nodes="string"></rich-text>
  10. </view>
  11. </template>
  12. <script>
  13. import service from '@/api/index.js'
  14. export default {
  15. data() {
  16. return {
  17. title:'',
  18. string:''
  19. }
  20. },
  21. onLoad() {
  22. this.about()
  23. },
  24. methods: {
  25. back() {
  26. uni.navigateBack()
  27. },
  28. about() {
  29. service.getAboutUs().then(res => {
  30. this.string = res.text;
  31. this.title = res.title;
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .back {
  39. width: 50rpx;
  40. height: 50rpx;
  41. }
  42. </style>