Update soft.js

This commit is contained in:
midoks
2022-06-23 04:23:12 +08:00
parent f159cd9e5e
commit 6f456bfd7f
+4 -4
View File
@@ -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();
});