Beispiel #1
0
    echo Money::priceFormat($orderPricePay);
    ?>
</span></div><div class="order-top-right"><button class="online-pay" onclick="callpay()">微信支付</button></div></div>
	<div class="order-time"><div class="order-time-left"><?php 
    echo date('Y-m-d H:i:s', time());
    ?>
</div></div>
	<?php 
    foreach ($orderProductListPay as $key => $orderProduct) {
        ?>
		<!--非套餐-->
		<?php 
        if ($key) {
            ?>
		<div class="order-category"><?php 
            echo OrderList::GetCatoryName($key, $dpid);
            ?>
</div>
	   <?php 
            foreach ($orderProduct as $order) {
                ?>
		<div class="order-product">
			<div class="order-product-left"><img src="<?php 
                echo $order['main_picture'];
                ?>
" /></div>
			<div class="order-product-right">
				<div class="right-up"><?php 
                echo $order['product_name'];
                ?>
</div>
Beispiel #2
0
</div><div class="order-time-right select-taste" data-id="<?php 
    echo $orderList->order ? $orderList->order['lid'] : 0;
    ?>
" type="3" product-id="0" style="color:#ff8c00"><?php 
    echo yii::t('app', '呼叫服务员');
    ?>
<img src="../img/product/down-arrow.png" /></div></div>
	<?php 
    foreach ($orderProductListPay as $key => $orderProduct) {
        ?>
		<!--非套餐-->
		<?php 
        if ($key) {
            ?>
		<div class="order-category"><?php 
            echo OrderList::GetCatoryName($key, $this->companyId);
            ?>
</div>
	   <?php 
            foreach ($orderProduct as $order) {
                ?>
		<div class="order-product">
			<div class="order-product-left"><img src="<?php 
                echo $order['main_picture'];
                ?>
" /></div>
			<div class="order-product-right">
				<div class="right-up"><?php 
                echo $order['product_name'];
                ?>
</div>
 public function actionGetOrderListJson()
 {
     $orderProductList = array();
     $orderList = new OrderList($this->companyId, $this->siteNoId);
     if ($orderList->order) {
         $orderProductList = $orderList->OrderProductList($orderList->order['lid'], 0, 1);
         foreach ($orderProductList as $key => $val) {
             $orderProductList[$key]['category_name'] = OrderList::GetCatoryName($key, $this->companyId);
             if (!$key) {
                 foreach ($val as $k => $v) {
                     $orderProductList[$key][$k]['product_id'] = ProductSetClass::GetProductSetProductIds($this->companyId, $v['set_id']);
                 }
             }
         }
     }
     Yii::app()->end(json_encode($orderProductList));
 }