fenmian.html 6.06 KB
 <div class="panel panel-default">
    <div class="panel-heading">
        <a class="netsale-position" href="javascript:;" name="position3"></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" id="sknfenmianWrap">
        
        
    </div>
    <div class="panel-body nopadding" id="fenmianWrap">
        
        
    </div>
    <div class="panel-footer">
        <button class="btn btn-primary" id="fenMainSave">保存</button>
    </div>
</div>

<script type="text/template" id="sknfenmianWrapTemp">
     <div class="form-group">
        <div class="fm-side col-sm-2">
             <div class="goods-img-left">
                <p></p>
                <table ><tr> <td>  推荐位默认图片 </td> </tr> </table>
            </div>
        </div>
        <ul class="col-sm-10 cover-image-list" style="padding: 0;margin: 0;" data-index="0">
            <li class="cover-image-item fileinput-button" data-index="0">
                <div class="goods-img">
                    <a class="fileinput-button-icon" href="javascript:void(0);"><img id="sknDefaultImg" src="[[sknDefaultImg]]" name="sknDefaultImg"></a>
                    <i class="remove-item-btn glyphicon glyphicon-remove-circle"></i>
                    <input type="file" id="sknDefaultImgFile" name="sknDefaultImg" value="[[sknDefaultImg]]" placeholder="推荐位默认图片" />
                </div>
                <div class="cover-color">
                    <a href="javascript:;" class="btn-use-img btn btn-default" data-productSkc="[[productSkn]]" data-index="[[index]]">调用图片</a>
                </div>
            </li>

        </ul>
    </div>
</script>

<script type="text/template" id="fenmianTemp">
[[each goodsList as item index]]
    <div class="form-group">
        <div class="cover-color" style="text-align: left; margin-left: 10px">颜色封面:</div>
        <div class="fm-side col-sm-2">
             <div class="goods-img-left">
                <p>SKC: [[item.productSkc]]</p>
                <p>[[item.goodsName]]</p>
                <p>[[item.factoryGoodsName || '']]</p>
              <table ><tr>
                <td valign='top'>SKU:</td><td></td></tr>
                <tr><td>
                 [[each item.goodsSizeList as item2 index2]]
                 [[item2.productSku || '']]&nbsp;
                 [[if index2%2==0]] </td><td>[[/if]]
                 [[if index2%2==1]] </td></tr><tr><td>[[/if]]
                 [[/each]]</td>
                </tr></table>
            </div>
        </div>
        <ul class="cover-image-list col-sm-10 image_index_class" style="padding: 0;margin: 0;" data-index=[[index]]>
            [[each item.goodsImagesList as _item _index]]
            <li class="cover-image-item fileinput-button" data-index=[[_index]]>
                <div class="goods-img">
                   <a class="fileinput-button-icon" href="javascript:void(0);"><img src="[[_item.imageUrl]]"></a>
                   <i class="remove-item-btn glyphicon glyphicon-remove-circle"></i>
                </div>
                <div class="cover-color" style="line-height: 26px; height: 52px;">        
                    [[if _item.isDefault=="Y"]]
                        <a href="javascript:;" class="btn btn-default btn-metro info" data-i="0">默认</a>
                    [[else]]                    
                        <a href="javascript:;" class="btn btn-default btn-metro" data-i="0">默认</a>
                    [[/if]]

                    [[if gender==1||gender==3]]
                    [[if _item.genderCover==1||_item.genderCover==3]]
                        <a href="javascript:;" class="btn btn-default btn-metro info" data-i="1">男封</a>
                    [[else]]
                        <a href="javascript:;" class="btn btn-default btn-metro" data-i="1">男封</a>
                    [[/if]]
                    [[/if]]

                    [[if gender==2||gender==3]]
                    [[if _item.genderCover==2||_item.genderCover==3]]
                        <a href="javascript:;" class="btn btn-default btn-metro info" data-i="2">女封</a>
                    [[else]]
                        <a href="javascript:;" class="btn btn-default btn-metro" data-i="2">女封</a>
                    [[/if]]
                    [[/if]]
                    [[if _item.vedioUrlId && _item.vedioUrlId != ""]]
                        <a href="javascript:;" class="btn-use-vedio btn btn-default info" data-index="[[_index]]" data-skcIndex="[[index]]" data-productSkc="[[item.productSkc]]" data-vedioId="[[_item.vedioUrlId]]">调用视频</a>
                    [[else]]                    
                        <a href="javascript:;" class="btn-use-vedio btn btn-default " data-index="[[_index]]" data-skcIndex="[[index]]" data-productSkc="[[item.productSkc]]">调用视频</a>
                    [[/if]]                
                </div>
            </li>
            [[/each]]
            <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 fenmianfile" name="fenmianfile" data-index=[[index]]  multiple="true">
                </div>
            </li>    
        </ul>
    </div>
    <div class="form-group">
        <div class="fm-side col-sm-2">商品封面:</div>
        <div class="cover-goods col-sm-10">
            [[if item.isDefault=="Y"]]
            <a href="javascript:;" class="btn-goods-cover btn btn-default info" data-index=[[index]]>设置默认</a>
            [[else]]
            <a href="javascript:;" class="btn-goods-cover btn btn-default" data-index=[[index]]>设置默认</a>
            [[/if]]
            <a href="javascript:;" class="btn-use-img btn btn-default" data-productSkc="[[item.productSkc]]" data-index="[[index]]">调用图片</a>
        </div>
    </div>
[[/each]]
</script>