Authored by 周少峰

product list

... ... @@ -278,9 +278,7 @@ class Helpers
$result['salePrice'] && $result['salePrice'] .= '.00';
}
// TODO student price
if ($productData['student_price'] || 1) {
$result['studentPrice'] = $productData['sales_price'];
}
$result['studentPrice'] = sprintf("%.2f",$productData['sales_price']*0.9);
$result['is_soon_sold_out'] = ($productData['is_soon_sold_out'] === 'Y');
$url = self::url('/product/pro_' . $productData['product_id'] . '_'
. $productData['goods_list'][0]['goods_id']
... ...
... ... @@ -119,14 +119,15 @@
}
.students-price-tag {
display: inline-block;
width: 80px;
width: 65px;
text-align: center;
height: 22px;
line-height: 22px;
background: resolve('product/price-tag.png') no-repeat;
background-size: contain;
color: #fff;
font-size: 16px;
font-size: 12px;
padding: 0 2px;
}
}
.student-price {
... ...