Authored by 邱骏

修改店铺链接为新店铺链接

@@ -148,9 +148,7 @@ exports.shop = function(req, res, next) { @@ -148,9 +148,7 @@ exports.shop = function(req, res, next) {
148 }; 148 };
149 149
150 exports.getShopByIds = function(req, res, next) { 150 exports.getShopByIds = function(req, res, next) {
151 - console.log('shopIds:', req.query.shopIds);  
152 -  
153 - let shopIds = req.query.shopIds; 151 + let shopIds = req.query.shopIds || '0';
154 152
155 req.ctx(model).getShopByIds(shopIds).then(result => { 153 req.ctx(model).getShopByIds(shopIds).then(result => {
156 res.jsonp(result); 154 res.jsonp(result);
@@ -271,7 +271,7 @@ router.get('/redbag/2017', redbag.index); @@ -271,7 +271,7 @@ router.get('/redbag/2017', redbag.index);
271 router.get('/individuation', individuation.productLst); 271 router.get('/individuation', individuation.productLst);
272 router.get('/individuation/coupon', individuation.coupon); 272 router.get('/individuation/coupon', individuation.coupon);
273 router.get('/individuation/shop', individuation.shop); 273 router.get('/individuation/shop', individuation.shop);
274 -router.get('/individuation/getShopByIds', individuation.getShopByIds); 274 +router.get('/individuation/getShopByIds', individuation.getShopByIds); // 通过ID获取店铺基本信息
275 275
276 // 活动页模版 276 // 活动页模版
277 router.get('/feature/:code.html', feature.index); 277 router.get('/feature/:code.html', feature.index);
@@ -344,7 +344,6 @@ function getShopProductLinks() { @@ -344,7 +344,6 @@ function getShopProductLinks() {
344 dataType: 'jsonp' 344 dataType: 'jsonp'
345 }).then(res => { 345 }).then(res => {
346 if (res.data && res.data.length > 0) { 346 if (res.data && res.data.length > 0) {
347 - console.log(res.data);  
348 for (let i = 0; i < res.data.length; i++) { 347 for (let i = 0; i < res.data.length; i++) {
349 let shopInfo = res.data[i]; 348 let shopInfo = res.data[i];
350 let index = shopArr.shopIds.indexOf(shopInfo.shops_id); 349 let index = shopArr.shopIds.indexOf(shopInfo.shops_id);