123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- ##tlayout("wap/layout.htm",{head_title:"订单详情"}){
- <div class="body">
- <div class="address_top">
- <a href="javascript:;" class="address_top_a">
- <div class="address_inform">
- <div class="nameTel">
- <span>${orders.take_name!}</span>
- <span>${orders.take_phone!}</span>
- </div>
- <div class="address_content">
- <span>${orders.take_area_msg!}</span>
- <span style="margin-left: 5px;">${orders.take_address!}</span>
- <span style="margin-left: 10px;">${orders.take_post_code!}</span>
- </div>
- </div>
- </a>
- </div>
-
- <div class="wells_row">
- <div class="wells_item">
- <span class="wells_item_hd">订单号:${orders.code!}</span>
- <span class="right_title">
- <div class="color_red">
- ##if(orders.status==0){
- 未付款
- ##}else if(orders.status==1){
- 付款确认中
- ##}else if(orders.status==2){
- 待发货
- ##}else if(orders.status==3){
- 已发货
- ##}else if(orders.status==4){
- 已收货
- ##}else if(orders.status==5){
- 已完成
- ##}else{
- 退款中
- ##}
- </div>
- </span>
- </div>
- </div>
- <div class="goods_detail_wrap">
- ##for(_item in diy_list!){
- <div class="goods_items">
- <div class="goods_items_base">
- <a href="${_item.diy_img_url!}" class="goods_items_img" style="background-image:url(${_item.diy_img_url!})"></a>
- <div class="goods_items_content">
- <h3>${_item.diy_title!}</h3>
- <div class="goods_remark">${_item.diy_remark!}</div>
- <div class="goods_remark">${_item.bottle_title!} | ${_item.bottle_type_title!}</div>
- <div class="goods_peice_wrap" style="margin: 0px;">
- <span class="price">¥${_item.item_price!}</span>
- <span class="goods_number goods_number_one">
- <span class="color_red">×<span style="margin-left: 5px;">${_item.item_number!}箱</span></span>
- </span>
- </div>
- </div>
- </div>
- </div>
- ##}
- </div>
- <div class="tip_title">商品价格信息</div>
- <div class="wells_row wells_row_notomargin">
- <div class="wells_item">
- <span class="wells_item_hd">商品小计</span>
- <span class="right_title">
- <div class="color_red">¥${orders.subtotal!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">运费</span>
- <span class="right_title">
- <div class="color_red">¥${orders.freight_price!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">总计</span>
- <span class="right_title">
- <div class="color_red">¥${orders.grand_total!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">创建时间</span>
- <span class="right_title right_title_w100">${orders.create_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
- </div>
- ##if(orders.payment_date!=null && orders.payment_date!=""){
- <div class="wells_item">
- <span class="wells_item_hd">付款时间</span>
- <span class="right_title right_title_w100">${orders.payment_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
- </div>
- ##}
- ##if(orders.tracking_date!=null && orders.tracking_date!=""){
- <div class="wells_item">
- <span class="wells_item_hd">发货时间</span>
- <span class="right_title right_title_w100">${orders.tracking_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
- </div>
- ##}
- ##if(orders.received_date!=null && orders.received_date!=""){
- <div class="wells_item">
- <span class="wells_item_hd">确认收货时间</span>
- <span class="right_title right_title_w100">${orders.received_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
- </div>
- ##}
- </div>
- ##if(orders.tracking_code!=null && orders.tracking_code!=""){
- <div class="tip_title">物流信息</div>
- <div class="wells_row wells_row_notomargin">
- <div class="wells_item">
- <span class="wells_item_hd">${orders.tracking_company!}</span>
- <span class="right_title right_title_w100">
- <a href="/wap/user/trackingMsg?code=${orders.code!}">${orders.tracking_code!}</a>
- </span>
- </div>
- </div>
- ##}
- ##if(orders.payment!=null && orders.payment!=""){
- <div class="tip_title">付款信息</div>
- ##if(orders.payment==1){
- <div class="wells_row wells_row_notomargin">
- <div class="wells_item">
- <span class="wells_item_hd">微信付款</span>
- </div>
- </div>
- ##}else if(orders.payment==2){
- <div class="wells_row wells_row_notomargin">
- <div class="wells_item">
- <span class="wells_item_hd">收款银行卡账号</span>
- <span class="right_title right_title_w100">${orders.to_bank_number!}</span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">收款持有人姓名</span>
- <span class="right_title right_title_w100">${orders.to_bank_name!}</span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">收款开户行</span>
- <span class="right_title right_title_w100">${orders.to_bank_type!}</span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">收款开户支行</span>
- <span class="right_title right_title_w100">${orders.to_bank_address!}</span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">转出银行卡账号</span>
- <span class="right_title right_title_w100">${orders.from_bank_number!}</span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">转出持有人姓名</span>
- <span class="right_title right_title_w100">${orders.from_bank_name!}</span>
- </div>
- </div>
- ##}else{
- <div class="wells_row wells_row_notomargin">
- <div class="wells_item">
- <span class="wells_item_hd">支付宝付款</span>
- </div>
- </div>
- ##}
- ##}
- </div>
- ##if(orders.status==0){
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
- <a href="/wap/shop/payment?code=${orders.code!}" class="bottom_btn_list">立即支付</a>
- </div>
- </div>
- ##}else if(orders.status==1){
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
- </div>
- </div>
- ##}else if(orders.status==2){
- ##}else if(orders.status==3){
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <a href="/wap/user/trackingMsg?code=${orders.code!}" class="bottom_btn_list default">物流详情</a>
- <a href="javascript:reciveTracking('${orders.code!}')" class="bottom_btn_list">确认收货</a>
- </div>
- </div>
- ##}else if(orders.status==4){
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
- <a href="javascript:refund('${orders.code!}')" class="bottom_btn_list">申请退款</a>
- </div>
- </div>
- ##}else if(orders.status==5){
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
- </div>
- </div>
- ##}else{
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
- </div>
- </div>
- ##}
- <a href="/wap" class="goback"><span>首页</span></a>
- <script>
- function deleteOrders(code){
-
- if(confirm("确定要删除该订单?")){
- $.post("/wap/user/deleteOrders",{code:code},function(data){
- alert(data.msg);
- if(data.success){
- window.location.href="/wap/user/orders";
- }
- });
- }
- }
- function reciveTracking(code){
-
- if(confirm("确定要确认收货?")){
- $.post("/wap/user/reciveTracking",{code:code},function(data){
- alert(data.msg);
- if(data.success){
- location.reload();
- }
- });
- }
- }
- function refund(code){
-
- if(confirm("确定要申请退款?")){
- $.post("/wap/user/refund",{code:code},function(data){
- alert(data.msg);
- if(data.success){
- location.reload();
- }
- });
- }
- }
- </script>
- ##}
|