Authored by 邱骏

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

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