Module.html 1.99 KB
<!-- 店铺模块定义 -->
<!-- 店铺店招模块 -->
<script type="text/template" id="app-shop-banner">
    <button class="btn btn-info">上传店铺店招</button>
</script>

<!-- 轮播图模块 -->
<script type="text/template" id="app-pic-carousel">
    <button class="btn btn-info">添加一行</button>
    <table class="table table-hover table-bordered responsive dataTable no-footer">
        <thead>
            <tr>
                <th></th>
                <th>图片</th>
                <th>关联类型</th>
                <th>关联到</th>
            </tr>
        </thead>
        <tbody>
            [[each module.data as item index]]
            <tr>
                <td><button class="btn btn-xs">+</button></td>
                <td><input type="text" class="form-control input-form" value="[[item.pic]]"></td>
                <td>
                    <select name="linkType" class="linkType form-control" value="[[item.linkType]]">
                        <option value="0">商品分类</option>
                        <option value="1">SKN</option>
                        <option value="2">自定义</option>
                    </select>
                </td>
                <td>
                    [[if item.linkType == '0']]
                        <select name="linkResource" class="linkResource form-control" value="[[item.resource]]">
                            <option value="-1">请选择商品分类</option>
                        </select>
                    [[else if item.linkType == '1']]
                        <input type="text" class="form-control input-form linkResource" value="[[item.resource]]" placeholder="请输入商品SKN">
                    [[else if item.linkType == '2']]
                        <input type="text" name="linkResource" value="[[item.resource]]" class="form-control input-form linkResource" placeholder="请输入内网地址">
                    [[/if]]
                </td>
            </tr>
            [[/each]]
        </tbody>
    </table>
</script>