Authored by zhangxiaoru

促销短语

... ... @@ -299,6 +299,9 @@ const _detailDataPkg = (origin, ua) => {
// 是否是虚拟商品
dest.virtualGoods = (origin.attribute * 1 === 3);
// 活动促销短语
origin.market_phrase && (dest.marketPhrase = origin.market_phrase);
// 商品促销短语
origin.sales_phrase && (dest.goodsSubtitle = origin.sales_phrase);
... ... @@ -604,6 +607,9 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => {
}
dest.goodsName = origin.product_name;
// 活动促销短语
origin.market_phrase && (dest.marketPhrase = origin.market_phrase);
// 商品促销短语
origin.sales_phrase && (dest.goodsSubtitle = origin.sales_phrase);
... ... @@ -770,6 +776,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => {
if (result.isSecKill === 'Y' && result.cartInfo.totalNum > 0) {
result.totalNum = 1;
}
return result;
});
};
... ...
... ... @@ -25,6 +25,9 @@ const tool = {
// 是否是虚拟商品
// dest.virtualGoods = (origin.attribute * 1 === 3);
// 活动促销短语
origin.market_phrase && (dest.marketPhrase = origin.market_phrase);
// 商品促销短语
origin.sales_phrase && (dest.goodsSubtitle = origin.sales_phrase);
... ...
... ... @@ -30,9 +30,19 @@
{{> detail/banner-swiper-arrow}}
{{/ bannerTop}}
</div>
{{# goodsName}}
<h2 class="goods-name"><span>{{.}}</span></h2>
{{/ goodsName}}
<h2 class="goods-name">
{{# marketPhrase}}
<span class="activity-phrase">{{.}}</span>
{{/ marketPhrase}}
{{# goodsName}}
<span class="name">{{.}}</span>
{{/ goodsName}}
</h2>
{{# marketPhrase}}
<h1 class="goods-subtitle"><span>{{.}}</span></h1>
{{/ marketPhrase}}
{{# goodsSubtitle}}
<h1 class="goods-subtitle"><span>{{.}}</span></h1>
... ...
... ... @@ -385,8 +385,22 @@ $basicBtnC: #eb0313;
width: 100%;
background-color: #515150;
color: #fff;
font-size: 28px;
line-height: 48px;
.name {
font-size: 28px;
line-height: 48px;
}
.activity-phrase {
display: inline-block;
height: 40px;
background: #d0021b;
padding: 0 10px;
border-radius: 6px;
font-size: 24px;
line-height: 40px;
margin-right: 10px;
}
}
.goods-subtitle {
... ... @@ -412,6 +426,10 @@ $basicBtnC: #eb0313;
}
}
.phrase {
color: #000;
}
.price-date,
.brand-coupon {
position: relative;
... ...