12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- {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 close-popup close-pop" href="javascript:history.back(-1);">返回</a> </div>
- <h1 class="weui-header-title">退单选择</h1>
- <div class="weui-header-right"></div>
- </div>
- <form action="refuse?id={$id}" method="post" class="form ajax-form" role="form" style='padding: 10px;'>
- {if !empty($data['cartInfo'])}
- <div class="weui_cells_title">选择你要退的商品</div>
- <div class="weui_cells weui_cells_checkbox">
- {foreach $data['cartInfo'] as $key => $value}
- <label class="weui_cell weui_check_label" for="s_{$value.id}">
- <div class="weui_cell_hd">
- <input type="checkbox" class="weui_check" name="checkbox_{$value.id}" id="s_{$value.id}">
- <i class="weui_icon_checked"></i>
- </div>
- <div class="weui_cell_bd weui_cell_primary">
- <p>{$value.dinner_name}<span style="color: red;">(x{$value.num}份)</span></p>
- </div>
- </label>
- {/foreach}
- </div>
- <div class="submit-btn" style="margin-top: 60px;">
- <button type="button" class="weui_btn weui_btn_primary">提交</button>
- </div>
- {else}
- <div class="submit-btn" style="margin-top: 60px;">
- 当前订单商品已全部退单
- </div>
- {/if}
- </form>
- <script>
- $('.weui_btn').click(function () {
- $.post('refuse?id={$id}',$('.ajax-form').serialize(),function (result) {
- if(result.code ==1){
- $.toptips(result.message,'warning');
- }else{
- window.location.href = 'order';
- }
- },'json')
- })
- </script>
|