About.vue 909 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="divs" >
  3. <div v-if="image" style="text-align: center; width:100%"><img style="width:100%" :src="listpar.picurls" alt=""></div>
  4. <div v-html="listpar.content"></div>
  5. </div>
  6. </template>
  7. <script>
  8. import apiurl from "@/api/apiurl/apiurl.js"
  9. export default {
  10. name: "newsinvite",
  11. data() {
  12. return {
  13. listpar:'',
  14. image:false
  15. };
  16. },
  17. created() {
  18. this.getSong()
  19. },
  20. methods: {
  21. //查询接口
  22. async getSong() {
  23. let res = await apiurl.entityDataHandles({
  24. bizCatalog:'AgreementEntity',
  25. handleMode:'fetch',
  26. bizId:this.$route.query.id
  27. });
  28. if (this.$common.verifyAjaxResult(res, false) == false) return;
  29. this.listpar = res.Result;
  30. this.image = this.$route.query.id =='3'
  31. },
  32. },
  33. };
  34. </script>
  35. <style scoped>
  36. .divs {
  37. text-align: left;
  38. width:90%;
  39. margin: 0 auto;
  40. }
  41. </style>