close_match.html 3.12 KB
<div class="panel panel-default">
    <form action="" class="form-horizontal form-bordered">
       
        <div class="panel-heading">
            <a class="netsale-position" href="javascript:;" name="position13"></a>
            <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 info as item __index]]
                    <div class="pos form-control" style="left:[[item.left]]px;top:[[item.top]]px;">
                        <input type="text" maxlength="8" class="pos-text" data-index='[[__index]]' value="[[item.id]]" onkeyup="this.value=this.value.replace(/\D/gi,'')"/>
                        <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 class="control-label pull-left"><i class="red">*</i> 介绍</label>
                    <div class="pull-left" style="width: 160px;">
                        <input type="text" id="content" class="form-control panel-input hasDatepicker" placeholder="介绍" value="[[content]]" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label pull-left"><i class="red">*</i> 图片</label>
                    <div class="pull-left" style="width: 160px;">
                        <input type="file" id="imageUrl" name="imageUrl" value="[[imageUrl]]" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label pull-left"><i class="red">*</i> 排序</label>
                    <div class="pull-left" style="width: 160px;">
                     <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" maxlength="8" class="pos-text" data-index='[[__index]]' value="[[id]]" onkeyup="this.value=this.value.replace(/\D/gi,'')" />
        <span class="close" data-index='[[__index]]'>×</span>
    </div>
</script>