ordersMsg.htm 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. ##tlayout("wap/layout.htm",{head_title:"订单详情"}){
  2. <div class="body">
  3. <div class="address_top">
  4. <a href="javascript:;" class="address_top_a">
  5. <div class="address_inform">
  6. <div class="nameTel">
  7. <span>${orders.take_name!}</span>
  8. <span>${orders.take_phone!}</span>
  9. </div>
  10. <div class="address_content">
  11. <span>${orders.take_area_msg!}</span>
  12. <span style="margin-left: 5px;">${orders.take_address!}</span>
  13. <span style="margin-left: 10px;">${orders.take_post_code!}</span>
  14. </div>
  15. </div>
  16. </a>
  17. </div>
  18. <div class="wells_row">
  19. <div class="wells_item">
  20. <span class="wells_item_hd">订单号:${orders.code!}</span>
  21. <span class="right_title">
  22. <div class="color_red">
  23. ##if(orders.status==0){
  24. 未付款
  25. ##}else if(orders.status==1){
  26. 付款确认中
  27. ##}else if(orders.status==2){
  28. 待发货
  29. ##}else if(orders.status==3){
  30. 已发货
  31. ##}else if(orders.status==4){
  32. 已收货
  33. ##}else if(orders.status==5){
  34. 已完成
  35. ##}else{
  36. 退款中
  37. ##}
  38. </div>
  39. </span>
  40. </div>
  41. </div>
  42. <div class="goods_detail_wrap">
  43. ##for(_item in diy_list!){
  44. <div class="goods_items">
  45. <div class="goods_items_base">
  46. <a href="${_item.diy_img_url!}" class="goods_items_img" style="background-image:url(${_item.diy_img_url!})"></a>
  47. <div class="goods_items_content">
  48. <h3>${_item.diy_title!}</h3>
  49. <div class="goods_remark">${_item.diy_remark!}</div>
  50. <div class="goods_remark">${_item.bottle_title!}&nbsp;|&nbsp;${_item.bottle_type_title!}</div>
  51. <div class="goods_peice_wrap" style="margin: 0px;">
  52. <span class="price">¥${_item.item_price!}</span>
  53. <span class="goods_number goods_number_one">
  54. <span class="color_red">×<span style="margin-left: 5px;">${_item.item_number!}箱</span></span>
  55. </span>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. ##}
  61. </div>
  62. <div class="tip_title">商品价格信息</div>
  63. <div class="wells_row wells_row_notomargin">
  64. <div class="wells_item">
  65. <span class="wells_item_hd">商品小计</span>
  66. <span class="right_title">
  67. <div class="color_red">¥${orders.subtotal!}</div>
  68. </span>
  69. </div>
  70. <div class="wells_item">
  71. <span class="wells_item_hd">运费</span>
  72. <span class="right_title">
  73. <div class="color_red">¥${orders.freight_price!}</div>
  74. </span>
  75. </div>
  76. <div class="wells_item">
  77. <span class="wells_item_hd">总计</span>
  78. <span class="right_title">
  79. <div class="color_red">¥${orders.grand_total!}</div>
  80. </span>
  81. </div>
  82. <div class="wells_item">
  83. <span class="wells_item_hd">创建时间</span>
  84. <span class="right_title right_title_w100">${orders.create_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
  85. </div>
  86. ##if(orders.payment_date!=null && orders.payment_date!=""){
  87. <div class="wells_item">
  88. <span class="wells_item_hd">付款时间</span>
  89. <span class="right_title right_title_w100">${orders.payment_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
  90. </div>
  91. ##}
  92. ##if(orders.tracking_date!=null && orders.tracking_date!=""){
  93. <div class="wells_item">
  94. <span class="wells_item_hd">发货时间</span>
  95. <span class="right_title right_title_w100">${orders.tracking_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
  96. </div>
  97. ##}
  98. ##if(orders.received_date!=null && orders.received_date!=""){
  99. <div class="wells_item">
  100. <span class="wells_item_hd">确认收货时间</span>
  101. <span class="right_title right_title_w100">${orders.received_date!,dateFormat='yyyy-MM-dd HH:mm:ss'}</span>
  102. </div>
  103. ##}
  104. </div>
  105. ##if(orders.tracking_code!=null && orders.tracking_code!=""){
  106. <div class="tip_title">物流信息</div>
  107. <div class="wells_row wells_row_notomargin">
  108. <div class="wells_item">
  109. <span class="wells_item_hd">${orders.tracking_company!}</span>
  110. <span class="right_title right_title_w100">
  111. <a href="/wap/user/trackingMsg?code=${orders.code!}">${orders.tracking_code!}</a>
  112. </span>
  113. </div>
  114. </div>
  115. ##}
  116. ##if(orders.payment!=null && orders.payment!=""){
  117. <div class="tip_title">付款信息</div>
  118. ##if(orders.payment==1){
  119. <div class="wells_row wells_row_notomargin">
  120. <div class="wells_item">
  121. <span class="wells_item_hd">微信付款</span>
  122. </div>
  123. </div>
  124. ##}else if(orders.payment==2){
  125. <div class="wells_row wells_row_notomargin">
  126. <div class="wells_item">
  127. <span class="wells_item_hd">收款银行卡账号</span>
  128. <span class="right_title right_title_w100">${orders.to_bank_number!}</span>
  129. </div>
  130. <div class="wells_item">
  131. <span class="wells_item_hd">收款持有人姓名</span>
  132. <span class="right_title right_title_w100">${orders.to_bank_name!}</span>
  133. </div>
  134. <div class="wells_item">
  135. <span class="wells_item_hd">收款开户行</span>
  136. <span class="right_title right_title_w100">${orders.to_bank_type!}</span>
  137. </div>
  138. <div class="wells_item">
  139. <span class="wells_item_hd">收款开户支行</span>
  140. <span class="right_title right_title_w100">${orders.to_bank_address!}</span>
  141. </div>
  142. <div class="wells_item">
  143. <span class="wells_item_hd">转出银行卡账号</span>
  144. <span class="right_title right_title_w100">${orders.from_bank_number!}</span>
  145. </div>
  146. <div class="wells_item">
  147. <span class="wells_item_hd">转出持有人姓名</span>
  148. <span class="right_title right_title_w100">${orders.from_bank_name!}</span>
  149. </div>
  150. </div>
  151. ##}else{
  152. <div class="wells_row wells_row_notomargin">
  153. <div class="wells_item">
  154. <span class="wells_item_hd">支付宝付款</span>
  155. </div>
  156. </div>
  157. ##}
  158. ##}
  159. </div>
  160. ##if(orders.status==0){
  161. <div class="cart_bottom detail_bottom">
  162. <div class="cart_bottom_content">
  163. <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
  164. <a href="/wap/shop/payment?code=${orders.code!}" class="bottom_btn_list">立即支付</a>
  165. </div>
  166. </div>
  167. ##}else if(orders.status==1){
  168. <div class="cart_bottom detail_bottom">
  169. <div class="cart_bottom_content">
  170. <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
  171. </div>
  172. </div>
  173. ##}else if(orders.status==2){
  174. ##}else if(orders.status==3){
  175. <div class="cart_bottom detail_bottom">
  176. <div class="cart_bottom_content">
  177. <a href="/wap/user/trackingMsg?code=${orders.code!}" class="bottom_btn_list default">物流详情</a>
  178. <a href="javascript:reciveTracking('${orders.code!}')" class="bottom_btn_list">确认收货</a>
  179. </div>
  180. </div>
  181. ##}else if(orders.status==4){
  182. <div class="cart_bottom detail_bottom">
  183. <div class="cart_bottom_content">
  184. <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
  185. <a href="javascript:refund('${orders.code!}')" class="bottom_btn_list">申请退款</a>
  186. </div>
  187. </div>
  188. ##}else if(orders.status==5){
  189. <div class="cart_bottom detail_bottom">
  190. <div class="cart_bottom_content">
  191. <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
  192. </div>
  193. </div>
  194. ##}else{
  195. <div class="cart_bottom detail_bottom">
  196. <div class="cart_bottom_content">
  197. <a href="javascript:deleteOrders('${orders.code!}')" class="bottom_btn_list default">删除订单</a>
  198. </div>
  199. </div>
  200. ##}
  201. <a href="/wap" class="goback"><span>首页</span></a>
  202. <script>
  203. function deleteOrders(code){
  204. if(confirm("确定要删除该订单?")){
  205. $.post("/wap/user/deleteOrders",{code:code},function(data){
  206. alert(data.msg);
  207. if(data.success){
  208. window.location.href="/wap/user/orders";
  209. }
  210. });
  211. }
  212. }
  213. function reciveTracking(code){
  214. if(confirm("确定要确认收货?")){
  215. $.post("/wap/user/reciveTracking",{code:code},function(data){
  216. alert(data.msg);
  217. if(data.success){
  218. location.reload();
  219. }
  220. });
  221. }
  222. }
  223. function refund(code){
  224. if(confirm("确定要申请退款?")){
  225. $.post("/wap/user/refund",{code:code},function(data){
  226. alert(data.msg);
  227. if(data.success){
  228. location.reload();
  229. }
  230. });
  231. }
  232. }
  233. </script>
  234. ##}