Authored by ccbikai(👎🏻🍜)

Merge branch 'release/5.0.0'

@@ -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
@@ -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('网络断开连接了~');
@@ -14,12 +14,6 @@ @@ -14,12 +14,6 @@
14 } 14 }
15 } 15 }
16 16
17 - .limit-service {  
18 - height: 28px;  
19 - background: resolve('product/limit.png') no-repeat;  
20 - background-size: cover;  
21 - }  
22 -  
23 .detail { 17 .detail {
24 margin-bottom: 1px; 18 margin-bottom: 1px;
25 } 19 }