|
@@ -78,11 +78,13 @@
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
.app-layout-content-b {
|
|
.app-layout-content-b {
|
|
- height: calc(100vh - 89px);
|
|
|
|
|
|
+ height: calc(100vh - 70px);
|
|
|
|
+ /* height: auto; */
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
#dropDownItemGroup .van-dropdown-item__content {
|
|
#dropDownItemGroup .van-dropdown-item__content {
|
|
max-height: 70vh;
|
|
max-height: 70vh;
|
|
|
|
+ overflow: hidden;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
</head>
|
|
</head>
|
|
@@ -140,7 +142,7 @@
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div> -->
|
|
</div> -->
|
|
- <van-dropdown-menu style="width: auto;overflow-x: auto;">
|
|
|
|
|
|
+ <van-dropdown-menu style="width: auto;overflow-x: auto;" :close-on-click-outside="false">
|
|
<van-dropdown-item get-container="#dropDownItemGroup" :lazy-render="false" :title="tagText.timeText" ref="dateItem" @open="open" @close="close">
|
|
<van-dropdown-item get-container="#dropDownItemGroup" :lazy-render="false" :title="tagText.timeText" ref="dateItem" @open="open" @close="close">
|
|
<date-component type="only-picker" :key="setTimer.datetimer" @cancel="cancel" @confirm="confirm" :selectdate="selectDate"/>
|
|
<date-component type="only-picker" :key="setTimer.datetimer" @cancel="cancel" @confirm="confirm" :selectdate="selectDate"/>
|
|
</van-dropdown-item>
|
|
</van-dropdown-item>
|
|
@@ -354,6 +356,9 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</body>
|
|
|
|
+<script>
|
|
|
|
+ var firstTime = {{.T.selectTime}}
|
|
|
|
+</script>
|
|
<script src=//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script>
|
|
<script src=//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script>
|
|
<script src=//cdn.jsdelivr.net/npm/vant@2.8.2/lib/vant.min.js></script>
|
|
<script src=//cdn.jsdelivr.net/npm/vant@2.8.2/lib/vant.min.js></script>
|
|
<script src=//cdn.jsdelivr.net/npm/zepto@1.2.0/dist/zepto.min.js></script>
|
|
<script src=//cdn.jsdelivr.net/npm/zepto@1.2.0/dist/zepto.min.js></script>
|
|
@@ -539,14 +544,6 @@
|
|
isinitpage = true;
|
|
isinitpage = true;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- var firstTime = {{.T.selectTime}}
|
|
|
|
- // firstTime = '1624377600000'
|
|
|
|
- if( firstTime != '') {
|
|
|
|
- firstTime = firstTime / 1000 +'_'+ firstTime / 1000;
|
|
|
|
- vm.time = firstTime
|
|
|
|
- }else {
|
|
|
|
- firstTime = vm.time
|
|
|
|
- }
|
|
|
|
|
|
|
|
var userId = "";
|
|
var userId = "";
|
|
var selectCity = vm.area; // 地区
|
|
var selectCity = vm.area; // 地区
|
|
@@ -595,7 +592,10 @@
|
|
});
|
|
});
|
|
this.isCanSwitch=true;
|
|
this.isCanSwitch=true;
|
|
this.InitPersonal=function(r){
|
|
this.InitPersonal=function(r){
|
|
- $("#sub_manager").click(tokeyset);
|
|
|
|
|
|
+ $("#sub_manager").click(function() {
|
|
|
|
+ sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
|
|
+ tokeyset()
|
|
|
|
+ });
|
|
$(".tab_left .area").hide();
|
|
$(".tab_left .area").hide();
|
|
if (r.isPassCount) {
|
|
if (r.isPassCount) {
|
|
$(".open_remind").show();
|
|
$(".open_remind").show();
|
|
@@ -608,7 +608,10 @@
|
|
thisClass.LoadDatas(r);
|
|
thisClass.LoadDatas(r);
|
|
}
|
|
}
|
|
this.InitVip=function(r){
|
|
this.InitVip=function(r){
|
|
- $("#sub_manager").click(tosetpage);
|
|
|
|
|
|
+ $("#sub_manager").click(function() {
|
|
|
|
+ sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
|
|
+ tosetpage()
|
|
|
|
+ });
|
|
$(".vip_report").show();
|
|
$(".vip_report").show();
|
|
$(".tab_left .area").show();
|
|
$(".tab_left .area").show();
|
|
if (!r.haskey) {
|
|
if (!r.haskey) {
|
|
@@ -650,6 +653,7 @@
|
|
reportHtml(JSON.parse(localStorage.reportData));
|
|
reportHtml(JSON.parse(localStorage.reportData));
|
|
}
|
|
}
|
|
$(".vip_report").click(function () {
|
|
$(".vip_report").click(function () {
|
|
|
|
+ sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
setSessionStorage();
|
|
setSessionStorage();
|
|
window.location.href = "/vipreport/page/subreport.html";
|
|
window.location.href = "/vipreport/page/subreport.html";
|
|
});
|
|
});
|
|
@@ -675,6 +679,22 @@
|
|
selectCate = sessionStorage.getItem(userId + "_selectCate");
|
|
selectCate = sessionStorage.getItem(userId + "_selectCate");
|
|
selectKeyword = sessionStorage.getItem(userId + "_selectKeyword");
|
|
selectKeyword = sessionStorage.getItem(userId + "_selectKeyword");
|
|
selectNotice = sessionStorage.getItem(userId + "_selectNotice");
|
|
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();
|
|
$("#list>*").remove();
|
|
firstPage = dataCache;
|
|
firstPage = dataCache;
|
|
if (dataCache.length == 0) {
|
|
if (dataCache.length == 0) {
|
|
@@ -789,10 +809,10 @@
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
wxflag = $('.listcontent').dropload({
|
|
wxflag = $('.listcontent').dropload({
|
|
scrollArea: $(".listcontent"),
|
|
scrollArea: $(".listcontent"),
|
|
- loadUpFn: function (me) {
|
|
|
|
- //loadDatas(me,-1);
|
|
|
|
- reloadFirstPage(me);//下拉刷新更新订阅词
|
|
|
|
- },
|
|
|
|
|
|
+ // loadUpFn: function (me) {
|
|
|
|
+ // //loadDatas(me,-1);
|
|
|
|
+ // reloadFirstPage(me);//下拉刷新更新订阅词
|
|
|
|
+ // },
|
|
loadDownFn: function (me) {
|
|
loadDownFn: function (me) {
|
|
loadDatas(me, lasttime);
|
|
loadDatas(me, lasttime);
|
|
}
|
|
}
|
|
@@ -802,9 +822,9 @@
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
wxflag = $('.listcontent').dropload({
|
|
wxflag = $('.listcontent').dropload({
|
|
scrollArea: $(".listcontent"),
|
|
scrollArea: $(".listcontent"),
|
|
- loadUpFn: function (me) {
|
|
|
|
- loadDatas(me, -1);
|
|
|
|
- },
|
|
|
|
|
|
+ // loadUpFn: function (me) {
|
|
|
|
+ // loadDatas(me, -1);
|
|
|
|
+ // },
|
|
loadDownFn: function (me) {
|
|
loadDownFn: function (me) {
|
|
loadDatas(me, lasttime);
|
|
loadDatas(me, lasttime);
|
|
}
|
|
}
|
|
@@ -922,6 +942,11 @@ window.listScroll = function() {
|
|
if($(".vip_report").is(":hidden")||$(".vip_report>a").is(":hidden")){
|
|
if($(".vip_report").is(":hidden")||$(".vip_report>a").is(":hidden")){
|
|
afterJyObjInit();
|
|
afterJyObjInit();
|
|
}
|
|
}
|
|
|
|
+ selectCity = vm.area; // 地区
|
|
|
|
+ selectIndustry = vm.subscopeclass // 行业
|
|
|
|
+ selectCate = vm.buyerclass // 采购单位
|
|
|
|
+ selectKeyword = vm.key // 关键词
|
|
|
|
+ selectNotice = vm.subtype // 公告类型
|
|
$.ajax({
|
|
$.ajax({
|
|
type: 'post',
|
|
type: 'post',
|
|
url: '/jyapp/front/hasPushHistory?t=' + new Date().getTime(),
|
|
url: '/jyapp/front/hasPushHistory?t=' + new Date().getTime(),
|
|
@@ -1130,12 +1155,6 @@ function hasNoData() {
|
|
if (obj.ca_isvisit == 1) {
|
|
if (obj.ca_isvisit == 1) {
|
|
visited = "visited"
|
|
visited = "visited"
|
|
}
|
|
}
|
|
- var collecnum = 0
|
|
|
|
- if(obj.collection == 1) {
|
|
|
|
- collecnum = 1
|
|
|
|
- } else {
|
|
|
|
- collecnum = 1
|
|
|
|
- }
|
|
|
|
if (showAd && index == 3 && !closeAdvert) {//广告位
|
|
if (showAd && index == 3 && !closeAdvert) {//广告位
|
|
var ad = $("#advertscript").html()
|
|
var ad = $("#advertscript").html()
|
|
if (ad != "") {
|
|
if (ad != "") {
|
|
@@ -1161,12 +1180,6 @@ function hasNoData() {
|
|
continue
|
|
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 + '">'
|
|
listhtml += '<div class="tslist ' + visited + '" words="' + mWords + '">'
|
|
+ '<div class="resnumb">'
|
|
+ '<div class="resnumb">'
|
|
+ '<div class="one">'
|
|
+ '<div class="one">'
|
|
@@ -1240,12 +1253,20 @@ function hasNoData() {
|
|
},
|
|
},
|
|
changeKeepStatus (type, that) {
|
|
changeKeepStatus (type, that) {
|
|
changeCollectStatus(type, that)
|
|
changeCollectStatus(type, that)
|
|
|
|
+ changeCollectDataStatus(type, this.nowOpenBid)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ function changeCollectDataStatus (type, id) {
|
|
|
|
+ if (dataCache && $.isArray(dataCache)) {
|
|
|
|
+ dataCache.forEach(function (item) {
|
|
|
|
+ if (item._id == id) {
|
|
|
|
+ item.collection = type ? 1 : 0
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
function changeCollectStatus(type, that) {
|
|
function changeCollectStatus(type, that) {
|
|
- //console.log(type, that)
|
|
|
|
if(type) {
|
|
if(type) {
|
|
$(that).find('.shoucang').show()
|
|
$(that).find('.shoucang').show()
|
|
$(that).find('.weishoucang').hide()
|
|
$(that).find('.weishoucang').hide()
|
|
@@ -1426,10 +1447,10 @@ function hasNoData() {
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
wxflag = $('.listcontent').dropload({
|
|
wxflag = $('.listcontent').dropload({
|
|
scrollArea: $(".listcontent"),
|
|
scrollArea: $(".listcontent"),
|
|
- loadUpFn: function (me) {
|
|
|
|
- //loadDatas(me,-1);
|
|
|
|
- reloadFirstPage(me);//下拉刷新更新订阅词
|
|
|
|
- },
|
|
|
|
|
|
+ // loadUpFn: function (me) {
|
|
|
|
+ // //loadDatas(me,-1);
|
|
|
|
+ // reloadFirstPage(me);//下拉刷新更新订阅词
|
|
|
|
+ // },
|
|
loadDownFn: function (me) {
|
|
loadDownFn: function (me) {
|
|
loadDatas(me, lasttime);
|
|
loadDatas(me, lasttime);
|
|
}
|
|
}
|
|
@@ -1438,9 +1459,9 @@ function hasNoData() {
|
|
} else {
|
|
} else {
|
|
wxflag = $('.listcontent').dropload({
|
|
wxflag = $('.listcontent').dropload({
|
|
scrollArea: $(".listcontent"),
|
|
scrollArea: $(".listcontent"),
|
|
- loadUpFn: function (me) {
|
|
|
|
- loadDatas(me, -1);
|
|
|
|
- },
|
|
|
|
|
|
+ // loadUpFn: function (me) {
|
|
|
|
+ // loadDatas(me, -1);
|
|
|
|
+ // },
|
|
loadDownFn: function (me) {
|
|
loadDownFn: function (me) {
|
|
loadDatas(me, lasttime);
|
|
loadDatas(me, lasttime);
|
|
}
|
|
}
|