|
@@ -676,6 +676,22 @@
|
|
|
selectCate = sessionStorage.getItem(userId + "_selectCate");
|
|
|
selectKeyword = sessionStorage.getItem(userId + "_selectKeyword");
|
|
|
selectNotice = sessionStorage.getItem(userId + "_selectNotice");
|
|
|
+
|
|
|
+ // 判断是否需要修改某个收藏的状态
|
|
|
+ var listCollSessionId = sessionStorage.getItem('listCollSessionId')
|
|
|
+ if (listCollSessionId){
|
|
|
+ var listCollSessionBool = sessionStorage.getItem('listCollSessionBool')
|
|
|
+ if (dataCache && $.isArray(dataCache)) {
|
|
|
+ dataCache.forEach(function (item) {
|
|
|
+ if (item._id == listCollSessionId) {
|
|
|
+ item.collection = listCollSessionBool
|
|
|
+ }
|
|
|
+ })
|
|
|
+ sessionStorage.removeItem('listCollSessionId')
|
|
|
+ sessionStorage.removeItem('listCollSessionBool')
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$("#list>*").remove();
|
|
|
firstPage = dataCache;
|
|
|
if (dataCache.length == 0) {
|
|
@@ -1161,12 +1177,6 @@ function hasNoData() {
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
|
- //收藏处理
|
|
|
- if (sessionStorage.getItem('listCollSessionId')&&sessionStorage.getItem('listCollSessionId')==obj["_id"]){
|
|
|
- obj["collection"] = sessionStorage.getItem('listCollSessionBool');
|
|
|
- sessionStorage.removeItem('listCollSessionId')
|
|
|
- sessionStorage.removeItem('listCollSessionBool')
|
|
|
- }
|
|
|
listhtml += '<div class="tslist ' + visited + '" words="' + mWords + '">'
|
|
|
+ '<div class="resnumb">'
|
|
|
+ '<div class="one">'
|