增加点击轮播跳转
This commit is contained in:
parent
fb652664f1
commit
0138d50226
|
@ -4,7 +4,7 @@
|
|||
<widget-search :disabled="true" />
|
||||
</view>
|
||||
<view class="banner">
|
||||
<app-banner :list="bannerList" />
|
||||
<app-banner :list="bannerList" @onClickItem="toPage($event.page)" />
|
||||
</view>
|
||||
<view class="notify">
|
||||
<view class="icon">
|
||||
|
@ -127,6 +127,7 @@ export default {
|
|||
response.data.forEach((item) => {
|
||||
this.bannerList.push({
|
||||
image: item.image,
|
||||
page: item.url,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -149,6 +150,7 @@ export default {
|
|||
* 跳转
|
||||
*/
|
||||
toPage(page) {
|
||||
if (!page) return;
|
||||
const params = this.$utils.getUrlParams(page);
|
||||
if (page.indexOf("service/cate") > 0) {
|
||||
this.$store.commit("system/currentCateId", params.id);
|
||||
|
|
Loading…
Reference in New Issue