|
@@ -16,9 +16,6 @@ var productList = new Vue({
|
|
bigTypeID:'',
|
|
bigTypeID:'',
|
|
smallTypeID:'',//二级分类id
|
|
smallTypeID:'',//二级分类id
|
|
tinyTypeID:'',//三级分类id
|
|
tinyTypeID:'',//三级分类id
|
|
- termsNameflag:false,
|
|
|
|
- tinyflag:false,
|
|
|
|
- smallflag:false,
|
|
|
|
listRecord: 0,
|
|
listRecord: 0,
|
|
pageInput: '1',
|
|
pageInput: '1',
|
|
source:'www',
|
|
source:'www',
|
|
@@ -64,7 +61,7 @@ var productList = new Vue({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getproductList:function(){//一级商品列表
|
|
|
|
|
|
+ getproductList:function(){//一级商品列表
|
|
var _self=this;
|
|
var _self=this;
|
|
ProductApi.GetSearchProduct(_self.params,function (res) {
|
|
ProductApi.GetSearchProduct(_self.params,function (res) {
|
|
if( res.code==0){
|
|
if( res.code==0){
|
|
@@ -138,32 +135,26 @@ var productList = new Vue({
|
|
},
|
|
},
|
|
checkedClasslyFn:function(item,index){
|
|
checkedClasslyFn:function(item,index){
|
|
this.paramsIndex = index;
|
|
this.paramsIndex = index;
|
|
|
|
+ this.idType = index;
|
|
switch (index) {
|
|
switch (index) {
|
|
case 1://选择1集分类查询
|
|
case 1://选择1集分类查询
|
|
this.bigName=item.name;
|
|
this.bigName=item.name;
|
|
this.smallName = '';
|
|
this.smallName = '';
|
|
this.bigTypeID = item.bigTypeID;
|
|
this.bigTypeID = item.bigTypeID;
|
|
this.params.id = item.bigTypeID;
|
|
this.params.id = item.bigTypeID;
|
|
- this.idType = index;
|
|
|
|
- this.termsNameflag = true;
|
|
|
|
this.getclassify();
|
|
this.getclassify();
|
|
- // this.getproductList();
|
|
|
|
break;
|
|
break;
|
|
case 2://选择二级分类查询
|
|
case 2://选择二级分类查询
|
|
this.smallName = item.name;
|
|
this.smallName = item.name;
|
|
this.tinyName = '';
|
|
this.tinyName = '';
|
|
this.smallTypeID = item.smallTypeID;
|
|
this.smallTypeID = item.smallTypeID;
|
|
this.params.id = item.smallTypeID;
|
|
this.params.id = item.smallTypeID;
|
|
- this.smallflag = true;
|
|
|
|
this.tinytypeList =item.tinytypeList;
|
|
this.tinytypeList =item.tinytypeList;
|
|
- // this.getsmallList();
|
|
|
|
break;
|
|
break;
|
|
case 3://选择三级分类查询
|
|
case 3://选择三级分类查询
|
|
this.tinyName = item.name;
|
|
this.tinyName = item.name;
|
|
this.tinyTypeID = item.tinyTypeID;
|
|
this.tinyTypeID = item.tinyTypeID;
|
|
this.params.id = item.tinyTypeID;
|
|
this.params.id = item.tinyTypeID;
|
|
- this.tinyflag = true;
|
|
|
|
- // this.gettinyList();
|
|
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
this.getproductList();
|
|
this.getproductList();
|