Browse Source

Merge branch 'banner-link/1215' into release-20171212

hangb 8 years ago
parent
commit
ae91254c15
1 changed files with 3 additions and 1 deletions
  1. 3 1
      components/provider/Carousel.vue

+ 3 - 1
components/provider/Carousel.vue

@@ -3,7 +3,9 @@
     <div v-swiper:mySwiper="swiperOption">
       <div class="swiper-wrapper">
         <div class="swiper-slide" v-for="banner in banners">
-          <img :src="banner.pictureUrl">
+          <a :href="banner.hrefUrl" target="_blank">
+            <img :src="banner.pictureUrl">
+          </a>
         </div>
       </div>
       <div class="swiper-pagination swiper-pagination-bullets"></div>