Authored by 陈峰

套餐优化tab显示

... ... @@ -21,7 +21,7 @@ exports.detail = (req, res, next) => {
module: 'product',
page: 'bundle',
pageHeader: headerModel.setNav({
navTitle: '优惠套餐',
navTitle: result.bundleInfo.bundleName,
navBtn: false
}),
localCss: true
... ...
... ... @@ -41,7 +41,7 @@ const detail = (params) => {
bundleDatas: _.map(result.data, (bundle, index) => {
return {
selected: index === bundleIndex,
title: _.get(bundle, 'bundleInfo.bundleName') || '优惠套装',
title: _.get(bundle, 'bundleInfo.tabName') || '',
href: helpers.urlFormat('/product/bundle/detail', {skn: params.skn, index: ++index}),
};
}),
... ...
... ... @@ -227,6 +227,7 @@ const tool = {
let subPrice = _.get(bundleData, 'bundleInfo.subPrice', 0);
return {
tabName: _.get(bundleData, 'bundleInfo.tabName') || '',
title: _.get(bundleData, 'bundleInfo.bundleName') || '优惠套装',
href: helpers.urlFormat('/product/bundle/detail', {skn: skn, gid: gid, index: index}),
description: subPrice ? '立省¥' + subPrice : 0,
... ...
... ... @@ -6,7 +6,7 @@
<div class="swiper-slide{{#if @first}} selected{{/if}}" data-index="{{@index}}">
<div class="line"></div>
<div class="title">
<span>{{title}}</span>
<span>{{tabName}}</span>
</div>
</div>
{{/ bundleDatas}}
... ...