lrf 2 yıl önce
ebeveyn
işleme
2ebf9a8e58
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      app/service/view/shop.js

+ 2 - 2
app/service/view/shop.js

@@ -31,14 +31,14 @@ class ShopService extends CrudService {
     list = JSON.parse(JSON.stringify(list));
     const arr = [];
     for (const s of list) {
-      const { _id: shop, name, file } = s;
+      const { _id: shop, name, logo } = s;
       const market_num = await this.ctx.service.shop.goods.count({ shop });
       // TODO: 收藏
       const follow_num = 0;
       // TODO:当前用户是否收藏
       const is_follow = false;
       const goodsList = await this.ctx.service.view.goods.indexGoodsList({ shop }, { skip: 0, limit: 3 });
-      const obj = { _id: shop, file, name, market_num, follow_num, is_follow, market: goodsList };
+      const obj = { _id: shop, logo, name, market_num, follow_num, is_follow, market: goodsList };
       arr.push(obj);
     }