Commit 51006dee authored by zhengke's avatar zhengke

修改

parent 37ebefcd
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
:interval="5000" :interval="5000"
name="picUrl" name="picUrl"
:border-radius="0" :border-radius="0"
@click="clickHandler"
></u-swiper> ></u-swiper>
</template> </template>
...@@ -46,9 +47,9 @@ export default { ...@@ -46,9 +47,9 @@ export default {
}, },
methods: { methods: {
clickHandler(i) { clickHandler(i) {
if (banners[i].url && banners[i].url.length > 0) { if (this.banners[i].url && this.banners[i].url.length > 0) {
uni.navigateTo({ uni.navigateTo({
url: banners[i].url, url: this.banners[i].url,
}); });
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment