Authored by 王水玲

星潮修改

@@ -155,7 +155,7 @@ let collocationList = (req, res, next) => { @@ -155,7 +155,7 @@ let collocationList = (req, res, next) => {
155 * @return {[type]} 155 * @return {[type]}
156 */ 156 */
157 let setFavorite = (req, res, next) => { 157 let setFavorite = (req, res, next) => {
158 - let uid = req.body.uid || 0; // 客户端访问,不能使用 cookie 158 + let uid = req.cookies.guangStarUid || 0;
159 let params = { 159 let params = {
160 articleId: req.body.articleId, 160 articleId: req.body.articleId,
161 type: req.body.type 161 type: req.body.type
@@ -106,7 +106,7 @@ function setIndexAction() { @@ -106,7 +106,7 @@ function setIndexAction() {
106 if (bannerLen > 1) { 106 if (bannerLen > 1) {
107 avatarSwiper = new Swiper('.avatar-1', { 107 avatarSwiper = new Swiper('.avatar-1', {
108 loop: true, 108 loop: true,
109 - initialSlide: 0, 109 + initialSlide: 2,
110 centeredSlides: true, 110 centeredSlides: true,
111 slidesPerView: 'auto', 111 slidesPerView: 'auto',
112 loopedSlides: bannerLen, 112 loopedSlides: bannerLen,
@@ -160,12 +160,6 @@ function setIndexAction() { @@ -160,12 +160,6 @@ function setIndexAction() {
160 setAvatar($(item)); 160 setAvatar($(item));
161 }); 161 });
162 162
163 - $('.star').each(function(key, item) {  
164 - if ($(item).attr('src') === '') {  
165 - $(item).addClass('default-avater');  
166 - }  
167 - });  
168 -  
169 $('#yoho-header, .head-tab').on('touchmove', function() { 163 $('#yoho-header, .head-tab').on('touchmove', function() {
170 return false; 164 return false;
171 }); 165 });