public function ActionDetail() { $this->pageTitle = Yii::app()->name . '-订单详情'; $orderid = Yii::app()->request->getParam('orderid'); $organID = Yii::app()->user->getOrganID(); //获取订单信息及商品信息 $model = PapOrder::model()->findByPk($orderid, "BuyerID={$organID}"); if (!$model) { $this->redirect(array('index')); } $order['order'] = $model->attributes; $discount = PapOrderDiscount::model()->find(array("condition" => "OrderType = {$order['order']['OrderType']}")); $order['discount'] = $discount->attributes; foreach ($model->goodsinfo as $k => $v) { $order['goodsList'][$k] = self::getVersionGoods($v); } //获取收货地址 $address = OrderService::getship($orderid); //获取卖家信息 $dealer = OrderService::getSeller($orderid); //支付宝帐号 // $account = OrderService::getPayaccount(); //获取活动信息 $huodong = OrderService::getHuodong($orderid); $this->render('detail', array('order' => $order, 'address' => $address, 'dealer' => $dealer, 'huodong' => $huodong)); }
</div> </li> <?php } ?> </ul> <?php //endif; ?> <div class="float_l goods_show" style="height:<?php echo $count > 1 ? $count * 135 + 1 : $count * 135; ?> px;min-height:135px"> <div class="goods_show1 float_l"><div class="price m_top20"> <?php $promo = OrderService::getHuodong($data->ID); if (!empty($promo) && $promo['Amount'] != 0) { ?> <s style="color:#eb7616">¥<?php echo $data->GoodsAmount; ?> </s><br> <span><?php if (!empty($promo['CouponSn'])) { echo "<span class='pt10' style='color:#0164c1;font-size:12px'>(优惠券" . $promo['Amount'] . "元)</span><br>"; } else { if (!empty($promo['PromoID'])) { echo "<span class='pt10' style='color:#0164c1;font-size:12px'>(活动减免" . $promo['Amount'] . "元)</span>"; } } ?>