Authored by 周少峰

add students price

@@ -587,6 +587,12 @@ const _detailDataPkg = (origin, uid, vipLevel) => { @@ -587,6 +587,12 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
587 // VIP数据 587 // VIP数据
588 result.vipPrice = _getVipDataByProductBaseInfo(origin, vipLevel, uid); 588 result.vipPrice = _getVipDataByProductBaseInfo(origin, vipLevel, uid);
589 589
  590 + // 学生价
  591 + result.studentsPrice = '¥' + origin.productPriceBo.studentPrice;
  592 +
  593 + // 学生返币
  594 + result.studentsCoin = origin.productPriceBo.studentCoinNum;
  595 +
590 // 促销活动banner,虚拟商品无促销 596 // 促销活动banner,虚拟商品无促销
591 if (origin.attribute !== 3) { 597 if (origin.attribute !== 3) {
592 result.activity = _getActivityDataByProductBaseInfo(origin); 598 result.activity = _getActivityDataByProductBaseInfo(origin);
@@ -131,6 +131,14 @@ @@ -131,6 +131,14 @@
131 </p> 131 </p>
132 {{/ vipPrice}} 132 {{/ vipPrice}}
133 133
  134 + {{#if studentsPrice}}
  135 + <p class="students-price">
  136 + <span class="title">学生价</span>
  137 + <span class="price">{{studentsPrice}}</span>
  138 + <span class="students-coin">{{studentsCoin}}有货币</span>
  139 + </p>
  140 + {{/if}}
  141 +
134 {{#if activity}} 142 {{#if activity}}
135 <ul class="activity"> 143 <ul class="activity">
136 {{#each activity}} 144 {{#each activity}}
@@ -194,6 +194,35 @@ @@ -194,6 +194,35 @@
194 } 194 }
195 } 195 }
196 196
  197 + .students-price {
  198 + color: #fff;
  199 + margin-top: 5px;
  200 + font-size: 12px;
  201 +
  202 + span.title {
  203 + display: inline-block;
  204 + width: 43px;
  205 + height: 16px;
  206 + line-height: 16px;
  207 + text-align: center;
  208 + background: resolve("product/students-price-icon.png") no-repeat;
  209 + color: #fff;
  210 + }
  211 +
  212 + .price {
  213 + font-size: 16px;
  214 + font-weight: normal;
  215 + padding: 0 5px;
  216 + }
  217 +
  218 + .students-coin {
  219 + width: 77px;
  220 + height: 17px;
  221 + background: #b0b0b0;
  222 + padding: 0 5px;
  223 + }
  224 + }
  225 +
197 .activity { 226 .activity {
198 margin-top: 12px; 227 margin-top: 12px;
199 228
@@ -299,7 +328,7 @@ @@ -299,7 +328,7 @@
299 display: block; 328 display: block;
300 width: 57px; 329 width: 57px;
301 height: 24px; 330 height: 24px;
302 - background: resolve('product/size-ruler.jpg'); 331 + background: resolve("product/size-ruler.jpg");
303 margin-bottom: 5px; 332 margin-bottom: 5px;
304 cursor: pointer; 333 cursor: pointer;
305 } 334 }
@@ -939,14 +968,14 @@ @@ -939,14 +968,14 @@
939 width: 715px; 968 width: 715px;
940 height: 259px; 969 height: 259px;
941 margin: 0 auto; 970 margin: 0 auto;
942 - background: resolve('product/after-service-1.png'); 971 + background: resolve("product/after-service-1.png");
943 } 972 }
944 973
945 .img-2 { 974 .img-2 {
946 width: 715px; 975 width: 715px;
947 height: 230px; 976 height: 230px;
948 margin: 0 auto; 977 margin: 0 auto;
949 - background: resolve('product/after-service-2.png'); 978 + background: resolve("product/after-service-2.png");
950 } 979 }
951 980
952 a { 981 a {