ZLW-PC\Administrator
7 years ago
12 changed files with 217 additions and 92 deletions
-
29app/Common/Helper.php
-
6app/Common/ReturnData.php
-
4app/Http/Controllers/Api/OrderController.php
-
25app/Http/Controllers/Weixin/OrderController.php
-
2app/Http/Controllers/Weixin/UserController.php
-
1app/Http/Model/BaseModel.php
-
75app/Http/Model/Order.php
-
21app/Http/Model/Region.php
-
1resources/views/weixin/goods/goodsDetail.blade.php
-
67resources/views/weixin/order/orderDetail.blade.php
-
77resources/views/weixin/order/orderList.blade.php
-
1routes/web.php
@ -0,0 +1,67 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title>订单详情</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"> |
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script> |
|||
<meta name="keywords" content="关键词"><meta name="description" content="描述"> |
|||
<link href="<?php echo env('APP_URL'); ?>/css/font-awesome.min.css" type="text/css" rel="stylesheet"></head><body style="background-color:#f1f1f1;"> |
|||
<div class="classreturn loginsignup"> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span>订单详情</span></div> |
|||
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div> |
|||
</div> |
|||
|
|||
@include('weixin.common.headerNav') |
|||
<!-- 选择收货地址-start --> |
|||
<div class="checkout-addr"> |
|||
<p class="title"><span class="name" id="default_consignee"><?php echo $post['name']; ?></span> <span class="tel" id="default_phone"><?php echo $post['mobile']; ?></span></p>
|
|||
<p class="des" id="default_address"><?php echo $post['province_name'].$post['city_name'].$post['district_name']; ?> <?php echo $post['address']; ?></p>
|
|||
<i class="fa fa-street-view"></i> |
|||
</div> |
|||
<style> |
|||
.checkout-addr{position: relative;background:#fff;margin-top:10px;padding:10px;}
|
|||
.checkout-addr p{margin-right:20px;}.checkout-addr .title{font-size:18px;color:#353535;}.checkout-addr .des{color:#9b9b9b;}
|
|||
.checkout-addr i{position:absolute;top:50%;right:12px;margin-top:-6px;color:#bbb;display:inline-block;}
|
|||
</style> |
|||
<!-- 选择收货地址-end --> |
|||
<!-- 订单商品-start --> |
|||
<div class="floor mt10"> |
|||
<div class="tit_h">订单商品</div> |
|||
<ul class="goodslist"> |
|||
<?php if($post){foreach($post['goods_list'] as $key=>$value){ ?>
|
|||
<li> |
|||
<img src="<?php echo $value['goods_img']; ?>"> |
|||
<p><b><?php echo $value['goods_name']; ?></b><span>¥<?php echo $value['goods_price']; ?><i>x<?php echo $value['goods_number']; ?></i></span></p>
|
|||
</li> |
|||
<?php }} ?>
|
|||
</ul> |
|||
|
|||
<p class="des">合计: ¥<?php echo $post['order_amount']; ?> <small>(含运费:¥<?php echo $post['shipping_fee']; ?>)</small></p>
|
|||
<div class="tag"><a href="" class="activate">我要付款</a><a href="">评价</a></div> |
|||
</div> |
|||
<style> |
|||
.goodslist{background-color:#fbfbfb;}
|
|||
.goodslist li{display:-webkit-box;margin:0 10px;padding:10px 0;border-bottom:1px solid #f1f1f1;}.goodslist li:last-child{border-bottom:none;}
|
|||
.goodslist li img{margin-right:10px;display:block;width:60px;height:60px;border:1px solid #e1e1e1;}
|
|||
.goodslist li p {display: block;-webkit-box-flex:1;width:100%;} |
|||
.goodslist li p b {display:block;font-size:16px;font-weight:400;line-height:28px;color:#333;}
|
|||
.goodslist li p span {color:#f23030;font-size:18px;display: block;padding-top:5px;}
|
|||
.goodslist li p i{color:#666;float:right;font-size:14px;}
|
|||
.tit_h{font-size:16px;font-weight:400;background-color:#fff;color:#383838;height:42px;line-height:41px;padding-left:10px;padding-right:10px;border-bottom:1px solid #eee;}
|
|||
.tit_h span{color:#e94e45;}
|
|||
.floor .des{text-align:right;background-color:#fff;font-size:14px;padding:6px 10px;}
|
|||
.tag{background-color:#fff;padding-bottom:10px;text-align:right;}
|
|||
.tag a{color:#666;background-color:#fff;border:1px solid #ddd;border-radius:5px;font-size:14px;padding:2px 6px;display:inline-block;margin-right:10px;}
|
|||
.tag a.activate{color:#ea6f5a;border:1px solid #ea6f5a;}
|
|||
</style> |
|||
<!-- 订单商品-end --> |
|||
|
|||
<div class="order_expand mt10"> |
|||
<p>创建时间:<?php echo date('Y-m-d H:i:s',$post['add_time']); ?></p>
|
|||
<p>订单编号:<?php echo $post['order_sn']; ?></p>
|
|||
</div> |
|||
<style> |
|||
.order_expand{background-color:#fff;padding:10px;font-size:14px;color:#666;}
|
|||
</style> |
|||
|
|||
@include('weixin.common.footer') |
|||
</body></html> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue