|
@@ -14,7 +14,7 @@
|
|
|
placeholder="请输入搜索内容"
|
|
|
:showAction="false"
|
|
|
v-model="keyword"
|
|
|
- @click="$Router.push('/pagesHome/homeSearch/index')"
|
|
|
+ @click="$u.route('/pagesHome/homeSearch/index')"
|
|
|
bgColor="#fff"
|
|
|
:disabled="true"
|
|
|
/>
|
|
@@ -45,7 +45,7 @@
|
|
|
<view class="item-box">
|
|
|
<view class="item-top">
|
|
|
<view class="top-title">热门推荐</view>
|
|
|
- <view class="top-more" @click="$Router.push('/pagesHome/home/popularRecommend')">
|
|
|
+ <view class="top-more" @click="$u.route('/pagesHome/home/popularRecommend')">
|
|
|
<span>查看更多</span>
|
|
|
<u-icon name="arrow-right" color="#999999" size="14"></u-icon>
|
|
|
</view>
|
|
@@ -55,7 +55,7 @@
|
|
|
class="item"
|
|
|
v-for="(item, index) in homeData.recommends"
|
|
|
:key="item.id"
|
|
|
- @click="$Router.push(`/pagesHome/marketer/index?id=${item.id}`)"
|
|
|
+ @click="$u.route(`/pagesHome/marketer/index?id=${item.id}`)"
|
|
|
>
|
|
|
<hot-item v-if="index < 4" :item="item"></hot-item>
|
|
|
</view>
|
|
@@ -71,7 +71,7 @@
|
|
|
<view class="item-box">
|
|
|
<view class="item-top">
|
|
|
<view class="top-title">附近商家</view>
|
|
|
- <view class="top-more" @click="$Router.push('/pagesHome/home/nearbyBusiness')">
|
|
|
+ <view class="top-more" @click="$u.route('/pagesHome/home/nearbyBusiness')">
|
|
|
<span>查看更多</span>
|
|
|
<u-icon name="arrow-right" color="#999999" size="14"></u-icon>
|
|
|
</view>
|
|
@@ -81,7 +81,7 @@
|
|
|
class="item"
|
|
|
v-for="(item, index) in homeData.nears"
|
|
|
:key="item.id"
|
|
|
- @click="$Router.push(`/pagesHome/marketer/index?id=${item.id}`)"
|
|
|
+ @click="$u.route(`/pagesHome/marketer/index?id=${item.id}`)"
|
|
|
>
|
|
|
<recommend-item v-if="index < 4" :item="item"></recommend-item>
|
|
|
</view>
|
|
@@ -249,14 +249,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 点击swiper跳转
|
|
|
- handlerSwiperSkip(e) {
|
|
|
- console.log('@@@swiperList', this.swiperList[e]);
|
|
|
- },
|
|
|
+ handlerSwiperSkip(e) {},
|
|
|
// 点击菜单
|
|
|
handleMenuClick(item) {
|
|
|
- console.log('111111', item);
|
|
|
if (item.name === '全部') {
|
|
|
- this.$Router.push('/pagesHome/category/index');
|
|
|
+ uni.$u.route('/pagesHome/category/index');
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
url: `/pagesHome/storeList/index?id=${item.id}&name=${item.name}`,
|