admin
2021-09-24 f788607ff771a47bc60d6a86e00b3433c40f3d2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<html lang="zh-cn">
 
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="referrer" content="never">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>缓存清除</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/maincontent.css" rel="stylesheet">
    <link href="css/tablestyle.css" rel="stylesheet">
    <style>
        .form-group {
            margin-bottom: 30px;
        }
 
        .checkbox input[type=checkbox] {
            top: 6px;
        }
 
        #dialog-chooselink select {
            width: 100px;
        }
 
        #dialog-chooselink label {
            display: inline;
        }
 
        #dialog-chooselink input[type=text] {
            display: inline;
            width: 500px;
        }
 
        #dialog-chooselink ul {
            display: block;
            list-style: none;
        }
 
        #dialog-chooselink ul li {
            display: inline;
            list-style: none;
            width: 33%;
            float: left;
        }
 
        #dialog-chooselink input[type=radio] {
            width: 20px;
            height: 20px;
        }
 
        #dialog-chooselink .search-result {
            height: 630px;
            overflow-y: scroll;
        }
    </style>
</head>
 
<body>
<nav class="navbar navbar-default navbar-fixed-top"></nav>
<div id="mainbody">
    <div id="sidebar">
        <dl>
        </dl>
    </div>
    <div id="neirong">
        <div class="erjidh">
            <ol class="breadcrumb">
                <li><a href="tuijian-lanmuneirong.html">广告</a></li>
                <li class="active">广告显示设置</li>
            </ol>
        </div>
        <form class="form-horizontal"
              style="width: 800px; margin-top: 10px;">
 
            <h4>设置正在上线版本号</h4>
 
            <div class="form-group">
                <label class="changdu1 control-label">缓存名称选择</label>
                <div class="col-sm-7">
                    <select class="form-control" id="cacheName">
                        <option value="">全部</option>
                        <option value="homeCache">首页缓存</option>
                        <option value="configCache">配置信息缓存</option>
                        <option value="classCache">分类缓存</option>
                        <option value="userCache">用户缓存</option>
                        <option value="attentionCache">关注缓存</option>
                        <option value="newsCache">新闻缓存</option>
                    </select>
                </div>
            </div>
 
            <div class="button0">
                <div class="button">
                    <button type="button" class="btn btn-primary clearCache">清除缓存</button>
                </div>
            </div>
        </form>
    </div>
</div>
 
<script src="//cdn.bootcss.com/jquery/1.10.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/nav.js"></script>
<script src="js/common.js"></script>
<script src="layer/layer.js"></script>
<script>
    $(function () {
        //设置版本
        $(".clearCache").click(
            function () {
                var cacheName = $("cacheName").val();
                $.post('/BuWan/admin/new/api/config/clearCache', {
                    cache: cacheName
                }, function (data) {
                    if (data.code == 0) {
                        alert("清除成功")
                    }
                }, 'json');
            });
    });
</script>
 
</body>
 
</html>