...
|
...
|
@@ -485,6 +485,41 @@ const shopIntro = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 营业执照简介
|
|
|
* @param req
|
|
|
* @param res
|
|
|
* @param next
|
|
|
*/
|
|
|
const shopLicense = (req, res, next) => {
|
|
|
let shopId = req.query.shop_id;
|
|
|
let appVersion = req.body.appVersion || false;
|
|
|
let params = {};
|
|
|
|
|
|
if (parseInt(shopId, 10)) {
|
|
|
req.ctx(listModel).getShopIntro(shopId).then(result => {
|
|
|
if (appVersion) {
|
|
|
params = {
|
|
|
title: '证照信息'
|
|
|
};
|
|
|
} else {
|
|
|
params = {
|
|
|
pageHeader: headerModel.setNav({
|
|
|
navTitle: '证照信息'
|
|
|
})
|
|
|
};
|
|
|
}
|
|
|
|
|
|
res.render('shop/license', _.assign(params, result, {
|
|
|
module: 'product',
|
|
|
page: 'license'
|
|
|
}));
|
|
|
}).catch(next);
|
|
|
} else {
|
|
|
res.redirect('/?go=1');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 品牌[店铺]收藏/取消收藏
|
|
|
* id 品牌ID
|
|
|
* opt 操作标识("ok":表示收藏,"cancel":表示取消收藏)
|
...
|
...
|
@@ -604,6 +639,7 @@ module.exports = { |
|
|
brand,
|
|
|
favoriteBrand,
|
|
|
shopIntro,
|
|
|
shopLicense,
|
|
|
brandFav,
|
|
|
shopAppCookie,
|
|
|
shopFav,
|
...
|
...
|
|