|
|
|
@ -23,7 +23,7 @@ |
|
|
|
<scroll-view scroll-y class="content-right" lower-threshold="80" @scrolltolower="loadMore"> |
|
|
|
<view class="right-box" v-for="(item,index) in shopList" :key="index"> |
|
|
|
<view style="position: relative;display: flex;"> |
|
|
|
<view class="box-left" @tap="largeImg(item)"> |
|
|
|
<view class="box-left" @tap="largeImg(item.productPicture)"> |
|
|
|
<view v-if="(item.buyCountNew!= null && item.buyCountNew!= undefined)" style="position: absolute;left: 110rpx;color: #fff;background: red;width: 45rpx;height: 40rpx;font-size: 28rpx;text-align: center;line-height: 40rpx;border-radius: 10rpx;"> |
|
|
|
{{item.buyCountNew}} |
|
|
|
</view> |
|
|
|
@ -428,6 +428,16 @@ |
|
|
|
this.status = 'loadmore' |
|
|
|
this.getShareList() |
|
|
|
}, |
|
|
|
//查看大图 |
|
|
|
largeImg(img) { |
|
|
|
if (!img) return; |
|
|
|
let shopImages = [] |
|
|
|
shopImages.push(img) |
|
|
|
uni.previewImage({ |
|
|
|
current: shopImages[0], |
|
|
|
urls: shopImages |
|
|
|
}) |
|
|
|
}, |
|
|
|
//初始化获取分类列表 |
|
|
|
getGategoryList() { |
|
|
|
this.tui.request("/app/productCategory/list", "get", { |
|
|
|
|