修复小程序点击轮播不跳转问题
This commit is contained in:
parent
0138d50226
commit
0802d2d920
|
@ -64,7 +64,7 @@ export default {
|
||||||
this.currentIndex = e.detail.current;
|
this.currentIndex = e.detail.current;
|
||||||
},
|
},
|
||||||
clickItem(item) {
|
clickItem(item) {
|
||||||
this.$emit("onClickItem", item);
|
this.$emit("clickItem", item);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<widget-search :disabled="true" />
|
<widget-search :disabled="true" />
|
||||||
</view>
|
</view>
|
||||||
<view class="banner">
|
<view class="banner">
|
||||||
<app-banner :list="bannerList" @onClickItem="toPage($event.page)" />
|
<app-banner :list="bannerList" @clickItem="clickBanner" />
|
||||||
</view>
|
</view>
|
||||||
<view class="notify">
|
<view class="notify">
|
||||||
<view class="icon">
|
<view class="icon">
|
||||||
|
@ -146,6 +146,12 @@ export default {
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**
|
||||||
|
* 点击轮播
|
||||||
|
*/
|
||||||
|
clickBanner(e) {
|
||||||
|
this.toPage(e.page);
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 跳转
|
* 跳转
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue