Authored by 阿达

修复店铺bug

@@ -145,12 +145,12 @@ function getPageGoods(info) { @@ -145,12 +145,12 @@ function getPageGoods(info) {
145 } 145 }
146 146
147 function getParam(req) { 147 function getParam(req) {
148 - if (shopId) {  
149 - req.data.shop_id = shopId;  
150 - }  
151 -  
152 if (brand) { 148 if (brand) {
153 req.data.brand = brand; 149 req.data.brand = brand;
  150 + } else {
  151 + if (shopId) {
  152 + req.data.shop_id = shopId;
  153 + }
154 } 154 }
155 } 155 }
156 156
@@ -463,11 +463,11 @@ function search(opt) { @@ -463,11 +463,11 @@ function search(opt) {
463 }); 463 });
464 464
465 if (brand) { 465 if (brand) {
466 - setting.brand = brand;  
467 - }  
468 -  
469 - if (shopId) {  
470 - setting.shop_id = shopId; 466 + req.data.brand = brand;
  467 + } else {
  468 + if (shopId) {
  469 + req.data.shop_id = shopId;
  470 + }
471 } 471 }
472 472
473 searching = true; 473 searching = true;
@@ -466,19 +466,43 @@ @@ -466,19 +466,43 @@
466 &:first-child { 466 &:first-child {
467 border-left: none; 467 border-left: none;
468 } 468 }
  469 +
  470 + a {
  471 + display: block;
  472 + box-sizing: border-box;
  473 + text-align: center;
  474 + width: 100%;
  475 + height: 100%;
  476 + color: #999;
  477 + }
469 } 478 }
  479 +
470 .active .cur { 480 .active .cur {
471 color: #000; 481 color: #000;
472 } 482 }
473 - 483 +
474 .active a { 484 .active a {
475 color: #000; 485 color: #000;
476 } 486 }
477 -  
478 - .iconfont { 487 +
  488 +
  489 + .new .iconfont {
  490 + transform: scale(0.8);
479 font-weight: bold; 491 font-weight: bold;
480 } 492 }
481 - }  
482 493
483 - 494 + .price .iconfont {
  495 + transform: scale(0.8);
  496 + font-weight: bold;
  497 + }
  498 +
  499 + .filter .iconfont {
  500 + font-size: 22px;
  501 + transition: transform 0.1 ease-in;
  502 + }
  503 +
  504 + .filter.active .iconfont {
  505 + transform: rotate(-180deg);
  506 + }
  507 + }
484 } 508 }