Index.html 5.57 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-body" style="padding-bottom: 0">
            <a id="add-btn" href="javascript:;" class="btn btn-success"><i class="fa fa-plus"></i> 添加品牌关系</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <select id="g-brandId" class="form-control">
                        <option value="-1">全部品牌</option>
                    </select>
                </div>

                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="" class="btn btn-info">全部</a>
                </div>

            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
            <div class="dataTables_length" id="basicTable">
            </div>
            <nav>
                <ul id="pagination" class="pagination pagination-lg"></ul>
            </nav>
        </div>
    </div>
</div>


<script type="text/template" id="template">

   <div id="templete-top">
       <input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
       <div class="form-group">
           <label for="brandId" class="col-sm-2 control-label">品牌名称<font color="#ff0000"> *</font>:</label>

           <div class="col-sm-10">
               <select required="required" id="brandId" value="[[brandId]]" class="form-control">
                   <option value="[[brandId||-1]]">[[brandName||"请选择"]]</option>
               </select>
           </div>
       </div>


       <div class="form-group">
           <label class="col-sm-2 control-label">类型 <span style="color: #ff0000" class="asterisk"> *</span>:</label>
           <div class="col-sm-9">
               <input for="radio" type="hidden" id="brandType" value="[[brandType]]"/>
               <div class="rdio rdio-primary">
                   <input type="radio" id="int_new" value="1" name="brandType" required="">
                   <label for="int_new">新品</label>
               </div><!-- rdio -->
               <div class="rdio rdio-primary">
                   <input type="radio" value="2" id="int_sale" name="brandType">
                   <label for="int_sale">折扣</label>
                   <select class="form-control" name="discount" id="discount" value="[[discount]]" style="display:none;margin-left: 10px">
                       <option value="0">请选择</option>
                       <option value="1">1</option>
                       <option value="2">2</option>
                       <option value="3">3</option>
                       <option value="4">4</option>
                       <option value="5">5</option>
                       <option value="6">6</option>
                       <option value="7">7</option>
                       <option value="8">8</option>
                       <option value="9">9</option>
                   </select>
               </div><!-- rdio -->

               <div class="rdio rdio-primary">
                   <input type="radio" value="3" id="int_recommend" name="brandType">
                   <label for="int_recommend">推荐</label>
               </div><!-- rdio -->

               <div class="rdio rdio-primary">
                   <input type="radio" value="4" id="int_activity" name="brandType">
                   <label for="int_activity">活动</label>
               </div><!-- rdio -->
               <label id="genderError" class="error"></label>
           </div>

       </div>

       <div class="form-group" id="activity-name"  style="">
           <label class="col-sm-2 control-label">活动名称<span style="color: #ff0000" class="asterisk"> *</span>:</label>
           <div class="col-sm-9">
               <input type="text" id="activityName" name="activityName" value="[[activityName]]" class="form-control" placeholder="请填写活动名称" value="">

           </div>
       </div>
   </div>

    <div id="activity">
        <div class="form-group" style="" id="activity_url">
            <label class="col-sm-2 control-label">活动图片<span style="color: #ff0000" class="asterisk"> *</span>:</label>
            <div class="col-sm-9">
                <ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;">
                    <!-- 修改时不存在 -->
                    <li class="cover-image-item fileinput-button">
                        <div class="goods-img">
                            <a class="fileinput-button-icon" href="javascript:void(0);">+</a>
                            <input type="file" class="goods-img-upload picfile" id="picfile" name="picfile">
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="imgeUpload">
    [[each pictureBoList as _item _index]]
    <li class="cover-image-item image-list" data-index=[[_index]]>
        <div class="goods-img">
            <a class="fileinput-button-icon" href="javascript:void(0);">
                <img src="[[_item.replace(/(gif|png|jpg|jpeg)\?[^"]*/g,'$1')]]">
            </a>
            <i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="[[_index]]"></i>
        </div>
    </li>
    [[/each]]
</script>