吉光研途前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
711 B

  1. <template>
  2. <view class="page__view">
  3. <!-- 导航栏 -->
  4. <navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" />
  5. <uv-parse :content="details.details"></uv-parse>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. details: {},
  13. }
  14. },
  15. onLoad({ articleId }) {
  16. this.getData(articleId)
  17. },
  18. methods: {
  19. async getData(articleId) {
  20. try {
  21. this.details = await this.$fetch('queryServiceArticleById', { articleId })
  22. } catch (err) {
  23. console.log('err', err)
  24. }
  25. },
  26. },
  27. }
  28. </script>
  29. <style scoped lang="scss">
  30. .img {
  31. width: 100vw;
  32. height: auto;
  33. }
  34. </style>