|
@@ -1,17 +1,14 @@
|
|
<template>
|
|
<template>
|
|
<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
|
|
<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
|
|
- <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-top="scrollTop" @scroll="scroll"
|
|
|
|
- @scrolltolower="toPage">
|
|
|
|
|
|
+ <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-top="scrollTop" @scroll="scroll" @scrolltolower="toPage">
|
|
<view class="list-scroll-view">
|
|
<view class="list-scroll-view">
|
|
<view class="main">
|
|
<view class="main">
|
|
<view class="zero one">
|
|
<view class="zero one">
|
|
- <input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')"
|
|
|
|
- placeholder-class="placss">
|
|
|
|
|
|
+ <input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')" placeholder-class="placss">
|
|
</view>
|
|
</view>
|
|
<view class="zero two">
|
|
<view class="zero two">
|
|
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
|
|
|
|
- indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
|
|
- <swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
|
|
|
|
|
|
+ <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
|
|
+ <swiper-item class="list" v-for="(item,index) in bannerList" :key="index" @tap="toBanner(item)">
|
|
<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode="">
|
|
<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode="">
|
|
</image>
|
|
</image>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
@@ -137,6 +134,12 @@
|
|
url: `/${e}`
|
|
url: `/${e}`
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 轮播图跳转
|
|
|
|
+ toBanner(e) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/${e.to}?id=${e._id}`
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 首页模块菜单跳转
|
|
// 首页模块菜单跳转
|
|
toIndexModel(data) {
|
|
toIndexModel(data) {
|
|
if (data && data.status == '1') {
|
|
if (data && data.status == '1') {
|
|
@@ -187,7 +190,7 @@
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
} else uni.showToast({
|
|
} else uni.showToast({
|
|
title: '没有更多数据了',
|
|
title: '没有更多数据了',
|
|
- icon:'none'
|
|
|
|
|
|
+ icon: 'none'
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 计算高度
|
|
// 计算高度
|