123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- {include file="../application/h5/view/wx_book_dinner/header.html"}
- <div class="weui-header bg-blue">
- <div class="weui-header-left"> <a class="icon icon-109 f-white" href="{:url('cart')}">返回</a> </div>
- <h1 class="weui-header-title">订单详情</h1>
- <div class="weui-header-right"></div>
- </div>
- <form id="form" action="submitorder?orders={$ids}" method="post" class="ajax-form-order">
- <div class="weui_cells_title">所属机构</div>
- <div class="weui_cells">
- <div class="weui_cell" style="background-color: #ccc;">
- <div class="weui_cell_bd weui_cell_primary">
- <div class="weui_input" type="readonly" >{$HospitalName}</div>
- </div>
- </div>
- </div>
- <div class="weui_cells_title">联系方式</div>
- <div class="weui_cells weui_cells_form">
- <div class="weui_cell">
- <div class="weui_cell_hd"><label class="weui_label">姓名<i style="color:red;">*</i></label></div>
- <div class="weui_cell_bd weui_cell_primary">
- <input class="weui_input" name="name" type="text" value="{$name}" placeholder="请输入姓名">
- </div>
- </div>
- <div class="weui_cell">
- <div class="weui_cell_hd"><label class="weui_label">手机号<i style="color:red;">*</i></label></div>
- <div class="weui_cell_bd weui_cell_primary">
- <input class="weui_input" type="number" name='mobile' value="{$phone}" pattern="[0-9]*" placeholder="请输入号码">
- </div>
- </div>
- </div>
- <div class="weui_cells_title">收货地址<i style="color:red;">*</i></div>
- <div class="weui_cells">
- <div class="weui_cell">
- <div class="weui_cell_bd weui_cell_primary">
- <textarea id="textarea" readonly class="weui_textarea" name="address" placeholder="请输入“{$HospitalName}”里的具体位置" rows="3">{$address}</textarea>
- </div>
- </div>
- </div>
- <div class="weui_cells_title">床号及备注<i style="color:red;">*</i></div>
- <div class="weui_cells">
- <div class="weui_cell">
- <div class="weui_cell_bd weui_cell_primary">
- <textarea id="textarea" class="weui_textarea" name="remark" placeholder="请输入床号及备注信息(最多15字)" rows="3"></textarea>
- </div>
- </div>
- </div>
- <div class="weui_cells_title"></div>
- <div class="weui-form-preview">
- <div class="weui-form-preview-hd">
- <label class="weui-form-preview-label">付款总金额</label>
- <em class="weui-form-preview-value">¥{$count}</em>
- </div>
- <div class="weui-form-preview-bd">
- {foreach $list as $key => $value}
- <p>
- <label class="weui-form-preview-label">{$value.name}
- x{$value.count}</label>
- <span class="weui-form-preview-value">¥{$value.money}</span>
- </p>
- {/foreach}
- </div>
- </div>
- {if !$is_pay}
- <input type="hidden" name="order_type" value="4">
- {else}
- {if $bDinder}
- {include file="../application/h5/view/wx_book_dinner/pay_type.html"}
- {/if}
- {/if}
- <div class="page-bd">
- <div class="weui_cells_title">是否自取</div>
- <div class="weui_cells weui_cells_radio">
- <label class="weui_cell weui_check_label" for="x15">
- <div class="weui_cell_bd weui_cell_primary">
- <p>否</p>
- </div>
- <div class="weui_cell_ft">
- <input type="radio" class="weui_check" name="is_take" id="x15" value="0" checked="checked">
- <span class="weui_icon_checked"></span>
- </div>
- </label>
- <label class="weui_cell weui_check_label" for="x16">
- <div class="weui_cell_bd weui_cell_primary">
- <p>是</p>
- </div>
- <div class="weui_cell_ft">
- <input type="radio" name="is_take" class="weui_check" id="x16" value="1">
- <span class="weui_icon_checked"></span>
- </div>
- </label>
- </div>
- </div>
- <div class="weui_btn_area">
- <button id="formSubmitBtn" type="button" onclick="order()" class="weui_btn weui_btn_primary">提交订单</button>
- </div>
- <div style="height: 30px;"/>
- </form>
- <script type="text/javascript">
- $(document).ready(function () {
- //提交数据
- $('.ajax-form-order').ajaxSubmit(function(result){
- if(result.code ==1){
- $.toptips(result.message,'warning');
- }else{
- window.location.href = result.url;
- }
- return false;
- });
- });
- function add() {
- $.post('submitorder?orders={$ids}',$('.ajax-form-order').serialize(),function (result) {
- if(result.code ==1){
- $.toptips(result.message,'warning');
- }else{
- window.location.href = result.data.url;
- }
- },'json')
- }
- function order() {
- layer.open({
- content: '请仔细确认您的订单数量及金额。如需退单,仅可在下单当日申请,并联系餐厅人员审核,方可退款。'
- ,btn: ['确定', '取消']
- ,yes: function(index){
- layer.closeAll();
- add();
- }
- });
- }
- </script>
|