...
|
...
|
@@ -454,7 +454,15 @@ var goodsgird = new common.grid({ |
|
|
});
|
|
|
//搜索按钮
|
|
|
$(document).on("click", "#search", function () {
|
|
|
goodsgird.reload(1);
|
|
|
if($.trim($("#skns").val()).length<5){
|
|
|
common.util.__tip("请输入超过5个字符的skn","warning");
|
|
|
return;
|
|
|
}
|
|
|
if(goodsgird.grid){
|
|
|
goodsgird.reload(1);
|
|
|
}else{
|
|
|
goodsgird.init('/yohosearch/search');
|
|
|
}
|
|
|
});
|
|
|
//点击“选择标签”按钮(添加商品)
|
|
|
$(document).on("click", "#goodsSelectBtn", function () {
|
...
|
...
|
@@ -480,7 +488,7 @@ $(document).on("click", "#goodsSelectBtn", function () { |
|
|
css: "btn-primary"
|
|
|
}]
|
|
|
});
|
|
|
goodsgird.init('/yohosearch/search');
|
|
|
//goodsgird.init('/yohosearch/search');
|
|
|
});
|
|
|
//点击“添加组”按钮(添加商品组)
|
|
|
$(document).on("click", "#goodsaddBtn", function () {
|
...
|
...
|
@@ -657,7 +665,7 @@ $(document).on("click", "#brandAutoBtn", function () { |
|
|
common.util.__ajax({
|
|
|
url: '/yohosearch/search',
|
|
|
data: {
|
|
|
status: 1,
|
|
|
// status: 1,
|
|
|
query: product_skc.join(',')
|
|
|
}
|
|
|
}, function (res) {
|
...
|
...
|
|