Authored by 郭成尧

Merge branch 'feature/favApi' of git.yoho.cn:fe/yohobuywap-node into feature/favApi

@@ -39,6 +39,32 @@ const _noticeData = () => { @@ -39,6 +39,32 @@ const _noticeData = () => {
39 }; 39 };
40 40
41 /** 41 /**
  42 + * 个人中心页面优惠券,收藏的商品等的数目数据
  43 + */
  44 +const _infoNum = (params) => {
  45 + return api.get('', {
  46 + method: 'app.home.getInfoNum',
  47 + uid: params.uid,
  48 + udid: params.udid,
  49 + }).then(result => {
  50 + return result;
  51 + });
  52 +};
  53 +
  54 +/**
  55 + * 个人详情数据
  56 + */
  57 +const _userData = (params) => {
  58 + return api.get('', {
  59 + method: 'app.passport.profile',
  60 + uid: params.uid,
  61 + }).then(result => {
  62 + return result;
  63 + });
  64 +};
  65 +
  66 +
  67 +/**
42 * 个人中心首页 68 * 个人中心首页
43 * @param params 69 * @param params
44 * @returns {function()} 70 * @returns {function()}