Authored by weiqingting

订单详情合并

... ... @@ -167,14 +167,12 @@
<div class="order-selection select-express">
<h2>选择快递:</h2>
{{#each carriagelist}}
<div class="express-list">
<input class="radio" type="radio" name="" id="common-express"/>
<label for="common-express">普通快递:&nbsp;&nbsp;运费 0.00</label>
</div>
<div class="express-list">
<input class="radio" type="radio" name="" id="sf-express"/>
<label for="sf-express">顺丰速运:&nbsp;&nbsp;运费 5.00 (仅支持顺丰可配送的地区)</label>
<input class="radio" type="radio" name="carriagegroup" id="common-{id}" value="{{value}}"/>
<label for="common-express">{{name}}:&nbsp;&nbsp;运费 {{value}} {{desc}}</label>
</div>
{{/each}}
<div class="express-list express-tips">注:配送会由于天气,交通等不可抗拒的客观因素造成您收货时间延迟,请您知悉。</div>
</div>
</div>
... ...
... ... @@ -61,6 +61,8 @@ var Order = {
}
});
/*初始化价格*/
this.render();
... ... @@ -225,7 +227,8 @@ var Order = {
e: {
$juanok: $('#juansubmit'),
$juantip: $('.errtip', '.play-juan-pan'),
$biok: $('#bisubmit')
$biok: $('#bisubmit'),
$carriageGroup: $('input[name="carriagegroup"]')
},
init: function() {
var e = this.e,
... ... @@ -234,6 +237,11 @@ var Order = {
u = Order.UI;
var options;
e.$carriageGroup.change(function(){
//d.carriage=parseFloat(/\d+(\.\d+)?/i.exec($(this).next("label").html()));
d.carriage=parseFloat($(this).val());
u.render();
});
/*点击 优惠卷支付 确认按钮*/
e.$juanok.click(function() {
var code = $('input[name="juangroup"]:checked').val();
... ...
... ... @@ -55,6 +55,10 @@ class SaveController extends AbstractAction
'src' => 'http://static.yohobuy.com/images/bankico/BOC.gif'
)
),
'carriagelist'=>array(
array('name'=>'普通快递','value'=>'0.00',"desc"=>''),
array('name'=>'普通快递','value'=>'5.00',"desc"=>'(仅支持顺丰可配送的地区)')
),
'orderProducts'=>array(
array('name' =>"Eight Guys 破洞束口牛仔裤",'tip'=>"颜色:蓝色 尺码:L",'src'=>$src,'href'=>'','price'=>'179.00','coin'=>'0','count'=>'1'),
array('name' =>"Eight Guys 破洞束口牛仔裤",'tip'=>"颜色:蓝色 尺码:L",'src'=>$src,'href'=>'','price'=>'179.00','coin'=>'0','count'=>'1')
... ...