123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- ##tlayout("www/layout.htm"){
- <nav class="my-nav">
- <ul class="container list-unstyled nav-list clearfix">
- <li><a href="/user">个人中心</a></li>
- <li class="active"><a href="/user/orders">我的订单</a></li>
- <li><a href="/user/diy">我的定制</a></li>
- <li><a href="/user/address">收货地址</a></li>
- </ul>
- </nav>
- <section class="container" style="min-height: 600px;">
- <div class="order-tab clearfix">
- ##if(exist("status")){
- <a href="/user/orders">全部</a>
- ##if(status==0){
- <a href="/user/orders?status=0" class="active">未付款</a>
- ##}else{
- <a href="/user/orders?status=0">未付款</a>
- ##}
- ##if(status==1){
- <a href="/user/orders?status=1" class="active">付款确认中</a>
- ##}else{
- <a href="/user/orders?status=1">付款确认中</a>
- ##}
- ##if(status==2){
- <a href="/user/orders?status=2" class="active">待发货</a>
- ##}else{
- <a href="/user/orders?status=2">待发货</a>
- ##}
- ##if(status==3){
- <a href="/user/orders?status=3" class="active">已发货</a>
- ##}else{
- <a href="/user/orders?status=3">已发货</a>
- ##}
- ##if(status==4){
- <a href="/user/orders?status=4" class="active">已收货</a>
- ##}else{
- <a href="/user/orders?status=4">已收货</a>
- ##}
- ##if(status==5){
- <a href="/user/orders?status=5" class="active">已完成</a>
- ##}else{
- <a href="/user/orders?status=5">已完成</a>
- ##}
- ##if(status==9){
- <a href="/user/orders?status=9" class="active">退款中</a>
- ##}else{
- <a href="/user/orders?status=9">退款中</a>
- ##}
- ##}else{
- <a href="/user/orders" class="active">全部</a>
- <a href="/user/orders?status=0">未付款</a>
- <a href="/user/orders?status=1">付款确认中</a>
- <a href="/user/orders?status=2">待发货</a>
- <a href="/user/orders?status=3">已发货</a>
- <a href="/user/orders?status=4">已收货</a>
- <a href="/user/orders?status=5">已完成</a>
- <a href="/user/orders?status=9">退款中</a>
- ##}
- </div>
- ##for(_item in results.list!){
- <table class="table table-bordered order-table table-list">
- <thead>
- <tr>
- <th colspan="4">
- <span>${_item.create_date!,dateFormat='yyyy-MM-dd HH:mm'}</span>
- <span class="font-nom">订单号:${_item.code!}</span>
- ##if(_item.payment==1){
- <span class="font-nom">微信支付</span>
- ##}else if(_item.payment==2){
- <span class="font-nom">银行卡支付</span>
- ##}else if(_item.payment==3){
- <span class="font-nom">支付宝支付</span>
- ##}
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="list-td">
- <ul class="order-list list-unstyled">
- ##for(_diy in _item.item_list!){
- <li>
- <div class="pro-img pull-left">
- <a href="${_diy.diy_img_url!}" target="_blank">
- <img src="${_diy.diy_img_url!}" />
- </a>
- </div>
- <div class="pro-title ellipsis">${_diy.diy_title!}</div>
- <div class="pro-title ellipsis" style="font-weight: normal;font-size: 12px;">${_diy.diy_remark!}</div>
- <div class="pro-title ellipsis" style="font-weight: normal;font-size: 12px;">${_diy.bottle_title!} | ${_diy.bottle_type_title!}</div>
- <div class="pro-num">¥${_diy.item_price!} * ${_diy.item_number!}箱</div>
- <div class="pro-price">¥${_diy.subtotal!}</div>
- </li>
- ##}
- </ul>
- </td>
- <td>¥${_item.grand_total!}<br/>(含运费:¥${_item.freight_price!})</td>
- <td>
- ##if(_item.status==0){
- 未付款
- ##}else if(_item.status==1){
- 付款确认中
- ##}else if(_item.status==2){
- 待发货
- ##}else if(_item.status==3){
- 已发货
- ##}else if(_item.status==4){
- 已收货
- ##}else if(_item.status==5){
- 已完成
- ##}else{
- 退款中
- ##}
- </td>
- <td><a href="/user/ordersMsg?code=${_item.code!}" class="red" target="_blank">查看详情</a></td>
- </tr>
- </tbody>
- </table>
- ##}
- ##if(totalPage>1){
- <nav aria-label="Page navigation" class="page">
- <#_page page="${results!}" params="status">
- <ul id="Pagination" class="pagination"></ul>
- </#_page>
- </nav>
- ##}
- </section>
- ##}
|