|
@@ -930,22 +930,25 @@
|
|
}
|
|
}
|
|
function goNewBack (type, addTime, userIdentity, name, linkMan) {
|
|
function goNewBack (type, addTime, userIdentity, name, linkMan) {
|
|
// 跳转到新后台查询数据 type: 1 访问记录 2:咨询记录
|
|
// 跳转到新后台查询数据 type: 1 访问记录 2:咨询记录
|
|
- var date = new Date();
|
|
|
|
|
|
+ const date = getZeroTimeToday();
|
|
|
|
+ console.log(date)
|
|
|
|
+ const addDateTime = stringToDate(addTime.toString());
|
|
|
|
+ console.log('addDateTime----', addDateTime);
|
|
if (type === 1) {
|
|
if (type === 1) {
|
|
// 若是今天以前注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【过往数据】页面,
|
|
// 若是今天以前注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【过往数据】页面,
|
|
// 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果;
|
|
// 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果;
|
|
// 若是今天注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【今日数据】页面,
|
|
// 若是今天注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【今日数据】页面,
|
|
// 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果。
|
|
// 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果。
|
|
- if (addTime < date) {
|
|
|
|
|
|
+ if (addDateTime < date) {
|
|
// 过往数据
|
|
// 过往数据
|
|
if (userIdentity === 4) {
|
|
if (userIdentity === 4) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
- link = "https://manager-b.caimei365.com/#/user/record-list?type=second&corporateName="+linkMan+"&token=" + data;
|
|
|
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName="+linkMan+"&token=" + data;
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
- link = "https://manager-b.caimei365.com/#/user/record-list?type=second&corporateName="+name+"&token=" + data;
|
|
|
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName="+name+"&token=" + data;
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -953,12 +956,12 @@
|
|
// 今日数据
|
|
// 今日数据
|
|
if (userIdentity === 4) {
|
|
if (userIdentity === 4) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
- link = "https://manager-b.caimei365.com/#/user/record-list?type=first&corporateName="+linkMan+"&token=" + data;
|
|
|
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName="+linkMan+"&token=" + data;
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
- link = "https://manager-b.caimei365.com/#/user/record-list?type=first&corporateName="+name+"&token=" + data;
|
|
|
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName="+name+"&token=" + data;
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -968,18 +971,27 @@
|
|
// 点击咨询记录,跳转到新后台【用户咨询记录汇总】页面,页面展示以机构名称筛选后的结果
|
|
// 点击咨询记录,跳转到新后台【用户咨询记录汇总】页面,页面展示以机构名称筛选后的结果
|
|
if (userIdentity === 4) {
|
|
if (userIdentity === 4) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
- link = "https://manager-b.caimei365.com/#/user/consult/list?clubName="+linkMan+"&token=" + data;
|
|
|
|
|
|
+ link = "https://manager.caimei365.com/#/user/consult/list?clubName="+linkMan+"&token=" + data;
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
$.get("${ctx}/jump/link", function (data) {
|
|
- link = "https://manager-b.caimei365.com/#/user/consult/list?clubName="+name+"&token=" + data;
|
|
|
|
|
|
+ link = "https://manager.caimei365.com/#/user/consult/list?clubName="+name+"&token=" + data;
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ function stringToDate(dateString) {
|
|
|
|
+ const parts = dateString.split(/[- :]/);
|
|
|
|
+ return new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]);
|
|
|
|
+ }
|
|
|
|
+ // 当天0点0分时间
|
|
|
|
+ function getZeroTimeToday() {
|
|
|
|
+ const today = new Date();
|
|
|
|
+ return new Date(today.getFullYear(), today.getMonth(), today.getDate());
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|