Authored by zhangxiaoru

order

... ... @@ -267,6 +267,7 @@ class CartData
}
$param['client_secret'] = Sign::getSign($param);
// print_r(Yohobuy::get(API_URL, $param));
return Yohobuy::get(API_URL, $param);
}
... ...
... ... @@ -244,6 +244,15 @@
display: inline-block;
}
}
.yoho-coin {
margin: 50px 0 30px;
background: resolve('product/yoho_icon.png') no-repeat;
padding-left: 68px;
height: 60px;
line-height: 60px;
font-size: 28px;
}
}
.order-good {
... ...
... ... @@ -303,6 +303,10 @@
-webkit-box-orient: vertical;
}
.limit {
color: #b6b6b6;
}
.row:nth-child(2) {
height: 45px;
line-height: 45px;
... ...
... ... @@ -177,6 +177,13 @@
实付金额
<span>¥{{price}}</span>
</div>
{{#if yohoCoinNum}}
<div class="yoho-coin">
共返有货币: {{yohoCoinNum}}个
</div>
{{/if}}
</section>
<div class="bill">
您需要支付:<span>¥{{price}}</span>
... ...
... ... @@ -21,7 +21,12 @@
{{#if tickets}}区域{{else}}尺码{{/if}}:{{size}}
</span>
{{/if}}
</p>
<p class="limit">不支持七天无理由退换货</p>
<!-- {{#if isLimitSkn}} -->
<!-- {{/if}} -->
<p class="row price-wrap">
<span class="price">
¥{{price}}
... ...
... ... @@ -482,6 +482,7 @@ class CartModel
if (isset($payReturn['goods_list'])) {
$oneGoods = array();
$goodsPrice = 0;
$yohoCoinNumAll = 0;
foreach ($payReturn['goods_list'] as $single) {
$oneGoods = array();
... ... @@ -492,7 +493,11 @@ class CartModel
$oneGoods['size'] = $single['size_name'];
$oneGoods['count'] = $single['buy_number'];
$oneGoods['price'] = Helpers::transPrice($single['last_price']);
if (isset($single['is_limit_skn'])) {
$oneGoods['isLimitSkn'] = $single['is_limit_skn'];
}
$oneGoods['yohoCoinNum'] = $single['yoho_coin_num'];
//gift=>是否赠品,advanceBuy=>是否加价购;
if ($single['goods_type'] == 'gift' && !isset($single['isAdvanceBuy'])) {
$oneGoods['gift'] = true;
... ... @@ -505,12 +510,17 @@ class CartModel
// 累加商品金额
$goodsPrice += $oneGoods['count'] * $oneGoods['price'];
$yohoCoinNumAll += $oneGoods['yohoCoinNum'];
$result['goods'][] = $oneGoods;
}
// 商品金额
$result['goodsPrice'] = Helpers::transPrice($goodsPrice);
//$result['yohoCoinNum'] = $yohoCoinNumAll;
if($yohoCoinNumAll > 0) {
$result['yohoCoinNum'] = $yohoCoinNumAll;
}
}
// 支付方式
... ...
... ... @@ -352,9 +352,10 @@ class IndexController extends AbstractAction
'userMobile' => $mobile
);
$this->setTitle('确认订单');
$this->setNavHeader('确认订单', $returnUrl, false); // 不显示右上角home按钮
//print_r($data);
$this->_view->display('order-ensure', $data);
}
... ...