attestation.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. new Vue({
  2. data: {
  3. popupVisiable: false,
  4. twoData: [
  5. {icon: '/img/activity/attestation/section_icon_1.png', text: '自主授权'},
  6. {icon: '/img/activity/attestation/section_icon_2.png', text: '自主认证'},
  7. {icon: '/img/activity/attestation/section_icon_3.png', text: '自主管理'},
  8. {icon: '/img/activity/attestation/section_icon_4.png', text: '更快更专业'}
  9. ],
  10. //认证通合作伙伴
  11. suppileData: [
  12. {
  13. logo: '/img/activity/attestation/1.jpg',
  14. name: '上海品辉医疗科技有限公司',
  15. entryRoute: '/4/app',
  16. secondRoute: ''
  17. },
  18. {
  19. logo: '/img/activity/attestation/2.jpg',
  20. name: '科医人医疗激光设备贸易公司',
  21. entryRoute: '',
  22. secondRoute: ''
  23. },
  24. {
  25. logo: '/img/activity/attestation/3.jpg',
  26. name: '广州埃墨莉素生物科技有限公司',
  27. entryRoute: '/10/ldm',
  28. secondRoute: '',
  29. redirect: ''
  30. },
  31. {
  32. logo: '/img/activity/attestation/9.png',
  33. name: 'Ross',
  34. entryRoute: '/12/ross',
  35. secondRoute: '',
  36. redirect: ''
  37. },
  38. ],
  39. // 认证通快捷入口
  40. firstEntryList: [
  41. {
  42. logo: '/img/activity/attestation/shuishu.jpg',
  43. name: '水素水设备认证',
  44. entryRoute: '/4/app',
  45. secondRoute: '/approve/device'
  46. },
  47. {
  48. logo: '/img/activity/attestation/3.jpg',
  49. name: 'LDM正品授权',
  50. entryRoute: '/10/ldm/approve',
  51. secondRoute: '',
  52. redirect: ''
  53. },
  54. {
  55. logo: '/img/activity/attestation/9.png',
  56. name: 'ROS\'S机构认证',
  57. entryRoute: '/12/ross',
  58. secondRoute: '',
  59. redirect: ''
  60. },
  61. ]
  62. },
  63. mounted() {
  64. this.initSwiper1()
  65. this.initSwiper2()
  66. },
  67. methods: {
  68. initSwiper1() {
  69. const swiper = new Swiper("#mySwiper1", {
  70. slidesPerView: 2,
  71. spaceBetween: 15,
  72. loop: true,
  73. autoplay: {
  74. delay: 2000,
  75. },
  76. });
  77. swiper.el.onmouseover = function () {
  78. swiper.autoplay.stop();
  79. }
  80. swiper.el.onmouseout = function () {
  81. swiper.autoplay.start();
  82. }
  83. },
  84. initSwiper2() {
  85. const swiper = new Swiper("#mySwiper2", {
  86. slidesPerView: 3,
  87. spaceBetween: 15,
  88. loop: true,
  89. autoplay: {
  90. delay: 2000,
  91. },
  92. });
  93. swiper.el.onmouseover = function () {
  94. swiper.autoplay.stop();
  95. }
  96. swiper.el.onmouseout = function () {
  97. swiper.autoplay.start();
  98. }
  99. },
  100. handleClick: function (data) {
  101. if (data.redirect) {
  102. window.open(data.redirect, '_blank')
  103. return
  104. }
  105. if (!data.entryRoute) {
  106. this.popupVisiable = true;
  107. return false
  108. }
  109. // 将要跳转的链接
  110. var baseUrl = 'https://zp.caimei365.com' + data.entryRoute + data.secondRoute
  111. window.open(baseUrl, '_blank')
  112. }
  113. }
  114. }).$mount('#attestation');
  115. // $(function(){
  116. // var swiper = new Swiper("#mySwiper1", {
  117. // slidesPerView: 3,
  118. // spaceBetween: 15,
  119. // freeMode: true,
  120. // autoPlay: true,
  121. // });
  122. // })