| | |
| | | |
| | | <view class="banner-card hero-banner"> |
| | | <swiper class="banner-swiper" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="500" :circular="true" :indicator-color="'rgba(255, 255, 255, 0.5)'" :indicator-active-color="'#ffffff'"> |
| | | <swiper-item v-for="(item, index) in bannerList" :key="index"> |
| | | <swiper-item v-for="(item, index) in bannerList" :key="index" @click="jumpBannerDetail(item)"> |
| | | <image class="banner-image" :src="item.imgurlFull" mode="aspectFill"></image> |
| | | </swiper-item> |
| | | </swiper> |
| | |
| | | this.getIngorder() |
| | | }, |
| | | methods: { |
| | | jumpBannerDetail(item) { |
| | | if(!item.content || item.content =='' || item.type==0){ |
| | | return |
| | | } |
| | | if (item.type == 1) { |
| | | uni.navigateTo({ |
| | | url: '/shop/pages/article-details/article-details?id=' + item.id |
| | | }) |
| | | } else if(item.type == 2) { |
| | | uni.navigateTo({ |
| | | url: '/shop/pages/webview/webview?url=' + item.content |
| | | }) |
| | | } |
| | | }, |
| | | jumpOrderDetail(id){ |
| | | uni.navigateTo({ |
| | | url:'/pages/delivery-order-detail/delivery-order-detail?userType=0&id='+id |