basic-info.html 6.26 KB
<div class="panel panel-default">
    <div class="panel-heading">
        <a href="javascript:;" name="position2" style="position: absolute;width: 100%;height: 100%;left: 0;top: -100%;"></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 id="basicInfoWrap" class="panel-body nopadding">
        <div id="basic-info"></div>
        <div id="goods-table"></div>
        <div id="product-ext"></div>
    </div>
    <div class="panel-footer">
        <a id="saveBasicInfo" href="javascript:;" class="btn btn-primary">保存文本</a>
    </div>
</div>

<script type="text/template" id="basicInfo">
    <div class="form-group">
        <blockquote>基本信息</blockquote>
    </div>
    <div class="form-group">
        <div class="col-sm-3">店铺:[[shopName]]</div>
        <div class="col-sm-3">品牌:[[brandName]]</div>
        <div class="col-sm-3">供应商:[[supplierName]]</div>
        <div class="col-sm-3">厂家编号:[[factoryCode]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">品类:</div>
        <div class="col-sm-3">货品年:[[goodsYears]]</div>
        <div class="col-sm-3">货品季:[[goodsSeason]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">SKN[[productSkn]]</div>
        <div class="col-sm-3">商品类型:[[attribute]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-1 height40">商品名称<i class="red">*</i>:</div>
        [[if renderType=='edit']]
        <div class="col-sm-8"><input id="productName" class="form-control" placeholder="基础商品名称" type="text" value="[[productName]]" required></div>
        <div class="col-sm-12" style="color: red;"><div class="col-sm-1"></div>建议名称:【品牌英文+性别+图案纹理+版型+风格+三级类目+商家款号+(款型)】,如此可增加商品在搜索页的展示。</div>
        [[else]]
        <div class="col-sm-8 height40">[[productName]]</div>
        [[/if]]
    </div>
    <div class="form-group">
        <div class="col-sm-12">商品话题:[[productTag]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">年龄层:[[ageLevel]]</div>
        <div class="col-sm-3">性别:[[gender]]</div>
        <div class="col-sm-3">重点款:[[grade]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">是否奥莱:[[isOutLets]]</div>
        <div class="col-sm-3">限量款:[[isLimited]]</div>
        <div class="col-sm-3">促销礼品:[[isPromotionalGifts]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">是否预售:[[isAdvance]]</div>
        <div class="col-sm-3" style="color: #ccc;">预售库存:[[stock]]</div>
        <div class="col-sm-3">预计到货时间:[[expectArrivalTime]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">是否限购:[[isLimitbuy]]</div>
        <div class="col-sm-3">适销季:[[seasons]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">吊牌价:[[retailPrice]]</div>
        <div class="col-sm-3">销售价:[[salesPrice]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">是否VIP</div>
        <div class="col-sm-3">预计上架时间:[[expectShelfTime]]</div>
    </div>
</script>

<script type="text/template" id="goodsList">
    <div class="form-group">
        <h5>能否补货</h5>
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>SKC(厂家颜色)</th>
                    <th>SKU(尺码)</th>
                    <th>能否补货</th>
                </tr>
            </thead>
            <tbody>
                [[each goodsList as item index]]
                <tr>
                    <td>[[item.productSkc]][[item.goodsName]]</td>
                    <td>
                        [[each item.goodsSizeList as b index]]
                        <p>[[b.productSku]][[b.sizeName]]<br></p>
                        [[/each]]
                    </td>
                    <td>
                        [[each item.goodsSizeList as b index]]
                            <p>[[b.isSuppled]]</br></p>
                        [[/each]]
                    </td>
                </tr>
                [[/each]]
            </tbody>
        </table>
    </div>
</script>

<script type="text/template" id="productExtBoTemp">
    <div class="form-group">
        <blockquote>上架必填</blockquote>
    </div>
    <div class="form-group">
        <div class="col-sm-1 height40">商品短评<i class="red">*</i>:</div>
        <div class="col-sm-8 height40">
            [[if renderType=='edit']]
            <input id="phrase" class="form-control" placeholder="商品短评" value="[[phrase]]" type="text" required>
            [[else]]
            <span>[[phrase]]</span>
            [[/if]]
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-6">
            <label>是否新品:</label>
            <label class="radio-inline"><input type="radio" name="isNew" value="Y"></label>
            <label class="radio-inline"><input type="radio" name="isNew" value="N"></label>
            <input id="isNew" type="hidden" value="[[isNew]]" for="radio">
        </div>
        <div class="col-sm-6">
            <label>上架渠道:</label>
            <label style="cursor: pointer;"><input type="checkbox" name="sellChannels" value="1">网站</label>
            <label style="cursor: pointer;"><input type="checkbox" name="sellChannels" value="2">手机</label>
            <label style="cursor: pointer;"><input type="checkbox" name="sellChannels" value="3">场地</label>
            <input id="sellChannels" value="[[sellChannels]]" type="hidden" for="checkbox">
        </div>

    </div>
    <div class="form-group">
        <div class="col-sm-12">下架时间:售罄
            [[if outSaleTime]]
            <input id="outSaleTime" value="[[outSaleTime]]" type="text" required>
            [[else]]
            <input id="outSaleTime" value="0" type="text" required>
            [[/if]]
        天下架</div>
    </div>
</script>