index1.vue 831 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="view-text">
  3. <u-parse class="uni-body view-content" :content="content"></u-parse>
  4. </view>
  5. </template>
  6. <script setup>
  7. import { onReady, onLoad, onShow, onNavigationBarButtonTap } from "@dcloudio/uni-app";
  8. import { ref, onMounted, inject, shallowRef, reactive, getCurrentInstance, toRefs } from "vue";
  9. const data = reactive({
  10. title: "",
  11. content: "",
  12. });
  13. const { title, content } = toRefs(data);
  14. onLoad((options) => {
  15. title.value = options.title;
  16. content.value = options.content;
  17. uni.setNavigationBarTitle({
  18. title: options.title,
  19. });
  20. });
  21. </script>
  22. <style>
  23. page {
  24. background-color: #ffffff;
  25. }
  26. </style>
  27. <style lang="scss" scoped>
  28. .view-text {
  29. padding: 5px;
  30. .view-content {
  31. font-size: 26rpx;
  32. color: #333;
  33. line-height: 24px;
  34. word-wrap: break-word;
  35. }
  36. }
  37. </style>