Commit 7db0b74a by wangjian

1

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