detail.vue 427 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view class="text" v-html="detail">
  3. </view>
  4. </template>
  5. <script>
  6. import {
  7. getEvaluationDetail
  8. } from "@/api/maintain.js"
  9. export default {
  10. data: function() {
  11. return {
  12. detail: ""
  13. }
  14. },
  15. onLoad(options) {
  16. let that = this;
  17. getEvaluationDetail({
  18. id: options.id
  19. }).then((res) => {
  20. that.detail = res.data.result;
  21. })
  22. }
  23. }
  24. </script>
  25. <style>
  26. .text {
  27. padding: 58rpx;
  28. }
  29. </style>