Authored by zhangxiaoru

orderENsore

... ... @@ -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,14 @@
display: inline-block;
}
}
.yoho-coin {
margin: 50px 0 30px;
background: resolve('product/yoho_icon.png') no-repeat;
padding-left: 68px;
font-size: 28px;
height: 52px;
}
}
.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 returnYohoCoin}}
<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>
{{#if isLimitSkn}}
<p class="limit">不支持七天无理由退换货</p>
{{/if}}
<p class="row price-wrap">
<span class="price">
¥{{price}}
... ...
... ... @@ -492,7 +492,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;
... ... @@ -511,6 +515,7 @@ class CartModel
// 商品金额
$result['goodsPrice'] = Helpers::transPrice($goodsPrice);
}
// 支付方式
... ... @@ -570,6 +575,12 @@ class CartModel
$result['num'] = $payReturn['shopping_cart_data']['selected_goods_count'];
// 商品金额
// $result['goodsPrice'] = $payReturn['shopping_cart_data']['str_order_amount'];
//有货币
if($payReturn['shopping_cart_data']['gain_yoho_coin'] > 0) {
$result['yohoCoinNum'] = $payReturn['shopping_cart_data']['gain_yoho_coin'];
$result['returnYohoCoin'] = true;
}
}
// 发票有关数据
... ... @@ -608,7 +619,7 @@ class CartModel
$result['coupon'] = $coupons;
}
while (false);
return $result;
}
... ...
... ... @@ -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);
}
... ...