Authored by 毕凯

服务端配置查询

@@ -40,6 +40,13 @@ const _getProductBySkns = function(productObj, extraParams) { @@ -40,6 +40,13 @@ const _getProductBySkns = function(productObj, extraParams) {
40 * 获取店铺组店铺数据 40 * 获取店铺组店铺数据
41 */ 41 */
42 const _getShopGroup = (shopRawData) => { 42 const _getShopGroup = (shopRawData) => {
  43 + // 个性化店铺组,前端去查询
  44 + if (shopRawData.searchCondition) {
  45 + shopRawData.individuation = true;
  46 + return Promise.resolve();
  47 + }
  48 +
  49 + // 固定店铺组
43 return api.get('', { 50 return api.get('', {
44 method: 'app.shops.batchGetShops', 51 method: 'app.shops.batchGetShops',
45 shop_ids: shopRawData.defaultShopIds 52 shop_ids: shopRawData.defaultShopIds
@@ -101,7 +101,11 @@ @@ -101,7 +101,11 @@
101 101
102 {{#isEqualOr type 'shopGroup'}} 102 {{#isEqualOr type 'shopGroup'}}
103 {{!-- 店铺组 --}} 103 {{!-- 店铺组 --}}
  104 + {{#if individuation}}
  105 + <div class="shop-individuation" data-config="{{stringify this}}"></div>
  106 + {{else}}
104 {{> feature/shop-group}} 107 {{> feature/shop-group}}
  108 + {{/if}}
105 {{/isEqualOr}} 109 {{/isEqualOr}}
106 110
107 {{#isEqualOr type 'productGroup'}} 111 {{#isEqualOr type 'productGroup'}}