Authored by 郭成尧

'base-shop-id-no-brand'

@@ -295,6 +295,10 @@ function search(opt) { @@ -295,6 +295,10 @@ function search(opt) {
295 295
296 $.extend(setting, defaultOpt, params); 296 $.extend(setting, defaultOpt, params);
297 297
  298 + /* if shop_id del brand */
  299 + if (shopId) {
  300 + delete setting.brand;
  301 + }
298 searching = true; 302 searching = true;
299 loading.showLoadingMask(); 303 loading.showLoadingMask();
300 304
@@ -381,6 +385,10 @@ function search(opt) { @@ -381,6 +385,10 @@ function search(opt) {
381 } 385 }
382 386
383 // require('../../common/suspend-cart'); //悬浮购物车 387 // require('../../common/suspend-cart'); //悬浮购物车
  388 +if (shopId) {
  389 + delete defaultOpt.brand;
  390 + Object.assign(defaultOpt, {shop_id: shopId});
  391 +}
384 392
385 $.ajax({ 393 $.ajax({
386 type: 'GET', 394 type: 'GET',