zs 2 gadi atpakaļ
vecāks
revīzija
32f3039e70
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      pages/my/index.vue

+ 2 - 2
pages/my/index.vue

@@ -162,12 +162,12 @@
 							arr = await that.$api(`/user/${user._id}`, 'GET');
 							arr = await that.$api(`/user/${user._id}`, 'GET');
 							if (arr.errcode == '0') that.$set(that, `user`, arr.data);
 							if (arr.errcode == '0') that.$set(that, `user`, arr.data);
 							// 查询收藏商品
 							// 查询收藏商品
-							arr = await that.$api(`/storeGoods`, 'GET', {
+							arr = await that.$api(`/storeGoods/userView`, 'GET', {
 								customer: user._id
 								customer: user._id
 							})
 							})
 							if (arr.errcode == '0') that.$set(that, `market_num`, arr.total);
 							if (arr.errcode == '0') that.$set(that, `market_num`, arr.total);
 							// 查询收藏店铺
 							// 查询收藏店铺
-							arr = await that.$api(`/storeShop`, 'GET', {
+							arr = await that.$api(`/storeShop/userView`, 'GET', {
 								customer: user._id
 								customer: user._id
 							})
 							})
 							if (arr.errcode == '0') that.$set(that, `shop_num`, arr.total);
 							if (arr.errcode == '0') that.$set(that, `shop_num`, arr.total);