orderdetail.html 6.3 KB
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">订单信息详情</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('OrderEdit')}" method="post">
        <input type="hidden" name="id" value="{$info.id}">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">订单号</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.order_sn|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">商品名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.name|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">数量</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.num|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">下单时间</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{:date('Y-m-d H-i',$info.add_time)}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">消费积分数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.fee|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">收货人姓名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.delivery_name|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">收货人电话</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.delivery_tel|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">收货地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="{$info.delivery_address|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">订单状态</label>
                            <div class="col-md-6 col-sm-10">

                                <input type="text" class="form-control" readonly id="input-site-name"
                                       value="
 <switch name=" $info.status">
                                <case value="1">未支付</case>
                                <case value="2">已支付</case>
                                <case value="3">已完成</case>
                                </switch>
                                ">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">备注信息</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site-name" name="remark" value="{$info.remark|default=''}">
                            </div>
                        </div>
                        <input type="hidden" class="form-control" id="input-site-name" name="good_id" value="{$info.id}">

                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <!--<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">审核通过-->
                                    <!--</button>-->
                                    <button type="submit" class="btn btn-primary js-ajax-submit"
                                            data-action="{:url('orderEdit',['status'=>3])}" data-refresh="1">已完成
                                    </button>
                                </div>
                            </div>
                        <if condition="$info.status==0">
                        </if>

                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>