...
|
...
|
@@ -84,6 +84,9 @@ var SORTDATA={ |
|
|
{id:RESPONSEDATA.smallSortId,sortName:RESPONSEDATA.smallSortName},
|
|
|
{id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName}
|
|
|
],
|
|
|
otherParam:function(){
|
|
|
return {brandId:928}
|
|
|
},
|
|
|
complete:function(data){
|
|
|
if(data.length>2){
|
|
|
Bll.productNameArr[2]=data[data.length-1].sortName;
|
...
|
...
|
@@ -94,7 +97,7 @@ var SORTDATA={ |
|
|
common.util.__ajax({
|
|
|
url:'/base/goods/queryAllProductAttr',
|
|
|
data:{
|
|
|
categoryId:sorid,
|
|
|
categoryId:$("#brandId").val(),
|
|
|
displayPosition:1
|
|
|
}
|
|
|
},function(res){
|
...
|
...
|
@@ -110,7 +113,8 @@ var SORTDATA={ |
|
|
|
|
|
|
|
|
var tabTree=new common.tabTree("#tree",SORTDATA);
|
|
|
tabTree.init();
|
|
|
|
|
|
// tabTree.isfeeze=true;
|
|
|
|
|
|
var ENUM={
|
|
|
/*
|
...
|
...
|
@@ -138,7 +142,7 @@ e.init(); |
|
|
|
|
|
if(RESPONSEDATA.isAuditing!=200){
|
|
|
|
|
|
new common.dropDown({el:"#brandId",ajax:"queryBrand"});
|
|
|
new common.dropDown({el:"#brandId",ajax:"brand"});
|
|
|
|
|
|
new common.dropDown({el:"#shopId",ajax:"sortbybrand",params:function(){
|
|
|
return {brandId:$("#brandId").val()}
|
...
|
...
|
@@ -148,7 +152,9 @@ if(RESPONSEDATA.isAuditing!=200){ |
|
|
return {brandId:$("#brandId").val()}
|
|
|
}});
|
|
|
}else{
|
|
|
tabTree.isfeeze=true;
|
|
|
if(tabTree){
|
|
|
tabTree.isfeeze=true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//attributeTable
|
...
|
...
|
@@ -253,6 +259,7 @@ $(document).on("click",".sortadd",function(){ |
|
|
// g.__e.init();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(document).on("keydown","#productName",function(){
|
|
|
Bll.IsEnter=true;
|
|
|
});
|
...
|
...
|
@@ -260,6 +267,7 @@ $(document).on("change","#brandId",function(){ |
|
|
var id=$(this).val();
|
|
|
Bll.productNameArr[0]=$(this).find("option[value='"+id+"']").text();
|
|
|
Bll.setProductName();
|
|
|
tabTree.init();
|
|
|
});
|
|
|
$(document).on("change",":radio[name=gender]",function(){
|
|
|
Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1];
|
...
|
...
|
|