ordersMsg.htm 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ##tlayout("wap/layout.htm",{head_title:"订单详情"}){
  2. <div class="body">
  3. <div class="address_top">
  4. ##if(user.take_name!=null && user.take_name!=""){
  5. <a href="/wap/user/address?type=1" class="address_top_a">
  6. <div class="address_inform">
  7. <div class="nameTel">
  8. <span>${user.take_name!}</span>
  9. <span>${user.take_phone!}</span>
  10. </div>
  11. <div class="address_content">
  12. <span>${user.take_area_msg!}</span>
  13. <span style="margin-left: 5px;">${user.take_address!}</span>
  14. <span style="margin-left: 10px;">${user.take_post_code!}</span>
  15. </div>
  16. </div>
  17. <div class="after_right"></div>
  18. </a>
  19. ##}else{
  20. <a href="/wap/user/address?type=1" class="address_top_a">
  21. <div class="left">
  22. <img src="/wap/image/add_address_icon.jpg" />
  23. <span>添加地址</span>
  24. </div>
  25. <div class="after_right"></div>
  26. </a>
  27. ##}
  28. </div>
  29. <div class="goods_detail_wrap">
  30. ##for(_item in cart_list){
  31. <div class="goods_items">
  32. <div class="goods_items_base">
  33. <div class="goods_items_img" style="background-image:url(${_item.diy_img_url!})"></div>
  34. <div class="goods_items_content">
  35. <h3>${_item.diy_title!}</h3>
  36. <div class="goods_peice_wrap" style="margin: 0px;height: 20px;overflow: hidden;line-height: 20px;">${_item.diy_remark!}</div>
  37. <div class="goods_peice_wrap" style="margin: 0px;height: 20px;overflow: hidden;line-height: 20px;">${_item.bottle_title!}&nbsp;|&nbsp;${_item.bottle_type_title!}</div>
  38. <div class="goods_peice_wrap" style="margin: 0px;">
  39. <span class="price">¥${_item.bottle_price!}</span>
  40. <span class="goods_number goods_number_one">
  41. <span class="color_red">×<span style="margin-left: 5px;">${_item.cart_number!}箱</span></span>
  42. </span>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. ##}
  48. </div>
  49. <form method="post" action="/wap/shop/createOrders" id="submit_form">
  50. <div class="tip_title">发票信息/订单备注</div>
  51. <div class="wells_row wells_row_notomargin" style="margin-bottom: 0;">
  52. <div class="wells_item wells_item_input">
  53. <span class="wells_item_hd wells_item_hd_w5">发票抬头</span>
  54. <span class="right_title right_title_w100">
  55. <input type="text" class="weui_input" name="invoice_name" name="bank_number" placeholder="请输入发票抬头" />
  56. </span>
  57. </div>
  58. <div class="wells_item wells_item_input">
  59. <span class="wells_item_hd wells_item_hd_w5">发票税号</span>
  60. <span class="right_title right_title_w100">
  61. <input type="text" class="weui_input" name="invoice_number" placeholder="请输入发票税号" />
  62. </span>
  63. </div>
  64. <div class="wells_item wells_item_input">
  65. <span class="wells_item_hd wells_item_hd_w5">订单备注</span>
  66. <span class="right_title right_title_w100">
  67. <textarea class="weui_input" name="remark" placeholder="请输入订单备注" style="height: 45px;"></textarea>
  68. </span>
  69. </div>
  70. </div>
  71. </form>
  72. <div class="tip_title">商品价格信息</div>
  73. <div class="wells_row wells_row_notomargin">
  74. <div class="wells_item">
  75. <span class="wells_item_hd">商品小计</span>
  76. <span class="right_title">
  77. <div class="color_red">¥${subtotal!}</div>
  78. </span>
  79. </div>
  80. <div class="wells_item">
  81. <span class="wells_item_hd">运费</span>
  82. <span class="right_title">
  83. <div class="color_red">¥${freight_price!}</div>
  84. </span>
  85. </div>
  86. <div class="wells_item">
  87. <span class="wells_item_hd">总计</span>
  88. <span class="right_title">
  89. <div class="color_red">¥${grand_total!}</div>
  90. </span>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="cart_bottom detail_bottom">
  95. <div class="cart_bottom_content">
  96. <span class="total_price">总计:<span class="color_red">¥${grand_total!}</span></span>
  97. <a href="javascript:void(0)" onclick="createOrders()" class="go_link">创建订单</a>
  98. </div>
  99. </div>
  100. <script>
  101. var new_post=1;
  102. function createOrders(){
  103. if(new_post==1){
  104. new_post=0;
  105. $('#submit_form').ajaxSubmit({
  106. success: function(data){
  107. alert(data.msg);
  108. if(data.success){
  109. window.location.href="/wap/shop/payment?code=" + data.code;
  110. }
  111. }
  112. });
  113. }
  114. }
  115. </script>
  116. ##}