Partner.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="partner">
  3. <div class="partner-container container">
  4. <h3>合作案例</h3>
  5. <div class="list clearfix">
  6. <a :href="p.href" v-for="p in partners" target="_blank">
  7. <img :src="p.img"/>
  8. </a>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'partner',
  16. data () {
  17. return {
  18. partners: [{
  19. href: 'http://www.worldshine.net/',
  20. img: '/images/partners/8.jpg'
  21. }, {
  22. href: 'http://www.fantem.cn/',
  23. img: '/images/partners/2.jpg'
  24. }, {
  25. href: 'http://www.huansujt.com',
  26. img: '/images/partners/3.jpg'
  27. }, {
  28. href: 'http://www.madigi.net',
  29. img: '/images/partners/4.jpg'
  30. }, {
  31. href: 'http://www.51cube.com',
  32. img: '/images/partners/5.jpg'
  33. }, {
  34. href: 'http://www.szsoling.com/home',
  35. img: '/images/partners/6.jpg'
  36. }, {
  37. href: 'http://www.chiptrip.com.cn/china/cn/index.asp',
  38. img: '/images/partners/7.jpg'
  39. }]
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. @import '~assets/scss/variables';
  46. .partner-container h3{
  47. font-size: 24px;
  48. }
  49. .partner {
  50. text-align: center;
  51. margin-bottom: $xlg-pad;
  52. .list {
  53. width: 1204px;
  54. overflow: hidden;
  55. a {
  56. float: left;
  57. width: 155px;
  58. height: 61px;
  59. margin-right: 15px;
  60. border: $border;
  61. img {
  62. max-width: 155px;
  63. max-height: 59px;
  64. }
  65. }
  66. }
  67. }
  68. </style>