Peregovorka.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div class="banner-peregovorka">
  3. <template v-if="isMobile">
  4. <div id="adfox_167230915349664107"></div>
  5. <div id="adfox_16723090979473523"></div><!-- Old dashboard-->
  6. </template>
  7. <template v-else>
  8. <div align="center">
  9. <div id="adfox_167048927679894492"></div>
  10. <div id="adfox_163238704807435857"></div><!-- Old dashboard-->
  11. </div>
  12. </template>
  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_167230915349664107')
  21. // eslint-disable-next-line no-undef
  22. Ya.adfoxCode.reload('adfox_16723090979473523')
  23. // eslint-disable-next-line no-undef
  24. Ya.adfoxCode.reload('adfox_167048927679894492')
  25. // eslint-disable-next-line no-undef
  26. Ya.adfoxCode.reload('adfox_163238704807435857')
  27. }
  28. },
  29. mounted () {
  30. if (this.isMobile) {
  31. window.yaContextCb.push(() => {
  32. // eslint-disable-next-line no-undef
  33. Ya.adfoxCode.create({
  34. ownerId: 279920,
  35. containerId: 'adfox_16723090979473523',
  36. params: {
  37. pp: 'g',
  38. ps: 'dbpj',
  39. p2: 'hjgv'
  40. }
  41. })
  42. // eslint-disable-next-line no-undef
  43. Ya.adfoxCode.create({
  44. ownerId: 720777,
  45. containerId: 'adfox_167230915349664107',
  46. params: {
  47. p1: 'cwoic',
  48. p2: 'hyrh'
  49. }
  50. })
  51. })
  52. } else {
  53. window.yaContextCb.push(() => {
  54. // eslint-disable-next-line no-undef
  55. Ya.adfoxCode.create({
  56. ownerId: 720777,
  57. containerId: 'adfox_167048927679894492',
  58. params: {
  59. p1: 'cwoib',
  60. p2: 'hyrh'
  61. }
  62. })
  63. // eslint-disable-next-line no-undef
  64. Ya.adfoxCode.create({
  65. ownerId: 279920,
  66. containerId: 'adfox_163238704807435857',
  67. params: {
  68. pp: 'g',
  69. ps: 'dbpj',
  70. p2: 'hijw'
  71. }
  72. })
  73. })
  74. }
  75. },
  76. computed: {
  77. isMainPage () {
  78. return this.$route.name === 'index'
  79. },
  80. isMobile () {
  81. return this.$nuxt.$device.isMobile
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang='less'>
  87. .banner-W240H400 {
  88. width: 100%;
  89. max-height: 400px;
  90. overflow: hidden;
  91. min-height: auto;
  92. text-align: center;
  93. position: relative;
  94. text-align: center;
  95. // background-color: blue;
  96. // &::after {
  97. // content: "Небоскреб";
  98. // position: absolute;
  99. // }
  100. div{
  101. margin: 0 auto;
  102. div{
  103. margin: 0 auto;
  104. }
  105. }
  106. }
  107. </style>