| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- {extend name="layout/content" /}
- {block name="header"}
- <title>安卓SDK版本配置表</title>
- <link rel="stylesheet" href="__STATIC__/css/admin/bootstrap.min.css">
- <style>
- .layui-form-item .layui-input-inline {
- float: none;
- margin-left: 10px;
- }
- .view_content{
- cursor: pointer;
- }
- </style>
- {/block}
- {block name="content"}
- <div class="x-body">
-
- <form class="layui-form">
- <div style="float:left">
- <a href="{:url('setting/sdkAdd')}" class="layui-btn "><i class="layui-icon"></i>新增SDK</a>
- </div>
- <div style="float: right;">
- <div class="layui-inline">
- <label>SDK版本号:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="version" value="{$Request.get.version}" autocomplete="off" placeholder="请输入版本号">
- </div>
- </div>
- <div class="layui-inline">
- <button class="layui-btn layui-btn-radius" lay-submit>查询</button>
- </div>
- </div>
- <table class="layui-table">
- <thead>
- <tr>
- <th>ID</th>
- <th>版本号</th>
- <th>构造号</th>
- <th>文件地址</th>
- <th>更新内容</th>
- <th>编辑时间</th>
- <th>创建时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
-
- {volist name="list" id="vo"}
- <tr>
- <td>{$vo.id}</td>
- <td>{$vo.version}</td>
- <td>{$vo.num}</td>
- <td>{if condition="$vo.filename" }{$Think.STATIC_DOMAIN}{$vo.filename}{else}-{/if}</td>
- <!-- <td class="view_content" data-content="{$vo.content}">查看内容</td> -->
- <td>{$vo.content}</td>
- <td>{$vo.update_time|date='Y-m-d H:i:s',###}</td>
- <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
- <td class="td-manage">
- <a href="{:url('sdkedit',['id'=>$vo.id])}" class="layui-btn layui-btn-sm"><i class="layui-icon"></i>编辑</a>
- </td>
- </tr>
- {/volist}
- {empty name="list"}
- <tr>
- <td colspan="8">暂无数据</td>
- </tr>
- {/empty}
- </tbody>
- </table>
-
-
- <div class="pager-container" style="margin-top:10px;">
- <span>{$list->total()}条记录</span>
- {$page}
- <div class="layui-inline" style="margin:0;margin-left:10px;width:80px;">
- <input type="text" style="height: 30px;" class="layui-input" placeholder="跳转至" name="page" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
- </div>
- </div>
- </form>
-
-
-
- </div>
- {/block}
- {block name="footer"}
- <script>
- /*更新SDK*/
- function update_sdk(obj, url) {
- layer.confirm('确定要更新吗?', {shade: 0.4}, function (index) {
- $.getJSON(url, function (res) {
- if (res.code) {
- layer.msg(res.msg, {
- icon: 1,
- shade: 0.4,
- time: 1000
- }, function () {
- location.href = res.url;
- });
- } else {
- layer.msg(res.msg, {
- icon: 1,
- shade: 0.4,
- time: 1000
- });
- }
- });
- });
- }
- $('.view_content').on('click', function () {
- var _content = $(this).data('content');
- if (! _content.length) {
- _content = '无更新内容';
- }
- layer.open({
- title: '更新内容'
- ,content: _content
- });
- });
- </script>
- {/block}
|