Authored by 周少峰

add students price

... ... @@ -587,6 +587,12 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
// VIP数据
result.vipPrice = _getVipDataByProductBaseInfo(origin, vipLevel, uid);
// 学生价
result.studentsPrice = '¥' + origin.productPriceBo.studentPrice;
// 学生返币
result.studentsCoin = origin.productPriceBo.studentCoinNum;
// 促销活动banner,虚拟商品无促销
if (origin.attribute !== 3) {
result.activity = _getActivityDataByProductBaseInfo(origin);
... ...
... ... @@ -131,6 +131,14 @@
</p>
{{/ vipPrice}}
{{#if studentsPrice}}
<p class="students-price">
<span class="title">学生价</span>
<span class="price">{{studentsPrice}}</span>
<span class="students-coin">{{studentsCoin}}有货币</span>
</p>
{{/if}}
{{#if activity}}
<ul class="activity">
{{#each activity}}
... ...
... ... @@ -194,6 +194,35 @@
}
}
.students-price {
color: #fff;
margin-top: 5px;
font-size: 12px;
span.title {
display: inline-block;
width: 43px;
height: 16px;
line-height: 16px;
text-align: center;
background: resolve("product/students-price-icon.png") no-repeat;
color: #fff;
}
.price {
font-size: 16px;
font-weight: normal;
padding: 0 5px;
}
.students-coin {
width: 77px;
height: 17px;
background: #b0b0b0;
padding: 0 5px;
}
}
.activity {
margin-top: 12px;
... ... @@ -299,7 +328,7 @@
display: block;
width: 57px;
height: 24px;
background: resolve('product/size-ruler.jpg');
background: resolve("product/size-ruler.jpg");
margin-bottom: 5px;
cursor: pointer;
}
... ... @@ -939,14 +968,14 @@
width: 715px;
height: 259px;
margin: 0 auto;
background: resolve('product/after-service-1.png');
background: resolve("product/after-service-1.png");
}
.img-2 {
width: 715px;
height: 230px;
margin: 0 auto;
background: resolve('product/after-service-2.png');
background: resolve("product/after-service-2.png");
}
a {
... ...