service.vue 598 B

1234567891011121314151617181920212223242526272829303132333435363738
  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.serve()
  23. },
  24. methods: {
  25. serve(){
  26. service.getExplain().then(res=>{
  27. this.string = res.text;
  28. this.title = res.title;
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. </style>