Slide.vue 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="divs" >
  3. <img class="imgs" :src="imageUrl + listpar.detailshowImg" alt="">
  4. </div>
  5. </template>
  6. <script>
  7. import apiurl from "@/api/apiurl/apiurl.js"
  8. import config from "@/request/config.js";
  9. export default {
  10. name: "newsinvite",
  11. data() {
  12. return {
  13. listpar:'',
  14. // 图片路径地址
  15. imageUrl: config.ImgUrl,
  16. };
  17. },
  18. created() {
  19. this.getSong()
  20. },
  21. methods: {
  22. async getSong(){
  23. let res = await apiurl.entityDataHandles({
  24. bizCatalog:'CyclePicShowEntity',
  25. handleMode:'fetch',
  26. bizId:this.$route.query.id
  27. })
  28. console.log(res);
  29. if(this.$common.verifyAjaxResult(res,false)==false) return;
  30. this.listpar = res.Result;
  31. },
  32. },
  33. };
  34. </script>
  35. <style scoped>
  36. .imgs {
  37. width:100%;
  38. height: auto;
  39. margin: 0 auto;
  40. }
  41. </style>