|
@@ -31,7 +31,7 @@
|
|
|
<view class="product-container" v-else >
|
|
|
<view :class="tabIndex" v-if="tabIndex === 0" :style="{paddingTop:searchStatus?'128rpx':''}">
|
|
|
<scroll-view :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower(tabIndex)" scroll-y v-if="listData.length > 0">
|
|
|
- <view v-for="(item,index) in listData" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.productID)" >
|
|
|
+ <view v-for="(item,index) in listData" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.pid)" >
|
|
|
<image mode='widthFix' :src="item.image" class="list-img" alt="list-img"></image>
|
|
|
<view class="list-details-info">
|
|
|
<text class="list-details-title">{{isInterceptHtmlFn(item.name)}}</text>
|
|
@@ -215,7 +215,8 @@
|
|
|
this.scrollHeight = windowHeight - 1;
|
|
|
},
|
|
|
getProductAgainInfo(loadMore) {
|
|
|
- this.showLoading = true;
|
|
|
+ this.showLoading = true;
|
|
|
+ this.priceLoading = true;
|
|
|
this.loadingNow = true;
|
|
|
this.loadingText = '加载中';
|
|
|
this.isShowEmpty = false;
|
|
@@ -224,14 +225,12 @@
|
|
|
queryNewSearchProduct(params).then(response =>{
|
|
|
this.isShowWrapper = true
|
|
|
const resData = JSON.parse(response.data);
|
|
|
- console.log(resData)
|
|
|
const resList = resData.items;
|
|
|
if(resList && resList.length > 0){
|
|
|
this.totalPage = resData.total;
|
|
|
this.showEmpty = false;
|
|
|
if(loadMore) {
|
|
|
this.listData = [...this.listData,...resList];
|
|
|
- console.log(this.listData)
|
|
|
this.setProductPrice()
|
|
|
} else {
|
|
|
this.listData = [...resList];
|
|
@@ -263,7 +262,6 @@
|
|
|
this.listData.map(item=>{
|
|
|
productIdArr.push(item.pid)
|
|
|
})
|
|
|
- console.log(productIdArr)
|
|
|
this.productIds = productIdArr.join(",");
|
|
|
querySearchProductPrice({userId: this.clubUserId,productIds:this.productIds}).then(response =>{
|
|
|
if (response.data) {
|
|
@@ -292,7 +290,6 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- console.log(this.listData)
|
|
|
}
|
|
|
this.priceLoading = false;
|
|
|
}).catch(error =>{
|