<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('会员订单详情')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-order-edit" th:object="${orderDetailsVo}">
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单状态：</label>
                <div class="col-sm-8" th:text="*{@dict.getLabel('zhengzai_member_order_status',adamMemberOrderVo.state)}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">价格：</label>
                <div class="col-sm-8">
                    <input name="pricePaid" th:field="*{adamMemberOrderVo.price}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">可用时间(天)：</label>
                <div class="col-sm-8">
                    <input name="days" th:field="*{adamMemberOrderVo.days}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单号：</label>
                <div class="col-sm-8">
                    <input name="orderNo" th:field="*{adamMemberOrderVo.orderNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生成时间：</label>
                <div class="col-sm-8">
                    <input name="createdAt" th:field="*{adamMemberOrderVo.createdAt}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">购买人手机号：</label>
                <div class="col-sm-8">
                    <input name="memberName" th:field="*{adamUser.mobile}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">版本：</label>
                <div class="col-sm-8">
                    <input name="version" th:field="*{adamMemberOrderVo.version}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">客户端：</label>
                <div class="col-sm-8">
                    <input name="source" th:field="*{adamMemberOrderVo.source}" class="form-control" type="text" readonly>
                </div>
            </div>
<!--            &lt;!&ndash; 会员卡信息&ndash;&gt;-->
            <div class="form-group">
                <label class="col-sm-3 control-label">会员卡ID：</label>
                <div class="col-sm-8">
                    <input name="memberNo" th:field="*{adamUserMemberVo.memberNo}" class="form-control" type="text" readonly>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">会员卡名称：</label>
                <div class="col-sm-8">
                    <input name="state" th:field="*{adamMemberOrderVo.memberName}" class="form-control" type="text" readonly>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">会员勋章：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="memberNo" th:field="*{adamMemberOrderVo.memberNo}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">会员头像：</label>
                <div class="col-sm-8">
                    <img class="img-circle img-lg" th:src="(*{#strings.isEmpty(adamUserInfoVo.avatar)}) ? @{/img/profile.jpg} : @{*{adamUserInfoVo.avatar}}" th:onerror="'this.src=\'' + @{'/img/profile.jpg'} + '\''">
                </div>
            </div>
<!--            &lt;!&ndash; 套餐信息&ndash;&gt;-->
            <div class="form-group">
                <label class="col-sm-3 control-label">用户生日：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <input th:value="*{adamMemberOrderVo.birthday}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">喜欢的音乐人：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="version" th:field="*{version}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "kylin/order";
        $("#form-order-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-order-edit').serialize());
            }
        }

        $("input[name='birthday']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='paymentAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='createdAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='updatedAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>