|
@@ -57,8 +57,18 @@
|
|
|
}
|
|
|
}
|
|
|
$(function () {
|
|
|
+ var alert_other;
|
|
|
+ alert_other=setInterval(function(){
|
|
|
+ if(localStorage.canshowother && localStorage.getItem({{.T.userId}}+"_otherFlag")&&localStorage.getItem({{.T.userId}}+"_alert")==null){
|
|
|
+ $(".jy-alert-other").show();
|
|
|
+ localStorage.setItem({{.T.userId}}+"_alert","1")
|
|
|
+ clearInterval(alert_other);
|
|
|
+ }
|
|
|
+ },1000)
|
|
|
+
|
|
|
//到期提醒页面
|
|
|
var vipSubtips = {{.T.vipSubtips}};
|
|
|
+
|
|
|
if (Number(vipSubtips) === 0 && sessionStorage.vipSubtips == undefined) {
|
|
|
history.pushState({}, "", "");
|
|
|
sessionStorage.vipSubtips = "t";
|
|
@@ -78,7 +88,7 @@
|
|
|
isinitpage = true;
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
var firstTime = {{.T.selectTime}};
|
|
|
var userId = "";
|
|
|
var selectCity = "";
|
|
@@ -293,16 +303,8 @@
|
|
|
async: false,
|
|
|
dataType: 'json',
|
|
|
success: function (data) {
|
|
|
- if (data.otherFlag&&localStorage.getItem(userId+"_otherFlag")==null){
|
|
|
- var str = '每条信息的采购单位行业属性由机器自动识别,会存在少数无法识别的情况,此时将归类为"其他"。'
|
|
|
- weui.alert(str, {
|
|
|
- title: '"其他"采购单位',
|
|
|
- className: 'jy-alert',
|
|
|
- buttons: [{
|
|
|
- label: '我知道了'
|
|
|
- }]
|
|
|
- });
|
|
|
- localStorage.setItem(userId+"_otherFlag",data.otherFlag)
|
|
|
+ if (data.otherFlag){
|
|
|
+ localStorage.setItem({{.T.userId}}+"_otherFlag",data.otherFlag)
|
|
|
}
|
|
|
firstPage = data.data;
|
|
|
if (r.userType=="" && !firstPage.length > 0 && !r.haskey) {
|
|
@@ -338,6 +340,7 @@
|
|
|
}
|
|
|
dataCache = dataCache.concat(firstPage);
|
|
|
structureHtml(firstPage, true);
|
|
|
+
|
|
|
setTimeout(function () {
|
|
|
$(".listcontent").scrollTop(0);
|
|
|
//$("#list").css("visibility","visible");
|
|
@@ -1441,15 +1444,26 @@
|
|
|
font-size: .36rem;
|
|
|
border-radius: .4rem;
|
|
|
}
|
|
|
- .weui-dialog__btn {
|
|
|
- display: block;
|
|
|
- -webkit-box-flex: 1;
|
|
|
- -webkit-flex: 1;
|
|
|
- flex: 1;
|
|
|
- color: #0987ff;
|
|
|
- text-decoration: none;
|
|
|
- -webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
- position: relative;
|
|
|
+ .jy-alert-other .weui-dialog__btn {
|
|
|
+ color: #0987ff !important;
|
|
|
+ }
|
|
|
+ .jy-alert-other .weui-dialog__title {
|
|
|
+ font-size: 16 !important;
|
|
|
+ font-weight: 600 !important;
|
|
|
+ }
|
|
|
+ .jy-alert-other .weui-dialog__ft{
|
|
|
+ font-size:14 !important;
|
|
|
+ }
|
|
|
+ .jy-alert-other .weui-dialog__hd{
|
|
|
+ text-align:center !important;
|
|
|
+ }
|
|
|
+ .jy-alert-other .weui-dialog__bd {
|
|
|
+ font-size: 14 !important;
|
|
|
+ text-align: left;
|
|
|
+ word-break: normal;
|
|
|
+ }
|
|
|
+ .jy-alert-other .weui-dialog__ft{
|
|
|
+ text-align:center !important;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
@@ -1552,7 +1566,7 @@
|
|
|
<div class="open_remind" style="display: none;">
|
|
|
<div class="remind_box">
|
|
|
<div class="remind_text">
|
|
|
- 本次推送已达50条信息上限!开通VIP订阅,支持每天最多推送2000条信息
|
|
|
+ 本次推送已达150条信息上限!开通VIP订阅,支持每天最多推送2000条信息
|
|
|
</div>
|
|
|
<a onclick="tointroducepage()" class="remind_btn" style="text-decoration: none;">了解详情</a>
|
|
|
</div>
|
|
@@ -1651,6 +1665,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<!--弹窗 其他采购单位-->
|
|
|
+<div class="jy-alert jy-alert-other" style="display:none"> <div class="weui-mask weui-animate-fade-in"></div> <div class="weui-dialog weui-animate-fade-in"> <div class="weui-dialog__hd"><strong class="weui-dialog__title">提 示</strong></div> <div class="weui-dialog__bd">每条信息的采购单位行业属性由机器自动识别,会存在少数无法识别的情况,此时将归类为“其他”。如无需订阅,可在VIP订阅设置内手动关闭。</div> <div class="weui-dialog__ft"> <a href="javascript:;" onclick="close_other()" class="weui-dialog__btn weui-dialog__btn_">我知道了</a> </div> </div> </div>
|
|
|
<!-- <img src="/jyapp/images/gotosetpage.png" id="gotosetpage">-->
|
|
|
{{include "/common/baiducc.html"}}
|
|
|
|
|
@@ -1896,17 +1912,23 @@
|
|
|
}
|
|
|
//用户合并
|
|
|
$(".dialog_alert .close").on("click",function(){
|
|
|
+ localStorage.canshowother=true
|
|
|
$(".dialog_alert").hide()
|
|
|
})
|
|
|
$(".dialog_alert .dialog_ft").on("click",function(){
|
|
|
+ localStorage.canshowother=true
|
|
|
window.location.href='/page_entniche/page/user/account_merge.html'
|
|
|
})
|
|
|
function userMergeQuery(){
|
|
|
var tipTime = localStorage.tipUserMerge==undefined?new Date().getTime():parseInt(localStorage.tipUserMerge);
|
|
|
if (new Date().getTime() < tipTime){
|
|
|
+ localStorage.canshowother=true //用于记录和“其他”弹窗先后顺序
|
|
|
return
|
|
|
}
|
|
|
$.post("/jypay/usermerge/query",{"notice":"1"},function(r){
|
|
|
+ if(r.message=="success"&&r.data.needMerge==false){
|
|
|
+ localStorage.canshowother=true //用于记录和“其他”弹窗先后顺序
|
|
|
+ }
|
|
|
if(r.message=="success"&&r.data.needMerge==true){
|
|
|
var showText='<em style="color:#2ABED1">手机号:'+r.data.phone+'、微信号:'+r.data.nickname+'</em><br> 为保证您的正常使用,您可以根据自身情况进行设置。'
|
|
|
if(r.data.vip.length==2){
|
|
@@ -1924,6 +1946,11 @@
|
|
|
localStorage.tipUserMerge=tipTime
|
|
|
},"json")
|
|
|
}
|
|
|
+ //关闭 其他采购单位行业 弹窗
|
|
|
+ function close_other(){
|
|
|
+ $(".jy-alert-other").hide();
|
|
|
+ }
|
|
|
+
|
|
|
//
|
|
|
$(function () {
|
|
|
userMergeQuery()
|