<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
    <div class="marauto" style="margin :6px auto;width: 800px;font-size: 14px;">
        <div class="">
            <div class="main_middle">
                <form method="post" action="<?php echo mvc::$cfg['ADMIN_URI'];?>pjlShop/yaoQingCheckTiXian" id="checkTiXian-form">
                    <input type="hidden" name="mow_id" value="<?php echo $desArr['mow_id'];?>">
                    <input type="hidden" name="mow_u_id" value="<?php echo $desArr['mow_u_id'];?>">
                    <table class="table table-bordered">
                        <tbody>
                        <tr>
                            <th width="100px" class="right">申请人</th>
                            <td><?php echo $user['u_name'];?></td>
                        </tr>
                        <tr>
                            <th width="100px" class="right">收款人</th>
                            <td><?php echo $desArr['jsonArr']['uac_name'];?></td>
                        </tr>
                        <tr>
                            <th width="100px" class="right">当前状态</th>
                            <td>
                                <?php if($desArr['mow_status'] == 1): ?>
                                   已完成
                                <?php elseif($desArr['mow_status'] == -1):?>
                                   已关闭
                                <?php else: ?>
                                    <label class="status-label">
                                        <input  type="radio" checked name="mow_status" value="-1">已关闭
                                    </label>
                                <?php endif; ?>
                            </td>
                        </tr>
                        <tr>
                            <th width="100px" class="right">申请时间</th>
                            <td><?php echo date('Y-m-d H:i:s',$desArr['mow_atime']);?></td>
                        </tr>
                        <?php if(!empty($desArr['mow_close_time'])){?>
                            <tr>
                                <th width="100px" class="right">关闭时间</th>
                                <td><?php echo $desArr['mow_close_time']?date('Y-m-d H:i:s',$desArr['mow_close_time']):'';?></td>
                            </tr>
                        <?php }?>
                        <tr>
                            <th width="100px" class="right">提现金额</th>
                            <td><?php echo sprintf('%.2f',$desArr['mow_money']);?></td>
                        </tr>
<!--                        <tr>-->
<!--                            <th width="100px" class="right">到账金额</th>-->
<!--                            <td>--><?php //echo sprintf('%.2f',$desArr['mow_real_money']);?><!--</td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <th width="100px" class="right">扣除手续费</th>-->
<!--                            <td>--><?php //echo sprintf('%.2f',$desArr['mow_comm_money']);?><!--</td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <th width="100px" class="right">费率</th>-->
<!--                            <td>--><?php //echo $rate*100,'%';?><!--</td>-->
<!--                        </tr>-->

                        <tr>
                            <th width="100px" class="right">收款账号</th>
                            <td>
                                <ul>
                                    <?php if($desArr['jsonArr']['uac_type']==0){?>
                                        <li>
                                            <div class="floatl"><img src="<?php echo $desArr['jsonArrWetChat']['headimgurl'];?>" width="90"/></div>
                                            <div class="floatl">
<!--                                                <div class="mar5"><b>昵称：</b>--><?php //echo $desArr['jsonArrWetChat']['nickname'];?><!--</div>-->
                                                <div class="mar5"><b>微信号：</b><?php echo $desArr['jsonArr']['uac_name'];?></div>
<!--                                                <div class="mar5"><b>姓名：</b>--><?php //echo $desArr['jsonArr']['acb_name'];?><!--</div>-->
<!--                                                <div class="mar5"><b>身份证：</b>--><?php //echo $desArr['jsonArr']['acb_idcard'];?><!--</div>-->
                                            </div>
                                        </li>
                                    <?php }elseif($desArr['jsonArr']['uac_type']==1){?>
                                        <li>
                                            <div class="floatl">
                                                <div class="mar5"><b>支付宝账号：</b><?php echo $desArr['jsonArr']['acc_alipay_account'];?></div>
                                                <div class="mar5"><b>姓名：</b><?php echo $desArr['jsonArr']['acb_name'];?></div>
                                                <div class="mar5"><b>身份证：</b><?php echo $desArr['jsonArr']['acb_idcard'];?></div>
                                            </div>
                                        </li>
                                    <?php }elseif($desArr['jsonArr']['uac_type']==2){?>
                                        <li>
                                            <div class="floatl">
                                                <div class="mar5"><b>名称：</b><?php echo $desArr['jsonArr']['uac_bank_name'];?></div>
                                                <div class="mar5"><b>支行：</b><?php echo $desArr['jsonArr']['uac_bank_open'];?></div>
                                                <div class="mar5"><b>账号：</b><?php echo $desArr['jsonArr']['uac_bank_card'];?></div>
                                                <div class="mar5"><b>姓名：</b><?php echo $desArr['jsonArr']['uac_name'];?></div>
                                            </div>
                                        </li>
                                    <?php }?>
                                    <ul>
                            </td>
                        </tr>
                        <?php if(!empty($desArr['mow_check_uname'])){?>
                            <tr>
                                <th width="100px" class="right">审核人</th>
                                <td><?php echo $desArr['mow_check_uname'];?></td>
                            </tr>
                        <?php }?>
                        <tr>
                            <th width="100px" class="right">审核备注</th>
                            <td>
                                <?php if($desArr['mow_status']==0){?>
                                    <textarea class="form-control" id="ctr_remark" rows="5" cols="100" name="mow_ramark"><?php echo $desArr['mow_check_remark'];?></textarea>
                                <?php }else{?>
                                    <?php echo $desArr['mow_check_remark'];?>
                                <?php }?>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
                <?php if($desArr['mow_status']==0){?>
                    <div class="center confirm-btn"  style="width: 100%;">
                        <input type="submit" id="checkTiXian-btn" class="btn btn-danger" value="确认审核">
                    </div>

                <?php }?>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $('#checkTiXian-btn').click(function(){
                var isEmpty = $('#ctr_remark').val();
                if(!isEmpty){
                    MESSAGE.alert('备注不能为空');
                    return false;
                }
                $('#checkTiXian-form').submit();
            });
        });
    </script>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
