mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update soft.js
This commit is contained in:
@@ -33,7 +33,7 @@ function getSList(isdisplay) {
|
||||
var loadT = layer.msg('正在获取列表...', { icon: 16, time: 0, shade: [0.3, '#000'] })
|
||||
}
|
||||
if (!isdisplay || isdisplay === true)
|
||||
isdisplay = getCookie('p' + getCookie('softType'));
|
||||
isdisplay = getCookie('p' + getCookie('soft_type'));
|
||||
if (isdisplay == true || isdisplay == 'true') isdisplay = 1;
|
||||
|
||||
var search = $("#SearchValue").val();
|
||||
@@ -41,7 +41,7 @@ function getSList(isdisplay) {
|
||||
search = '&search=' + search;
|
||||
}
|
||||
var type = '';
|
||||
var istype = getCookie('softType');
|
||||
var istype = getCookie('soft_type');
|
||||
if (istype == 'undefined' || istype == 'null' || !istype) {
|
||||
istype = '0';
|
||||
}
|
||||
@@ -50,7 +50,7 @@ function getSList(isdisplay) {
|
||||
var page = '';
|
||||
if (isdisplay) {
|
||||
page = '&p=' + isdisplay;
|
||||
setCookie('p' + getCookie('softType'), isdisplay);
|
||||
setCookie('p' + getCookie('soft_type'), isdisplay);
|
||||
}
|
||||
|
||||
var condition = (search + type + page).slice(1);
|
||||
@@ -162,7 +162,7 @@ function getSList(isdisplay) {
|
||||
sBody += pBody;
|
||||
$("#softList").html(sBody);
|
||||
$(".menu-sub span").click(function() {
|
||||
setCookie('softType', $(this).attr('typeid'));
|
||||
setCookie('soft_type', $(this).attr('typeid'));
|
||||
$(this).addClass("on").siblings().removeClass("on");
|
||||
getSList();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user