Authored by yyq

shop list fav

@@ -158,7 +158,7 @@ exports.shopList = (req, res, next) => { @@ -158,7 +158,7 @@ exports.shopList = (req, res, next) => {
158 return next(); 158 return next();
159 } 159 }
160 160
161 - list.getShopListData(req.yoho.channel, req.query).then(result => { 161 + list.getShopListData(req.yoho.channel, req.query, req.user.uid).then(result => {
162 Object.assign(result, { 162 Object.assign(result, {
163 page: 'shop', 163 page: 'shop',
164 shopId: shopId 164 shopId: shopId
@@ -692,7 +692,8 @@ const getShopGoodsData = (shopId, channel, params) => { @@ -692,7 +692,8 @@ const getShopGoodsData = (shopId, channel, params) => {
692 // 获取商品数据和顶部筛选条件 692 // 获取商品数据和顶部筛选条件
693 if (result[0].code === 200) { 693 if (result[0].code === 200) {
694 Object.assign(resData, { 694 Object.assign(resData, {
695 - sort: searchHandler.handleOptsData(params, _.get(result[0], 'data.total', 0)), 695 + sort: searchHandler.handleOptsData(Object.assign(params,
  696 + {page: 1}), _.get(result[0], 'data.total', 0)),
696 list: productProcess.processProductList(_.get(result[0], 'data.product_list', []), { 697 list: productProcess.processProductList(_.get(result[0], 'data.product_list', []), {
697 newCoverSort: true, 698 newCoverSort: true,
698 showDiscount: false, 699 showDiscount: false,