123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- ##tlayout("wap/layout.htm",{head_title:"订单详情"}){
- <div class="body">
- <div class="address_top">
- ##if(user.take_name!=null && user.take_name!=""){
- <a href="/wap/user/address?type=1" class="address_top_a">
- <div class="address_inform">
- <div class="nameTel">
- <span>${user.take_name!}</span>
- <span>${user.take_phone!}</span>
- </div>
- <div class="address_content">
- <span>${user.take_area_msg!}</span>
- <span style="margin-left: 5px;">${user.take_address!}</span>
- <span style="margin-left: 10px;">${user.take_post_code!}</span>
- </div>
- </div>
- <div class="after_right"></div>
- </a>
- ##}else{
- <a href="/wap/user/address?type=1" class="address_top_a">
- <div class="left">
- <img src="/wap/image/add_address_icon.jpg" />
- <span>添加地址</span>
- </div>
- <div class="after_right"></div>
- </a>
- ##}
- </div>
- <div class="goods_detail_wrap">
- ##for(_item in cart_list){
- <div class="goods_items">
- <div class="goods_items_base">
- <div class="goods_items_img" style="background-image:url(${_item.diy_img_url!})"></div>
- <div class="goods_items_content">
- <h3>${_item.diy_title!}</h3>
- <div class="goods_peice_wrap" style="margin: 0px;height: 20px;overflow: hidden;line-height: 20px;">${_item.diy_remark!}</div>
- <div class="goods_peice_wrap" style="margin: 0px;height: 20px;overflow: hidden;line-height: 20px;">${_item.bottle_title!} | ${_item.bottle_type_title!}</div>
- <div class="goods_peice_wrap" style="margin: 0px;">
- <span class="price">¥${_item.bottle_price!}</span>
- <span class="goods_number goods_number_one">
- <span class="color_red">×<span style="margin-left: 5px;">${_item.cart_number!}箱</span></span>
- </span>
- </div>
- </div>
- </div>
- </div>
- ##}
- </div>
- <form method="post" action="/wap/shop/createOrders" id="submit_form">
- <div class="tip_title">发票信息/订单备注</div>
- <div class="wells_row wells_row_notomargin" style="margin-bottom: 0;">
- <div class="wells_item wells_item_input">
- <span class="wells_item_hd wells_item_hd_w5">发票抬头</span>
- <span class="right_title right_title_w100">
- <input type="text" class="weui_input" name="invoice_name" name="bank_number" placeholder="请输入发票抬头" />
- </span>
- </div>
- <div class="wells_item wells_item_input">
- <span class="wells_item_hd wells_item_hd_w5">发票税号</span>
- <span class="right_title right_title_w100">
- <input type="text" class="weui_input" name="invoice_number" placeholder="请输入发票税号" />
- </span>
- </div>
- <div class="wells_item wells_item_input">
- <span class="wells_item_hd wells_item_hd_w5">订单备注</span>
- <span class="right_title right_title_w100">
- <textarea class="weui_input" name="remark" placeholder="请输入订单备注" style="height: 45px;"></textarea>
- </span>
- </div>
- </div>
- </form>
- <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">¥${subtotal!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">运费</span>
- <span class="right_title">
- <div class="color_red">¥${freight_price!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">总计</span>
- <span class="right_title">
- <div class="color_red">¥${grand_total!}</div>
- </span>
- </div>
- </div>
- </div>
- <div class="cart_bottom detail_bottom">
- <div class="cart_bottom_content">
- <span class="total_price">总计:<span class="color_red">¥${grand_total!}</span></span>
- <a href="javascript:void(0)" onclick="createOrders()" class="go_link">创建订单</a>
- </div>
- </div>
- <script>
- var new_post=1;
- function createOrders(){
-
- if(new_post==1){
- new_post=0;
- $('#submit_form').ajaxSubmit({
- success: function(data){
- alert(data.msg);
- if(data.success){
- window.location.href="/wap/shop/payment?code=" + data.code;
- }
- }
- });
- }
- }
- </script>
- ##}
|