|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <u-swiper height="250" :list="imageTopList"></u-swiper>
|
|
|
+ <u-swiper height="250" @click="clickBanner" :list="imageTopList"></u-swiper>
|
|
|
<view class="t1">
|
|
|
<u-image height="40" src="/static/t1.png"></u-image>
|
|
|
</view>
|
|
@@ -55,6 +55,16 @@
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 点击banner
|
|
|
+ clickBanner(index){
|
|
|
+ let row = this.imageTopList[index]
|
|
|
+ console.log(index,row)
|
|
|
+ if(row.jumpType !== 'NONE'){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: row.jumpUrl
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取banner
|
|
|
getbannerList(){
|
|
|
bannerList({type:'banner',location:'MALL_TOP'}).then(res=>{
|