Commit 7db0b74a by wangjian

1

parent f8957f29
......@@ -25,7 +25,7 @@
<swiper class="swiper" @change="changeSwiper" :indicator-dots="false">
<swiper-item v-for="(item, index) in headerData" :key="index">
<view class="swiper-list">
<view class="item" v-for="(subItem, subIndex) in item" :key="subIndex" @click="goToLandPage(item)">
<view class="item" v-for="(subItem, subIndex) in item" :key="subIndex" @click="goToLandPage(subItem)">
<image class="icon" mode="aspectFill" :src="subItem.icon"></image>
<view class="item-title">{{ subItem.title }}</view>
<view class="item-desc">{{ subItem.subTitle }}</view>
......
......@@ -72,6 +72,7 @@ export function replaceTo(routerName, params) {
}
export function goLandPage (url) {
console.log(url);
let pageUrl = url
let routerName = url
if (url.indexOf('?')>-1) {
......
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