W960H90.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="banner-W960H90">
  3. <div class="section-wrapper">
  4. <div class="banner-desktop">
  5. <div id="adfox_163290315222648914"></div>
  6. <div id="adfox_167048940056251520"></div>
  7. </div>
  8. <div class="banner-mobile">
  9. <div :id="idMobil+'_main'"></div>
  10. <div :id="idMobil+'_reserved'"></div>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. watch: {
  18. $route (to, from) {
  19. // eslint-disable-next-line no-undef
  20. Ya.adfoxCode.reload('adfox_163290315222648914')
  21. }
  22. },
  23. props: {
  24. idMobil: {
  25. type: String,
  26. default: 'adfox_16323873072892801'
  27. }
  28. },
  29. mounted () {
  30. window.yaContextCb.push(() => {
  31. // eslint-disable-next-line no-undef
  32. Ya.adfoxCode.create({
  33. ownerId: 720777,
  34. containerId: 'adfox_167048940056251520',
  35. params: {
  36. p1: 'cwoid',
  37. p2: 'hyrh'
  38. }
  39. })
  40. // eslint-disable-next-line no-undef
  41. Ya.adfoxCode.create({
  42. ownerId: 279920,
  43. containerId: 'adfox_163290315222648914',
  44. params: {
  45. pp: 'h',
  46. ps: 'dbpj',
  47. p2: 'hduh'
  48. }
  49. })
  50. })
  51. window.yaContextCb.push(() => {
  52. // eslint-disable-next-line no-undef
  53. Ya.adfoxCode.create({
  54. ownerId: 720777,
  55. containerId: this.idMobil + '_reserved',
  56. params: {
  57. p1: 'cwoih',
  58. p2: 'hyrh'
  59. }
  60. })
  61. // eslint-disable-next-line no-undef
  62. Ya.adfoxCode.create({
  63. ownerId: 279920,
  64. containerId: this.idMobil + '_main',
  65. params: {
  66. pp: 'g',
  67. ps: 'dbpj',
  68. p2: 'hduj'
  69. }
  70. })
  71. })
  72. }
  73. }
  74. </script>
  75. <style lang='less'>
  76. .banner-desktop {
  77. display: block;
  78. /*background: red;
  79. height: 90px;*/
  80. }
  81. .banner-mobile {
  82. display: none;
  83. }
  84. @media all and (max-width: 576px) {
  85. .banner-desktop {
  86. display: none;
  87. }
  88. .banner-mobile {
  89. display: block;
  90. /*background: blue;
  91. height: 90px;*/
  92. }
  93. }
  94. .banner-W960H90 {
  95. width: 100%;
  96. height: auto;
  97. text-align: center;
  98. position: relative;
  99. // background-color: blueviolet;
  100. // &::after {
  101. // content: "Растяжка 5";
  102. // position: absolute;
  103. // }
  104. }
  105. </style>