tianyi 1 month ago
parent
commit
c88099eb7b
  1. 12
      package2/myCenter/goodsList.vue

12
package2/myCenter/goodsList.vue

@ -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", {

Loading…
Cancel
Save