12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /**
- * Created 机构画像 by zjy on 2023/02/10.
- */
- $(function(){
- // 机构客户需求初始化时间
- getInfoDemandDate()
- // 机构订单初始化时间
- getInfoOrderDate();
- // 机构搜索关键词初始化时间
- getInfoKeyWordsDate();
- // 机构咨询记录初始化时间
- getInfoServiceDate();
- // 机构访问记录初始化时间
- getInfoVisitDate();
- // 第一次执行查所有
- getDemandData(4);
- getClubEacthsData(0,4);
- getClubEacthsData(1,4);
- getClubEacthsData(2,4);
- getClubEacthsData(3,4);
- // 点击筛选客户需求数据
- $('#customerDemand').children("a").each(function (index) {
- $(this).click(function () {
- console.log('客户需求筛选')
- //alert(index);
- $(this).addClass('active').siblings('a').removeClass('active');
- let dateType = $(this).attr('data-type');
- getDemandData(dateType)
- });
- });
- // 点击筛选机构订单数据
- $('#orderTabs').children("a").each(function (index) {
- $(this).click(function () {
- //alert(index);
- $(this).addClass('active').siblings('a').removeClass('active');
- let dateType = $(this).attr('data-type');
- getClubEacthsData(0,dateType)
- });
- });
- // 点击筛选机构搜索关键词数据
- $('#keyWordTabs').children("a").each(function (index) {
- $(this).click(function () {
- //alert(index);
- $(this).addClass('active').siblings('a').removeClass('active');
- let dateType = $(this).attr('data-type');
- getClubEacthsData(1,dateType)
- });
- });
- // 点击筛选咨询记录数据
- $('#serviceTabs').children("a").each(function (index) {
- $(this).click(function () {
- //alert(index);
- $(this).addClass('active').siblings('a').removeClass('active');
- let dateType = $(this).attr('data-type');
- getClubEacthsData(2,dateType)
- });
- });
- // 点击筛选机构访问记录数据
- $('#visitTabs').children("a").each(function (index) {
- $(this).click(function () {
- //alert(index);
- $(this).addClass('active').siblings('a').removeClass('active');
- let dateType = $(this).attr('data-type');
- getClubEacthsData(3,dateType)
- });
- });
- // 前往新后台
- $('.visitNum').click(function () {
- var link = "";
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/record-list?token=" + data;
- window.open(link, "_blank");
- });
- })
- })
|