<?php } ?> <div style="height:26px; float: right;margin-top:0px;"> <p class="form-row"> <a href="<?php echo Yii::app()->createUrl("pap/orderreview/index"); ?> " style="margin: 20px;font-size: 13px;color: #eb4800;">返回订单列表</a> </p> </div> </div> </div> </div> <?php $times = OrderService::is_current_date(); if ($_GET['lottid'] && $_GET['promoid'] && $times['Num'] == 1 && !isset(Yii::app()->session['first'])) { // &&$times['Num']==1 // &&!isset(Yii::app()->session['first']) Yii::app()->session['first'] = 1; echo $this->renderPartial('active', array('promoid' => $promoid)); } //添加收货地址 $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'pay', 'options' => array('width' => 480, 'height' => 280, 'autoOpen' => false, 'resizable' => false, 'modal' => true, 'overlay' => array('backgroundColor' => '#000', 'opacity' => '0.5')))); $this->renderPartial('paymessage'); $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> <script> $('.pod').find("input[type=button]").click(function(){
} ?> </span><br> <?php } ?> <?php //获取使用优惠券 $res = BuyGoodsService::mycoupon(); $coupon = $res->getData(); if (in_array($organID, $data)) { $act = BuyGoodsService::active(); if (!empty($act) && is_array($act)) { //判断当前日期是否在当天 //$in_day=OrderService::is_inday($act['LastTime']); $current_date = OrderService::is_current_date(); if ($current_date) { $curret_time = $current_date['LastTime']; $num = $current_date['Num'] + 1; } else { $curret_time = time(); $num = 1; } $in_day = OrderService::is_inday($curret_time); //判断当前日期是否在当天 支付方式是哪一种则参与活动 if (($act['Payment'] == $payment || $act['Payment'] == 1) && $in_day == 1) { $params['PromoID'] = intval($act['ID']); $params['TotalAmount'] = $counts; switch ($act['Type']) { case 1: //满多少减多少