W1254H300.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <section class="banner-W1254H300">
  3. <div class="section-wrapper">
  4. <div id="adfox_167049491279464015"></div>
  5. <div id="adfox_163238664261336035"></div>
  6. </div>
  7. </section>
  8. </template>
  9. <script>
  10. export default {
  11. watch: {
  12. $route (to, from) {
  13. // eslint-disable-next-line no-undef
  14. Ya.adfoxCode.reload('adfox_167049491279464015')
  15. // eslint-disable-next-line no-undef
  16. Ya.adfoxCode.reload('adfox_163238664261336035')
  17. }
  18. },
  19. mounted () {
  20. window.yaContextCb.push(() => {
  21. // eslint-disable-next-line no-undef
  22. Ya.adfoxCode.create({
  23. ownerId: 720777,
  24. containerId: 'adfox_167049491279464015',
  25. params: {
  26. p1: 'cwojh',
  27. p2: 'hyrh'
  28. }
  29. })
  30. // eslint-disable-next-line no-undef
  31. Ya.adfoxCode.create({
  32. ownerId: 279920,
  33. containerId: 'adfox_163238664261336035',
  34. params: {
  35. pp: 'g',
  36. ps: 'dbpj',
  37. p2: 'hiju'
  38. }
  39. })
  40. })
  41. }
  42. }
  43. </script>
  44. <style lang='less'>
  45. .banner-W1254H300 {
  46. width: 100%;
  47. div{
  48. margin: 0 auto;
  49. div{
  50. margin: 0 auto;
  51. }
  52. }
  53. @media (max-width: 576px) {
  54. display: none;
  55. }
  56. .section-wrapper {
  57. height: auto;
  58. text-align: center;
  59. position: relative;
  60. // background-color: green;
  61. // &::after {
  62. // content: "Растяжка 3";
  63. // position: absolute;
  64. // }
  65. }
  66. }
  67. </style>