diff --git a/application/wap/view/first/index/index.html b/application/wap/view/first/index/index.html
index 732e6111..8d3a509b 100644
--- a/application/wap/view/first/index/index.html
+++ b/application/wap/view/first/index/index.html
@@ -84,6 +84,58 @@
查看更多 >
+
+
@@ -157,7 +209,8 @@
class="count">已售{{pro.sales}}{{pro.unit_name || '件'}}
-
+
+
新品推荐
@@ -247,6 +300,10 @@
data: {
couponList: [],
cateGroupList: [],
+ is_bestList: [],//精品推荐
+ is_newList:[],//首发新品
+ is_hotList: [],//热卖单品
+ is_benefitList:[],//促销
page: {first: 0, limit: 20, list: [], loaded: false},
loading: false,
scroll: null,
@@ -377,13 +434,33 @@
that.loading = false
});
},
+ getproductList: function (type) {
+ var that = this;
+ storeApi.getPublicProductList({first:0, limit: 4,type:type}, function (res) {
+ if(type=='is_best')
+ that.is_bestList = res.data.data;
+ if(type=='is_hot')
+ that.is_hotList = res.data.data;
+ if(type=='is_new')
+ that.is_newList = res.data.data;
+ if(type=='is_benefit')
+ that.is_benefitList = res.data.data;
+ }, function () {
+
+ });
+ },
},
mounted: function () {
var that = this;
this.elInit();
this.getIssueCouponList();
+ this.getproductList('is_best');//精品
+ this.getproductList('is_hot');//热卖
+ this.getproductList('is_benefit');//促销
+ this.getproductList('is_new');//首发新品
+ this.getIssueCouponList();
this.getCateData();
- this.getCombinationList();
+ this.getCombinationList();//猜猜喜欢
setTimeout(function() {
that.getList();
},0);