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

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-body" style="padding-bottom: 0">
            <a class="btn btn-success" id="addAppVersion"><i class="fa fa-plus"></i> 添加商家端app包</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input type="text" id="appVersion" class="form-control" placeholder="app版本">
                </div>
                <div class="panel-col">
                    <select name="platform" id="clientType" tabindex="-1"
                            class="form-control select2-offscreen brandBtn-group">
                        <option value="" selected="">安装包类型</option>
                        <option value="iphone">IOS手机</option>
                        <option value="ipad">IOS Pad</option>
                        <option value="android">安卓手机</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 id="list-content"></div>
</div>

<script type="text/template" id="template">
    <div class="row" id="base-form">
        <div class="form-group">
            <label class="col-sm-2 control-label">app版本</label>
            <div class="col-sm-8">
                <input type="text" value="[[appVersion]]" class="form-control observe" data-field="appVersion"
                       prompt="app版本" placeholder="请填写版本" required>
            </div>
        </div><!-- form-group -->

        <div class="form-group">
            <label class="col-sm-2 control-label">安装包类型</label>
            <div class="col-sm-8">
                <select name="platform" id="types" tabindex="-1"
                        class="form-control select2-offscreen brandBtn-group observe" data-field="clientType"
                        value="[[clientType]]" required>
                    <option value="" selected="">请选择类型</option>
                    <option value="iphone">IOS手机</option>
                    <option value="ipad">IOS Pad</option>
                    <option value="android">安卓手机</option>
                </select>
            </div>
        </div><!-- form-group -->

        <div class="form-group">
            <label class="col-sm-2 control-label">url地址</label>
            <div class="col-sm-6">
                <input id="url" class="form-control" value="[[url]]" type="text" disabled="disabled"
                       style="cursor:default" required prompt="app文件">
            </div>
            <div class="col-sm-4" style="position: relative">
                <input id="appFile" name="appFile" class="btn btn-default excel-upload" type="file"
                       style="position: absolute; top: 0;left: 0;">
                <div id="fileBtn" class="file-name btn btn-default">请选择文件</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">提醒内容</label>
            <div class="col-sm-8">
                <textarea name="content" class="form-control observe" data-field="content" required prompt="提醒内容">[[content]]</textarea>
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-8">
                <label style="cursor: pointer;"><input style="width: 15px;height: 15px" type="radio" name="status"
                                                       value="0" checked>关闭</label>
                <label style="cursor: pointer;"><input style="width: 15px;height: 15px" type="radio" name="status"
                                                       value="1">开启</label>
            </div>
            <input type="hidden" id="status" value="[[status||0]]" for="radio"/>
        </div><!-- form-group -->
    </div>
</script>