Merge branch 'release/5.0.0'
Showing
6 changed files
with
4 additions
and
13 deletions
@@ -201,7 +201,7 @@ exports.index = (req, res, next) => { | @@ -201,7 +201,7 @@ exports.index = (req, res, next) => { | ||
201 | } | 201 | } |
202 | 202 | ||
203 | return userAcquireStatus(uid, couponids.join(',')).then((cous) => { | 203 | return userAcquireStatus(uid, couponids.join(',')).then((cous) => { |
204 | - coupons.data = (coupons.data || []).map((item)=>{ | 204 | + coupons.data = _.get(coupons, 'data', []).map((item)=>{ |
205 | item.status = 1; | 205 | item.status = 1; |
206 | (cous.data || []).forEach((it) => { | 206 | (cous.data || []).forEach((it) => { |
207 | 207 |
@@ -239,8 +239,9 @@ let getChannelSwitchData = () => { | @@ -239,8 +239,9 @@ let getChannelSwitchData = () => { | ||
239 | */ | 239 | */ |
240 | let getChannelData = (params) => { | 240 | let getChannelData = (params) => { |
241 | var channelData = {}; | 241 | var channelData = {}; |
242 | + let navGender = _.cloneDeep(params.gender); | ||
242 | 243 | ||
243 | - return Promise.all([_getChannelResource(params), _getLeftNav(params.gender)]).then((data) => { | 244 | + return Promise.all([_getChannelResource(params), _getLeftNav(navGender)]).then((data) => { |
244 | channelData.content = data[0]; // 资源位数据 | 245 | channelData.content = data[0]; // 资源位数据 |
245 | channelData.sideNav = data[1]; // 侧边栏数据 | 246 | channelData.sideNav = data[1]; // 侧边栏数据 |
246 | 247 |
@@ -639,7 +639,7 @@ const _detailDataPkg = (origin, uid, vipLevel, ua) => { | @@ -639,7 +639,7 @@ const _detailDataPkg = (origin, uid, vipLevel, ua) => { | ||
639 | vipList.push({ | 639 | vipList.push({ |
640 | level: levelList[value.caption], | 640 | level: levelList[value.caption], |
641 | text: value.price, | 641 | text: value.price, |
642 | - currentLevel: (value.vipLevel === vipLevel) | 642 | + currentLevel: (levelList[value.caption] === parseInt(vipLevel, 10)) |
643 | }); | 643 | }); |
644 | }); | 644 | }); |
645 | 645 |
public/img/product/limit.png
deleted
100644 → 0

25.2 KB
@@ -101,10 +101,6 @@ function search() { | @@ -101,10 +101,6 @@ function search() { | ||
101 | searching = false; | 101 | searching = false; |
102 | end = true; | 102 | end = true; |
103 | loading.hideLoadingMask(); | 103 | loading.hideLoadingMask(); |
104 | - | ||
105 | - if ($('#productDesc').hasClass('limit')) { | ||
106 | - $('#productDesc').find('.service').removeClass('service').addClass('limit-service'); | ||
107 | - } | ||
108 | }, | 104 | }, |
109 | error: function() { | 105 | error: function() { |
110 | tip.show('网络断开连接了~'); | 106 | tip.show('网络断开连接了~'); |
-
Please register or login to post a comment