...
|
...
|
@@ -20,7 +20,9 @@ const prettyFilter = require(`${global.utils}/beautify/filters`); |
|
|
const getShopData = params => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return shopApi.getBrandInfoByDomain({domain: params.domain}).then(result => {
|
|
|
return shopApi.getBrandInfoByDomain({
|
|
|
domain: params.domain
|
|
|
}).then(result => {
|
|
|
|
|
|
if (result.data) {
|
|
|
|
...
|
...
|
@@ -41,8 +43,6 @@ const getShopData = params => { |
|
|
return shopApi.getShopInfoData({
|
|
|
shopId: result.data.shop_id,
|
|
|
uid: params.uid
|
|
|
|
|
|
// uid: '8050882'
|
|
|
}).then(subResult => {
|
|
|
|
|
|
if (subResult.data) {
|
...
|
...
|
@@ -56,7 +56,9 @@ const getShopData = params => { |
|
|
});
|
|
|
|
|
|
/* 取资源位店铺背景图 */
|
|
|
return shopApi.getShopsDecoratorList({shopId: result.data.shop_id}).then(thResult => {
|
|
|
return shopApi.getShopsDecoratorList({
|
|
|
shopId: result.data.shop_id
|
|
|
}).then(thResult => {
|
|
|
if (thResult.data) {
|
|
|
_.forEach(thResult.data.list, value => {
|
|
|
|
...
|
...
|
@@ -97,7 +99,9 @@ const getShopData = params => { |
|
|
const getBrandShopGoodsData = params => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return shopApi.getBrandInfoByDomain({domain: params.domain}).then(result => {
|
|
|
return shopApi.getBrandInfoByDomain({
|
|
|
domain: params.domain
|
|
|
}).then(result => {
|
|
|
|
|
|
if (result.data) {
|
|
|
return shopApi.getBrandShopGoodsOriginData(Object.assign(params, {
|
...
|
...
|
|