TopTen.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div class="topTenTitle">
  3. <div class="inner" v-if="imgurl">
  4. <a href="http://nzgxw.org.cn/" v-if="imgurl.image_url==null" target="_blank" :title="imgurl.introduce">
  5. <img :src="imgurl.thumb" :alt="imgurl.introduce" :id="imgurl.ad_tag" data-tag="imgurl.ad_tag">
  6. </a>
  7. <a :href="imgurl.image_url" v-else :title="imgurl.introduce">
  8. <img :src="imgurl.image_src" :alt="imgurl.introduce" :id="imgurl.ad_tag" data-tag="imgurl.ad_tag">
  9. </a>
  10. </div>
  11. </div>
  12. </template>
  13. <script setup>
  14. const props = defineProps({
  15. imgurl: String
  16. });
  17. </script>
  18. <style lang="less">
  19. // 十强称号logo
  20. .topTenTitle {
  21. width: 1200px;
  22. height: 90px;
  23. margin: 0 auto;
  24. margin-top: 20px;
  25. margin-bottom: 20px;
  26. overflow: hidden;
  27. a {
  28. display: block;
  29. height: 90px;
  30. overflow: hidden;
  31. }
  32. img {
  33. width: 1200px;
  34. height: 90px;
  35. }
  36. }
  37. @media screen and (min-width:800px){/*pc*/
  38. }
  39. @media screen and (max-width:800px){/*ipad_phone*/
  40. .topTenTitle {
  41. width: 100%;height:auto;
  42. margin: 11px auto 0;
  43. }
  44. .topTenTitle .inner {
  45. width: 100%;height:auto;
  46. }
  47. .topTenTitle a {height:auto;width:100%;}
  48. .topTenTitle img {height:11vw;width:100%;display:block;}
  49. .topTenTitle {display:none;}
  50. }
  51. </style>