|
|
@ -191,10 +191,10 @@ |
|
|
|
<view class="image-wrapper"> |
|
|
|
<image :src="item.pic" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
<text class="title clamp">{{ item.productName }}</text> |
|
|
|
<text class="title clamp">{{ item.name }}</text> |
|
|
|
<view> |
|
|
|
<text class="price">惠农价¥{{ item.price }}</text> |
|
|
|
<text class="m-price">市场价¥{{ item.originalPrice }}</text> |
|
|
|
<text class="price">惠农价¥{{ item.originalPrice }}</text> |
|
|
|
<text class="m-price">市场价¥{{ item.price }}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -217,10 +217,10 @@ |
|
|
|
<view class="image-wrapper"> |
|
|
|
<image :src="item.pic" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
<text class="title clamp">{{ item.productName }}</text> |
|
|
|
<text class="title clamp">{{ item.name }}</text> |
|
|
|
<view> |
|
|
|
<text class="price">惠农价¥{{ item.price }}</text> |
|
|
|
<text class="m-price">市场价¥{{ item.originalPrice }}</text> |
|
|
|
<text class="price">惠农价¥{{ item.originalPrice }}</text> |
|
|
|
<text class="m-price">市场价¥{{ item.price }}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
@ -308,7 +308,7 @@ |
|
|
|
onPullDownRefresh() { |
|
|
|
|
|
|
|
console.log("onPullDownRefresh") |
|
|
|
this.pageNum = this.pageNum + 1; |
|
|
|
this.pageNum = 1; |
|
|
|
this.getNewProductList('refresh'); |
|
|
|
|
|
|
|
this.loadData(); |
|
|
@ -495,8 +495,15 @@ |
|
|
|
* 获取新品推荐 |
|
|
|
*/ |
|
|
|
async homeNewProduct() { |
|
|
|
let params = {}; |
|
|
|
let groupHotGoodsList = await Api.apiCall('get', Api.index.homeNewProduct, params); |
|
|
|
let params = { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 4, |
|
|
|
productCategoryId: "", |
|
|
|
type: 1, |
|
|
|
newStatus:1, |
|
|
|
productAttributeCategoryId: "" |
|
|
|
};; |
|
|
|
let groupHotGoodsList = await Api.apiCall('get', Api.goods.goodsList, params); |
|
|
|
if (groupHotGoodsList) { |
|
|
|
console.log("新品推荐》》》》》", groupHotGoodsList.records) |
|
|
|
this.homeNewProductList = groupHotGoodsList.records; |
|
|
@ -508,8 +515,15 @@ |
|
|
|
* 获取人气推荐 |
|
|
|
*/ |
|
|
|
async homeRecommendProduct() { |
|
|
|
let params = {}; |
|
|
|
let groupHotGoodsList = await Api.apiCall('get', Api.index.homeRecommendProduct, params); |
|
|
|
let params = { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 4, |
|
|
|
productCategoryId: "", |
|
|
|
type: 1, |
|
|
|
recommandStatus:1, |
|
|
|
productAttributeCategoryId: "" |
|
|
|
};; |
|
|
|
let groupHotGoodsList = await Api.apiCall('get', Api.goods.goodsList, params); |
|
|
|
console.log("人气推荐》》》》》", groupHotGoodsList.records) |
|
|
|
this.homeRecommendProductList = groupHotGoodsList.records; |
|
|
|
}, |
|
|
@ -558,7 +572,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 获取新品上市信息 |
|
|
|
* 获取商品列表信息 |
|
|
|
*/ |
|
|
|
async getNewProductList(type = 'add', loading) { |
|
|
|
//没有更多直接返回 |
|
|
|