Authored by lijing

收藏记录优化

@@ -157,7 +157,7 @@ const myDetails = (params) => { @@ -157,7 +157,7 @@ const myDetails = (params) => {
157 * @param params 157 * @param params
158 */ 158 */
159 const recordContent = (uid, udid, page, limit) => { 159 const recordContent = (uid, udid, page, limit) => {
160 - 160 + if (uid) {
161 return api.get('', { 161 return api.get('', {
162 method: 'app.browse.product', 162 method: 'app.browse.product',
163 uid: uid, 163 uid: uid,
@@ -206,6 +206,7 @@ const recordContent = (uid, udid, page, limit) => { @@ -206,6 +206,7 @@ const recordContent = (uid, udid, page, limit) => {
206 return resu; 206 return resu;
207 } 207 }
208 }); 208 });
  209 + }
209 }; 210 };
210 211
211 /** 212 /**
@@ -56,7 +56,7 @@ router.get('/mycurrency', currencyController.myCurrency); // yoho币总数 @@ -56,7 +56,7 @@ router.get('/mycurrency', currencyController.myCurrency); // yoho币总数
56 router.get('/currencyDetail', currencyController.currencyDetail); // yoho币列表 56 router.get('/currencyDetail', currencyController.currencyDetail); // yoho币列表
57 router.post('/ajaxCurrencyDetail', currencyController.ajaxCurrencyDetail); // yoho币列表 57 router.post('/ajaxCurrencyDetail', currencyController.ajaxCurrencyDetail); // yoho币列表
58 58
59 -router.get('/record', homeController.record); // 浏览记录 59 +router.get('/record', auth, homeController.record); // 浏览记录
60 router.get('/recordContent', homeController.recordContent); // 浏览记录 60 router.get('/recordContent', homeController.recordContent); // 浏览记录
61 router.get('/delRecord', homeController.delRecord); // 删除浏览记录 61 router.get('/delRecord', homeController.delRecord); // 删除浏览记录
62 62