Merge branch 'hotfix/channel'
Showing
7 changed files
with
23 additions
and
14 deletions
@@ -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 |
@@ -11,6 +11,7 @@ const isTest = process.env.NODE_ENV === 'test'; | @@ -11,6 +11,7 @@ const isTest = process.env.NODE_ENV === 'test'; | ||
11 | 11 | ||
12 | module.exports = { | 12 | module.exports = { |
13 | app: 'h5', | 13 | app: 'h5', |
14 | + appVersion: '4.6.0', // 调用api的版本 | ||
14 | port: 6001, | 15 | port: 6001, |
15 | siteUrl: '//m.yohobuy.com', | 16 | siteUrl: '//m.yohobuy.com', |
16 | domains: { | 17 | domains: { |
@@ -78,7 +79,7 @@ if (isProduction) { | @@ -78,7 +79,7 @@ if (isProduction) { | ||
78 | Object.assign(module.exports, { | 79 | Object.assign(module.exports, { |
79 | appName: 'm.yohobuy.com for test', | 80 | appName: 'm.yohobuy.com for test', |
80 | domains: { | 81 | domains: { |
81 | - api: 'http://devapi.yoho.cn:58078/', | 82 | + api: 'http://testapi.yoho.cn:28078/', |
82 | service: 'http://testservice.yoho.cn:28077/' | 83 | service: 'http://testservice.yoho.cn:28077/' |
83 | }, | 84 | }, |
84 | memcache: { | 85 | memcache: { |
1 | <div class="icons-wrapper"> | 1 | <div class="icons-wrapper"> |
2 | <ul class="icons-list clearfix"> | 2 | <ul class="icons-list clearfix"> |
3 | {{#data}} | 3 | {{#data}} |
4 | - <li class="icons-item item-{{../data.length}}"><a href="{{url}}" class="imagebar"><img src="{{image src 98 98}}" alt=""></a><a href="{{url}}" class="linkbar">{{title}}</a></li> | 4 | + <li class="icons-item item-{{../number}}"><a href="{{url}}" class="imagebar"><img src="{{image src 98 98}}" alt=""></a><a href="{{url}}" class="linkbar">{{title}}</a></li> |
5 | {{/data}} | 5 | {{/data}} |
6 | </ul> | 6 | </ul> |
7 | </div> | 7 | </div> |
@@ -55,8 +55,8 @@ | @@ -55,8 +55,8 @@ | ||
55 | "serve-favicon": "^2.3.0", | 55 | "serve-favicon": "^2.3.0", |
56 | "uuid": "^2.0.2", | 56 | "uuid": "^2.0.2", |
57 | "winston": "^2.2.0", | 57 | "winston": "^2.2.0", |
58 | - "yoho-node-lib": "0.0.8", | ||
59 | - "winston-daily-rotate-file": "^1.1.4" | 58 | + "winston-daily-rotate-file": "^1.1.4", |
59 | + "yoho-node-lib": "0.0.11" | ||
60 | }, | 60 | }, |
61 | "devDependencies": { | 61 | "devDependencies": { |
62 | "autoprefixer": "^6.3.6", | 62 | "autoprefixer": "^6.3.6", |
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | module.exports = function(specificGender) { | 7 | module.exports = function(specificGender) { |
8 | var $ = require('yoho-jquery'), | 8 | var $ = require('yoho-jquery'), |
9 | Hammer = require('yoho-hammer'), | 9 | Hammer = require('yoho-hammer'), |
10 | + ellipsis = require('yoho-mlellipsis'), | ||
10 | tip = require('../plugin/tip'), | 11 | tip = require('../plugin/tip'), |
11 | loading = require('../plugin/loading'), | 12 | loading = require('../plugin/loading'), |
12 | lazyLoad = require('yoho-jquery-lazyload'); | 13 | lazyLoad = require('yoho-jquery-lazyload'); |
@@ -33,6 +34,8 @@ module.exports = function(specificGender) { | @@ -33,6 +34,8 @@ module.exports = function(specificGender) { | ||
33 | 34 | ||
34 | var bottomBannerLoaded; | 35 | var bottomBannerLoaded; |
35 | 36 | ||
37 | + ellipsis.init(); | ||
38 | + | ||
36 | // ajax url | 39 | // ajax url |
37 | if (kidsType) { | 40 | if (kidsType) { |
38 | url = '/product/recom/maylikekids'; | 41 | url = '/product/recom/maylikekids'; |
@@ -42,7 +45,7 @@ module.exports = function(specificGender) { | @@ -42,7 +45,7 @@ module.exports = function(specificGender) { | ||
42 | url = specificGender === 'lifestyle' ? '/product/recom/maylike?gender=1,3' : '/product/recom/maylikelife'; | 45 | url = specificGender === 'lifestyle' ? '/product/recom/maylike?gender=1,3' : '/product/recom/maylikelife'; |
43 | } else { | 46 | } else { |
44 | gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ? | 47 | gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ? |
45 | - 'boys' : 'girls'; | 48 | + '1,3' : '2,3'; |
46 | url = '/product/recom/maylike?gender=' + gender; | 49 | url = '/product/recom/maylike?gender=' + gender; |
47 | } | 50 | } |
48 | 51 | ||
@@ -148,6 +151,13 @@ module.exports = function(specificGender) { | @@ -148,6 +151,13 @@ module.exports = function(specificGender) { | ||
148 | 151 | ||
149 | loading.hideLoadingMask(); | 152 | loading.hideLoadingMask(); |
150 | page++; | 153 | page++; |
154 | + | ||
155 | + $('.good-detail-text .name').each(function() { | ||
156 | + var $this = $(this), | ||
157 | + $title = $this.find('a'); | ||
158 | + | ||
159 | + $title[0].mlellipsis(2); | ||
160 | + }); | ||
151 | }, | 161 | }, |
152 | error: function() { | 162 | error: function() { |
153 | tip.show('网络断开连接了~'); | 163 | tip.show('网络断开连接了~'); |
@@ -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 | }); |
-
Please register or login to post a comment