">
                        <a href="<?php 
            echo U('detail', array('shop_id' => $shop_id, 'id' => $vo['id']));
            ?>
">
                            <img src="<?php 
            echo get_cover_url($vo["cover"]);
            ?>
"/>
                            <div class="desc">
                            	<p class="name"><?php 
            echo $vo["title"];
            ?>
</p>
                            	<p class="price">¥<?php 
            echo wp_money_format($vo["price"]);
            ?>
</p>
                            </div>
                        </a>                    
                </li><?php 
        }
    }
} else {
    echo "";
}
?>
            </ul>
        </div>
        <div class="noMore">没有更多内容</div> 
     	<div class="moreLoading"><em>&nbsp;</em>正在加载更多···</div>
">
                            <img class="goods_img" src="<?php 
                echo get_cover_url($vo["goods_data"]["cover"]);
                ?>
"/></a>
                              <div class="goods_desc">
                                  <a class="name" href="<?php 
                echo U('detail', array('shop_id' => $vo['shop_id'], 'id' => $vo['goods_id']));
                ?>
"><?php 
                echo $vo["goods_data"]["title"];
                ?>
</a>
                                  <!--<p class="info"><span class="colorless">型号:</span>蓝色 23</p>-->
                                  <p class="info"><span class="colorless">单价:</span><span class="orange">¥<span class="singlePrice"><?php 
                echo wp_money_format($vo["goods_data"]["price"]);
                ?>
</span></span></p>
                                  <div class="buy_count">
                                      <a class="reduce" href="javascript:;">-</a>
                                      <input type="text" name="buyCount[<?php 
                echo $vo["goods_id"];
                ?>
]" value="<?php 
                echo intval($vo["num"]);
                ?>
" rel="buyCount"/>
                                      <a class="add" href="javascript:;">+</a>
                                  </div>
                              </div>
                          </div>
        <div class="detail_info">
        	<div class="info_item">
        		<h6 class="name"><?php 
        echo $goods["title"];
        ?>
</h6>
            	<p class="price">
                	¥<span id="price"><?php 
        echo wp_money_format($goods["price"]);
        ?>
</span>
                	<?php 
        if (!empty($goods["old_price"])) {
            ?>
<del>¥<?php 
            echo wp_money_format($goods["old_price"]);
            ?>
</del><?php 
        }
        ?>
                </p>
            </div>
            <div class="info_item">
<!--            	<p>型号</p>
            	<a class="sku_item" href="javascript:;" data-price="122.00">黄色 38<input type="checkbox" class="sku_check" name="sku[0]" value="1"/></a>
                <a class="sku_item select"href="javascript:;" data-price="122.00">绿色 39<input type="checkbox" class="sku_check" name="sku[1]" value="1"/></a>
                <a class="sku_item" href="javascript:;" data-price="122.00">红色 40<input type="checkbox" class="sku_check" name="sku[2]" value="1"/></a>-->
                <p>数量</p>
                <div class="buy_count">
                	<a class="reduce" href="javascript:;">-</a>
                    <input type="text" name="buyCount" value="1"/>
</span> </p>
          </div>
        </li><?php 
        }
    }
} else {
    echo "";
}
?>
    </ul>
    <!--<p class="ship_type"> <span class="fl">配送方式</span> <span class="fr">快递:10元</span> </p>-->
    <p class="order_remark">
      <textarea placeholder="给卖家给留言" name="remark" id="remark"></textarea>
    </p>
    <p class="total_price"> <span class="orange">共<?php 
echo wp_money_format($total_price);
?>
元</span> </p>
    <a class="btn" href="javascript:void(0)" onClick="doPost()">提交订单</a> </div>
</div>
</body>
</html>
<script type="text/javascript">
function doPost(){
	var address_id = $('#address_id').val();
	if(address_id==''){
	    $.Dialog.fail("请选择收货地址");
		return false;	
	}
	var remark = $('#remark').val();
 function output()
 {
     $model = $this->model;
     $map['token'] = get_token();
     $orders = D('Addons://Shop/Order')->where($map)->getFields('order_number,id');
     $follows = M('public_follow')->where($map)->getFields('openid,uid');
     $payStatus = I('get.pay_status');
     if ($payStatus) {
         if ($payStatus == 3) {
             $map['status'] = 0;
         } else {
             $map['status'] = $payStatus;
         }
     }
     $payType = I('get.pay_type');
     if ($payType) {
         $map['paytype'] = $payType;
     }
     $isPrice = I('get.is_price');
     if ($isPrice) {
         $minVal = I('get.min_value', 0, 'intval');
         $maxVal = I('get.max_value', 0, 'intval');
         if ($minVal && $maxVal) {
             $minVal < $maxVal && ($map['price'] = array('between', array($minVal, $maxVal)));
             $minVal > $maxVal && ($map['price'] = array('between', array($maxVal, $minVal)));
             $minVal == $maxVal && ($map['price'] = $minVal);
         } else {
             if (!empty($minVal)) {
                 $map['price'] = array('egt', $minVal);
             } else {
                 if (!empty($maxVal)) {
                     $map['price'] = array('elt', $maxVal);
                 }
             }
         }
     }
     $search = $_REQUEST['single_orderid'];
     if ($search) {
         $this->assign('search', $search);
         $map['single_orderid'] = array('like', '%' . htmlspecialchars($search) . '%');
         unset($_REQUEST['single_orderid']);
     }
     session('common_condition', $map);
     $list_data = $this->_get_model_list($this->model);
     foreach ($list_data['list_grids'] as $v) {
         $titleArr[] = $v['title'];
     }
     $dataArr[] = $titleArr;
     $paytypearr = array('Weixin' => '微信支付', 'Alipaytype' => '支付宝支付', 'Tenpay' => '财付通WAP支付', 'TenpayComputer' => '财付通支付', 'Quickpay' => '银联支付');
     foreach ($list_data['list_data'] as &$vo) {
         $vo['wecha_id'] = get_userinfo($follows[$vo['wecha_id']], 'nickname');
         $vo['orderName'] = urldecode($vo['orderName']);
         $vo['price'] = '¥' . wp_money_format($vo['price']);
         $vo['status'] = $vo['status'] == 0 ? '未支付' : '已支付';
         $vo['paytype'] = $paytypearr[$vo['paytype']];
         $param['id'] = $orders[$vo['single_orderid']];
         $vo['single_orderid'] = $vo['single_orderid'];
         unset($vo['id']);
         $dataArr[] = $vo;
     }
     outExcel($dataArr, $map['module']);
 }