|
|
@@ -348,6 +348,11 @@ function mainSearch(url, nameEn, slideDiv, needCustomFlag) {
|
|
|
str += '</tr>';
|
|
|
}
|
|
|
|
|
|
+ if (nameEn === 'watchlist') {
|
|
|
+ $(".apis-quiet-div-watchlist-detail").unbind("click");
|
|
|
+ $(".watchlistpreview-top-close").unbind("click");
|
|
|
+ }
|
|
|
+
|
|
|
$('#' + slideDiv).find(".contentTD").html(str);
|
|
|
|
|
|
initContentEvent();
|
|
|
@@ -375,17 +380,17 @@ function initContentEvent() {
|
|
|
}
|
|
|
|
|
|
$(".apis-quiet-div-watchlist-detail").click(function () {
|
|
|
- if ($("#bigpreview").css("display") === 'none') {
|
|
|
- $("#bigpreview").css("display", "block");
|
|
|
- } else if ($("#bigpreview").css("display") === 'block') {
|
|
|
- $("#bigpreview").css("display", "none");
|
|
|
+ if ($("#watchlistpreview").css("display") === 'none') {
|
|
|
+ $("#watchlistpreview").css("display", "block");
|
|
|
+ } else if ($("#watchlistpreview").css("display") === 'block') {
|
|
|
+ $("#watchlistpreview").css("display", "none");
|
|
|
}
|
|
|
|
|
|
- $("#bigpreview").find(".bigpreview-close").click(function () {
|
|
|
- if ($("#bigpreview").css("display") === 'none') {
|
|
|
- $("#bigpreview").css("display", "block");
|
|
|
- } else if ($("#bigpreview").css("display") === 'block') {
|
|
|
- $("#bigpreview").css("display", "none");
|
|
|
+ $(".watchlistpreview-top-close").click(function () {
|
|
|
+ if ($("#watchlistpreview").css("display") === 'none') {
|
|
|
+ $("#watchlistpreview").css("display", "block");
|
|
|
+ } else if ($("#watchlistpreview").css("display") === 'block') {
|
|
|
+ $("#watchlistpreview").css("display", "none");
|
|
|
}
|
|
|
$(this).unbind("click");
|
|
|
});
|
|
|
@@ -398,17 +403,17 @@ function initContentEvent() {
|
|
|
//请求成功时处理
|
|
|
if (data != null && $.trim(data) != "" && data.success) {
|
|
|
data = data.data;
|
|
|
- $(".bigpreview-content").html(data);
|
|
|
+ $(".watchlistpreview-content").html(data);
|
|
|
} else {
|
|
|
//alert(data.message);
|
|
|
}
|
|
|
},
|
|
|
beforeSend: function () {
|
|
|
- $(".bigpreview-content").html("");
|
|
|
- $(".bigpreview-loading").css("display", "block");
|
|
|
+ $(".watchlistpreview-content").html("");
|
|
|
+ $(".watchlistpreview-loading").css("display", "block");
|
|
|
},
|
|
|
complete: function () {
|
|
|
- $(".bigpreview-loading").css("display", "none");
|
|
|
+ $(".watchlistpreview-loading").css("display", "none");
|
|
|
},
|
|
|
error: function (data) {
|
|
|
//请求出错处理
|