|
|
|
@ -134,13 +134,13 @@
|
|
|
|
|
<view class="title">热门榜单</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<swiper previous-margin="32rpx" class="scroll-hot" :style="'height:'+heightSwiper+'rpx;'"> |
|
|
|
|
<swiper previous-margin="32rpx" class="scroll-hot" :style="'height:'+heightSwiper+'rpx;'" @change="hotNum"> |
|
|
|
|
<swiper-item class="scroll-box" v-for="(item,index) in hotList" :key="index"> |
|
|
|
|
<view class="hot-item acea-row row-column"> |
|
|
|
|
<view class="title-box acea-row row-middle"> |
|
|
|
|
<view class="title-box acea-row row-middle" @click="goHot(item)"> |
|
|
|
|
<image src="@/static/images/icon-list.png" mode="aspectFill"></image> |
|
|
|
|
<text>{{item.listName}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="goods-list acea-row row-column"> |
|
|
|
|
<view class="goods-item acea-row" v-for="(item,index) in topList" :key="index" @tap="goGoodsCon(item)"> |
|
|
|
|
<view class="hot-left"> |
|
|
|
@ -602,6 +602,11 @@
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapActions(['getLocation']), |
|
|
|
|
//榜单切换 |
|
|
|
|
hotNum(e){ |
|
|
|
|
this.classifyType = e.detail.current |
|
|
|
|
this.goodsList = this.sortData(this.hotList[this.classifyType].productInfo, 4); |
|
|
|
|
}, |
|
|
|
|
// 发起砍价 |
|
|
|
|
getBargainList() { |
|
|
|
|
if (this.bargainLoaded) return; |
|
|
|
@ -757,28 +762,30 @@
|
|
|
|
|
// }, |
|
|
|
|
// }) |
|
|
|
|
// }, |
|
|
|
|
// goGoodsCon(item) { |
|
|
|
|
// if(item.isIntegral === 1) { |
|
|
|
|
// this.$yrouter.push({ |
|
|
|
|
// path: '/pages/shop/IntegralGoodsCon/index', |
|
|
|
|
// query: { |
|
|
|
|
// id: item.id, |
|
|
|
|
// }, |
|
|
|
|
// }) |
|
|
|
|
// } else { |
|
|
|
|
// this.$yrouter.push({ |
|
|
|
|
// path: '/pages/shop/GoodsCon/index', |
|
|
|
|
// query: { |
|
|
|
|
// id: item.id, |
|
|
|
|
// }, |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// }, |
|
|
|
|
goGoodsCon(item) { |
|
|
|
|
goHot(item){ |
|
|
|
|
this.$yrouter.push({ |
|
|
|
|
path: '/pages/shop/HotNewGoods/index', |
|
|
|
|
query: { |
|
|
|
|
hotName: item.listName, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
goGoodsCon(item) { |
|
|
|
|
if(item.isIntegral === 1) { |
|
|
|
|
this.$yrouter.push({ |
|
|
|
|
path: '/pages/shop/IntegralGoodsCon/index', |
|
|
|
|
query: { |
|
|
|
|
id: item.id, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
this.$yrouter.push({ |
|
|
|
|
path: '/pages/shop/GoodsCon/index', |
|
|
|
|
query: { |
|
|
|
|
id: item.id, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// goGoodsPromotion() { |
|
|
|
|
// this.$yrouter.push('/pages/shop/GoodsPromotion/index') |
|
|
|
@ -796,6 +803,7 @@
|
|
|
|
|
// }).exec(); |
|
|
|
|
// }, 160) |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
// 数据分层 |
|
|
|
|
sortData(oArr, length) { |
|
|
|
|
let arr = []; |
|
|
|
|