|
@@ -60,7 +60,7 @@ var productList = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getproductList:function(){//一级商品列表
|
|
|
+ getproductList:function(){//商品列表
|
|
|
var _self=this;
|
|
|
ProductApi.GetSearchProduct(_self.params,function (res) {
|
|
|
if( res.code==0){
|
|
@@ -104,11 +104,21 @@ var productList = new Vue({
|
|
|
this.params.pageNum = 1;
|
|
|
this.getproductList();
|
|
|
},
|
|
|
- removesmall:function(){//删除二级
|
|
|
- this.smallName = '';
|
|
|
- },
|
|
|
- removetiny:function(){//删除三级分类
|
|
|
- this.tinyName = ''
|
|
|
+ removeNama:function(index){//删除三级分类+
|
|
|
+ this.params.idType = index;
|
|
|
+ switch (index) {
|
|
|
+ case 1:
|
|
|
+ this.smallName = '';
|
|
|
+ this.params.id = this.bigTypeID;
|
|
|
+ this.getproductList();
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ this.tinyName = '';
|
|
|
+ this.params.id = this.smallTypeID;
|
|
|
+ this.getproductList();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
checkedClasslyFn:function(item,index){
|
|
|
this.params.pageNum = 1;
|