Authored by 郝肖肖

获取店铺介绍,判断uid是否为undefined

... ... @@ -126,11 +126,16 @@ const _getShopInfo = (shopId, uid) => {
* @param {int} shopId
*/
const getShopIntro = (shopId, uid) => {
return api.get('', {
let params = {
method: 'app.shops.getIntro',
shop_id: shopId,
uid: uid
}, {code: 200}).then(result => {
shop_id: shopId
};
if (uid) {
params.uid = uid;
}
return api.get('', params, {code: 200}).then(result => {
return result && result.data;
});
};
... ...
... ... @@ -112,7 +112,6 @@ var defaultOpt = require('../common/query-param');
url: '/product/search/filter',
data: {
shop_id: $('.shopId').val(),
type: 'default',
order: '0',
channel: defaultOpt.channel
},
... ...