Authored by 周少峰

students price shop cart

... ... @@ -700,7 +700,8 @@ class Helpers
$oneGoods['size'] = $value['size_name'];
$oneGoods['checked'] = $value['selected'] === 'Y';
$oneGoods['price'] = self::transPrice($value['last_vip_price']);
$oneGoods['isVipPrice'] = $value['sales_price'] !== $value['last_vip_price'];
$oneGoods['isVipPrice'] = $value['sales_price'] !== $value['last_vip_price'] && $value['discount_tag'] === 'V';
$oneGoods['isStudents'] = $value['sales_price'] !== $value['last_vip_price'] && $value['discount_tag'] === 'S';
$oneGoods['count'] = $value['buy_number'];
$oneGoods['promotion_id'] = $value['promotion_id'];
... ...
... ... @@ -15,7 +15,7 @@
<div class="iconfont more-icon tap-hightlight">&#xe604;</div>
</a>
{{^students}}
<a class="students-entry" href="###">学生认证</a>
<a class="students-entry" href="{{verifyUrl}}">学生认证</a>
{{/students}}
{{/isLogin}}
... ... @@ -24,7 +24,7 @@
<a class="login-btn" href="{{signinUrl}}">
登录/注册
</a>
<a class="students-entry" href="###">学生认证</a>
<a class="students-entry" href="{{verifyUrl}}">学生认证</a>
</div>
{{/isLogin}}
</div>
... ...
... ... @@ -49,15 +49,15 @@
{{#if isGift}}
<span class="sale-price">¥{{salesPrice}}</span>
{{/if}}
{{#if isStudents}}
<span class="students">学</span>
{{}}
</p>
{{#if isVipPrice}}
<span class="vip">
VIP
</span>
{{/if}}
{{#if isStudents}}
<span class="vip">学</span>
{{/if}}
{{#unless isAdvanceBuy}}
{{#unless isGift}}
<span class="iconfont icon-edit" data-count="{{count}}">&#xe61e;</span>
... ...
... ... @@ -1001,7 +1001,7 @@ class CartModel
$result['sumPrice'] = Helpers::transPrice($data['shopping_cart_data']['last_order_amount']);
}
while (0);
return $result;
}
... ...
... ... @@ -56,6 +56,7 @@ class IndexController extends AbstractAction
$shoppingKey = Helpers::getShoppingKeyByCookie();
$uid = $this->getUid(true);
$uid = 13311991;
$cartType = $this->get('cartType', 'all');
$data = array(
... ...