close-match.html 2.96 KB
<div class="panel panel-default">
    <form action="" class="form-horizontal form-bordered">
       <a class="netsale-position" href="javascript:;" name="position13"></a>
        <div class="panel-heading">
            <div class="panel-btns" style="display: none;">
                <a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
            </div>
            <h2 class="panel-title">搭配</h2>
        </div>
        <div class="panel-body nopadding">
            
            <div id="dapeiTable"></div>
        </div>
        <div class="panel-footer">
            <button class="btn btn-primary" id="dapeiadd">添加搭配</button>
            <!-- <button class="btn btn-primary" id="dapeisave">保存</button> -->
        </div>
    </form>
</div>

<script type="text/template" id="wqt-template1">
<div class="rows">
    <div class="form-group">
        <div class="col-sm-8">
            <div class="poseditimg">
                [[if imageUrl]]
                <img src="[[imageUrl]]">
                [[/if]]
                [[each infoStr as item __index]]
                    <div class="pos form-control" style="left:[[item.left]]px;top:[[item.top]]px;">
                        <input type="text" class="pos-text" data-index='[[__index]]' value="[[item.id]]" />
                        <span class="close" data-index='[[__index]]'>×</span>
                    </div>
                [[/each]]
            </div>
        </div>
        <div class="col-sm-4">
            <div class="rows" id="dapei-form">
                <div class="form-group">
                    <label for="endTime" class="col-sm-2 control-label"><i class="red">*</i> 介绍</label>
                    <div class="col-sm-10">
                        <input type="text" id="content" class="form-control panel-input hasDatepicker" placeholder="介绍" value="[[content]]" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="endTime" class="col-sm-2 control-label"><i class="red">*</i> 图片</label>
                    <div class="col-sm-10">
                        <input type="file" id="imageUrl" name="imageUrl" value="[[imageUrl]]" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="endTime" class="col-sm-2 control-label"><i class="red">*</i> 排序</label>
                    <div class="col-sm-10">
                     <input type="number" id="orderBy" class="form-control panel-input hasDatepicker" placeholder="排序" value="[[orderBy]]" required>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</script>

<script type="text/template" id="kapian">
    <div class="pos form-control">
        <input type="text" class="pos-text" data-index='[[__index]]' value="[[id]]" />
        <span class="close" data-index='[[__index]]'>×</span>
    </div>
</script>