File size: 7,063 Bytes
08c964e | 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 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | {% extends "layout.html" %}
{% block content %}
<div class="main-content">
<div class="container-fluid" style="padding-bottom:54px">
<div class="pos-box bgw mtb15">
<div class="tab-list">
<div class="tabs-item active">{{data['lan']['H2']}}</div>
</div>
</div>
<div class="softbox bgw mtb15 radius4">
<div class="softlist">
<div class="soft-filter pd15">
<div class="row soft-filter-box">
<div class="col-md-12">
<span class="filter-title f14 c4">应用搜索</span>
<div class="soft-search">
<div class="records_search"
style="display:none;box-shadow: 4px 4px 8px rgba(0, 0, 0, .1), -4px -4px 8px rgba(0, 0, 0, .1);"
id="records_search">
<div class="records_search_item">
<div class="search_item_title">
<span style="font-size: 14px;color:#999" id="item_title_history">搜索历史</span>
</div>
<div class="search_item_body" id="historySearch"></div>
</div>
<div class="records_search_item" style="margin-top:20px">
<div class="search_item_title">
<span style="font-size: 14px;color:#999" id="item_title_hot"></span>
<div style="margin-left:5px"><img style="width:24px;height:12px" src="/static/images/hot.png">
</div>
</div>
<div class="search_item_body" id="hotsearch"></div>
</div>
<div class="records_search_item" style="margin-top:20px">
<div class="search_item_title">
<span style="font-size: 14px;color:#999" id="item_title_tendency"></span>
<div style="margin-left:5px"><img style="width:14px;height:14px" src="/static/images/hots.png">
</div>
</div>
<div class="search_item_body" id="tendency"></div>
</div>
</div>
<!-- <form target="hid" onsubmit='soft.get_list(1,0,$("#SearchValue").val())'> -->
<input type="text" id="SearchValue" class="ser-text pull-left" placeholder="支持应用名称、字段模糊搜索"
style="width:535px" autocomplete="off" />
<button type="button" class="ser-sub pull-left"
onclick='soft.get_list(1,0,$("#SearchValue").val())'></button>
<!-- </form> -->
<iframe name='hid' id="hid" style="display:none"></iframe>
</div>
</div>
</div>
<div class="row soft-filter-box" style="display: flex;align-items: center;">
<div class="col-md-12" style="display: flex;padding-right: 180px;align-items: center;">
<span class="filter-title f14 c4" style="flex: none;">应用分类</span>
<div class="menu-sub softtype"></div>
</div>
<button class="btn btn-default btn-sm" onclick="soft.flush_cache()" title="从云端更新列表" style="margin-right: 15px;">更新软件列表 / 支付状态</button>
</div>
</div>
<div class="divtable pd15 relative">
<div id="updata_pro_info"></div>
<div id="commonly_software" class="commonly_software"><div class="commonly_software_title">最近使用入口</div><div class="commonly_software_list"></div></div>
<table id="softList" class="table table-hover" width="100%" cellspacing="0" cellpadding="0" border="0"></table>
<div id='softPage' class="dataTables_paginate paging_bootstrap page"></div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
<script type="text/javascript" src="{{g.cdn_url}}/js/jquery.dragsort-0.5.2.min.js"></script>
<script type="text/javascript" src="{{g.cdn_url}}/laydate/laydate.js?version={{g['version']}}"></script>
<script type="text/javascript" src="{{g.cdn_url}}/js/soft.js?version={{g['version']}}&repair={{data['js_random']}}"></script>
<script type="text/javascript" src="{{g.cdn_url}}/editor/ace.js"></script>
<script type="text/javascript">
bt.set_cookie('sites_path', "{{session['config']['sites_path']}}");
bt.set_cookie('serverType', "{{session['webserver']}}");
bt.set_cookie('distribution', "{{session['config']['distribution']}}");
$(document).ready(function () {
soft.get_list();
soft.render_soft_recommend() // 渲染常用软件列表
$('#SearchValue').keyup(function (e) {
if (e.keyCode == 13) {
$('#records_search').css('opacity', '0');
setTimeout(function () {
$('#records_search').css('display', 'none');
}, 80);
soft.get_list(1,0,$("#SearchValue").val())
}
});
});
</script>
<style>
#kf_fixed .layui-layer-TipsG1 {
width: 15px !important;
height: 15px !important;
transform: rotate(45deg);
border-color: rgb(232 246 235) !important;
z-index: 0;
}
#kf_fixed .layui-layer-TipsR:after {
position: absolute;
bottom: -2px;
left: -15px;
content: '';
width: 31px;
height: 50px;
background: #fff;
transform: rotate(45deg);
}
#SearchValue {
transition: all .3s;
}
.soft-search {
position: relative;
}
.records_search {
width: 576px;
opacity: 0;
background: #fff;
position: absolute;
z-index: 999;
top: 37px;
left: -1px;
transition: all .3s;
padding: 15px;
font-size: 12px
}
.search_item_title {
display: flex;
align-items: center;
}
.title_icon {
width: 31px;
height: 18px;
border: 1px solid #f64041;
color: #f64041;
border-radius: 2px;
font-size: 12px;
text-align: center;
margin-left: 10px
}
.title_icon_tendency {
width: 31px;
height: 18px;
border: 1px solid #0052d9;
color: #0052d9;
border-radius: 2px;
font-size: 12px;
text-align: center;
margin-left: 5px
}
.search_item_body {
display: flex;
flex-direction: row;
justify-content: start;
flex-wrap: wrap;
margin-top: 17px;
font-size: 14px;
line-height: 33px;
}
.body_item {
cursor: pointer;
}
.body_item:hover {
color: #20A53A;
background: #F1F9F3;
border-radius: 3px
}
.item_box:hover{
color: #20A53A;
background: #F1F9F3;
border-radius: 3px
}
.body_item {
margin-right: 10px
}
.bt-checkbox, .bt-checkbox-all {
height: 18px;
width: 18px;
border: 1px solid #ccc;
border-radius: 2px;
margin-right: 8px;
position: relative;
}
.bt-checkbox.active{
background-color: #20a53a;
border-color: #20a53a;
}
.bt-checkbox.active::after{
content: '';
display: block;
width: 11px;
height: 5.5px;
transform: rotate(-45deg);
border-bottom: 2px solid #fff;
border-left: 2px solid #fff;
margin: 3px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -5px;
margin-top: -4px;
}
input[type="radio"]+label::before {
content: " ";
display: inline-block;
vertical-align: middle;
width: 13px;
height: 13px;
border-radius: 50%;
border: 1px solid #999999;
margin-right: 0.2rem;
box-sizing: border-box;
margin-top: -0.1rem;
}
input[type="radio"]:checked+label::before {
background-color: rgb(32, 165, 58);
background-clip: content-box;
border: 1px solid rgb(32, 165, 58);
padding: 0.1rem;
box-sizing: border-box;
}
input[type="radio"] {
position: absolute;
clip: rect(0, 0, 0, 0);
}
</style>
{% endblock %}
|