zhengjinyi 2 anni fa
parent
commit
da06219f1b

+ 0 - 4
src/main/webapp/WEB-INF/views/modules/userNew/cmClubPortrait.jsp

@@ -151,10 +151,6 @@
 <script type="text/javascript" src="${ctxStatic}/datapicker/moment-2.29.min.js"></script>
 <script type="text/javascript" src="${ctxStatic}/datapicker/jquery.daterangepicker.js"></script>
 <script type="text/javascript" src="${ctxStatic}/echarts/echarts.min.js"></script>
-<%--<script type="text/javascript" src="${ctxStatic}/modules/cmClubPortrait/orderEacths.js"></script>--%>
-<%--<script type="text/javascript" src="${ctxStatic}/modules/cmClubPortrait/keWordsEacths.js"></script>--%>
-<%--<script type="text/javascript" src="${ctxStatic}/modules/cmClubPortrait/serviceEacths.js"></script>--%>
-<%--<script type="text/javascript" src="${ctxStatic}/modules/cmClubPortrait/visitEacths.js"></script>--%>
 <script type="text/javascript" src="${ctxStatic}/modules/cmClubPortrait/cmClubEacths.js"></script>
 <script type="text/javascript" src="${ctxStatic}/modules/cmClubPortrait/cmClubPortrait.js"></script>
 </body>

+ 0 - 106
src/main/webapp/static/modules/cmClubPortrait/keWordsEacths.js

@@ -1,106 +0,0 @@
-/**
- * Created 机构订单图表 by zjy on 2023/02/10.
- */
-const KeyWordDefaultParams = {
-    clubId:0,//  机构id
-    dateType:0,//   日期类别 0日 1月 2半年 3全年
-    startTime:'',//   开始时间
-    endTime:'',//   结束时间
-    type:0//  统计类别 0订单 1搜索关键词 2咨询记录 3访问记录 4初始状态
-}
-const getInfoKeyWordsDate = function () {
-    // 初始化选择时间控件
-    const startDate = getDateStr(new Date(), -365),
-          endDate = getDateStr(new Date(), 0);
-    $('#keyWordsDate').dateRangePicker({
-        language: 'cn',
-        startDate: startDate,
-        endDate: endDate,
-        format: 'YYYY-MM-DD',
-        showShortcuts: false,
-        autoClose: isPC,
-        isNowrap: false,
-        getValue: function () {
-            if (KeyWordDefaultParams.startTime && KeyWordDefaultParams.endTime) {
-                return KeyWordDefaultParams.startTime + ' to ' + KeyWordDefaultParams.endTime;
-            } else {
-                return '';
-            }
-        },
-        setValue: function (s, s1, s2) {
-            KeyWordDefaultParams.startTime = s1;
-            KeyWordDefaultParams.endTime = s2;
-            $('#keyWordsTimeStart').val(s1);
-            $('#keyWordsTimeEnd').val(s2);
-            getKeyWordsData()
-        }
-    });
-}
-const  getKeyWordsData = function (dateType) {
-    KeyWordDefaultParams.dateType = dateType;
-    console.log('机构关键词数据接口请求',KeyWordDefaultParams)
-    const data = {
-        yAxisData:['M22', '玻尿酸', '超声刀', '面膜', '耗材', '润月雅', 'Ross', '超声跑', '拗口似','是脚手'],
-        seriesData:[1000, 2000, 3000, 4000, 5000, 6000,7000,8000,9000,10000]
-    }
-    getKeyWordsEacths(data)
-    // $.ajax({
-    //     url: "${ctx}/order/cmPayShop/modifyPayShopAmount",
-    //     type: "GET",
-    //     data: params,
-    //     contentType : 'application/json;charset=UTF-8', //contentType很重要
-    //     success: function (res) {
-    //         if (res.success) {
-    //
-    //         } else {
-    //            console.log('机构订单图表数据异常')
-    //         }
-    //     }
-    // });
-}
-const getKeyWordsEacths = function (data) {
-    // 基于准备好的dom,初始化echarts实例
-    const myChart = echarts.init(document.getElementById('keyWordsEacths'));
-    const option = {
-        title: {
-            show:false
-        },
-        tooltip: {
-            trigger: 'axis',
-            axisPointer: {
-                type: 'shadow'
-            }
-        },
-        legend: {
-            show:false,
-        },
-        grid: {
-            left: '3%',
-            right: '4%',
-            bottom: '3%',
-            containLabel: true
-        },
-        xAxis: {
-            type: 'value',
-            boundaryGap: [0, 0.01]
-        },
-        yAxis: {
-            type: 'category',
-            data: data.yAxisData
-        },
-        series: [
-            {
-                type: 'bar',
-                name: '2023',
-                data: data.seriesData,
-                itemStyle:{
-                    color:'#e15616',
-                    fontSize: 14,
-                }
-            }
-        ]
-    };
-    // 使用刚指定的配置项和数据显示图表。
-    myChart.setOption(option);
-    window.onresize = myChart.resize;//移动适配
-};

+ 0 - 106
src/main/webapp/static/modules/cmClubPortrait/orderEacths.js

@@ -1,106 +0,0 @@
-/**
- * Created 机构订单图表 by zjy on 2023/02/10.
- */
-const orderDefaultParams = {
-    clubId:0,//  机构id
-    dateType:0,//   日期类别 0日 1月 2半年 3全年
-    startTime:'',//   开始时间
-    endTime:'',//   结束时间
-    type:0//  统计类别 0订单 1搜索关键词 2咨询记录 3访问记录 4初始状态
-}
-const getInfoOrderDate = function () {
-    // 初始化选择时间控件
-    const startDate = getDateStr(new Date(), -365),
-          endDate = getDateStr(new Date(), 0);
-    $('#orderDate').dateRangePicker({
-        language: 'cn',
-        startDate: startDate,
-        endDate: endDate,
-        format: 'YYYY-MM-DD',
-        showShortcuts: false,
-        autoClose: isPC,
-        isNowrap: false,
-        getValue: function () {
-            if (orderDefaultParams.startTime && orderDefaultParams.endTime) {
-                return orderDefaultParams.startTime + ' to ' + orderDefaultParams.endTime;
-            } else {
-                return '';
-            }
-        },
-        setValue: function (s, s1, s2) {
-            orderDefaultParams.startTime = s1;
-            orderDefaultParams.endTime = s2;
-            $('#orderTimeStart').val(s1);
-            $('#orderTimeEnd').val(s2);
-            getOrdersData()
-        }
-    });
-}
-const  getOrdersData = function (dateType) {
-    orderDefaultParams.type = dateType;
-    console.log('机构订单数据接口请求',orderDefaultParams)
-    const orderData = [
-        {value: 50, name: '普通订单【25%】【1个】'},
-        {value: 20, name: '二手订单【25%】【1个】'},
-        {value: 30, name: '返佣订单【25%】【1个】'},
-        {value: 60, name: '部分退款订单【25%】【1个】'},
-        {value: 50, name: '全部退款订单【25%】【1个】'},
-        {value: 20, name: '已关闭订单【25%】【1个】'},
-    ]
-    getOrderEacths(orderData)
-    // $.ajax({
-    //     url: "${ctx}/order/cmPayShop/modifyPayShopAmount",
-    //     type: "GET",
-    //     data: params,
-    //     contentType : 'application/json;charset=UTF-8', //contentType很重要
-    //     success: function (res) {
-    //         if (res.success) {
-    //
-    //         } else {
-    //            console.log('机构订单图表数据异常')
-    //         }
-    //     }
-    // });
-}
-const getOrderEacths = function (data) {
-    // 基于准备好的dom,初始化echarts实例
-    const myChart = echarts.init(document.getElementById('orderEacths'));
-    const option = {
-        tooltip: {
-            trigger: 'item'
-        },
-        legend: {
-            orient: 'vertical',
-            right: '10%',
-            top:'20%',
-            textStyle: {
-                fontSize: 14,
-            },
-        },
-        color:['#3aa0ff','#36cbcb','#fad337','#4dcb73','#f2637b','#975fe4'],
-        series: [
-            {
-                name: '订单总量',
-                type: 'pie',
-                radius: '70%',
-                center: ['25%', '50%'],
-                avoidLabelOverlap: false,
-                emphasis: {
-                    itemStyle: {
-                        shadowBlur: 10,
-                        shadowOffsetX: 0,
-                        shadowColor: 'rgba(0, 0, 0, 0.5)'
-                    }
-                },
-                label: {
-                    show: false,
-                    position: 'center'
-                },
-                data:data
-            }
-        ]
-    };
-    // 使用刚指定的配置项和数据显示图表。
-    myChart.setOption(option);
-    window.onresize = myChart.resize;//移动适配
-};

+ 0 - 106
src/main/webapp/static/modules/cmClubPortrait/serviceEacths.js

@@ -1,106 +0,0 @@
-/**
- * Created 机构订单图表 by zjy on 2023/02/10.
- */
-// 初始化咨询记录接口参数
-const serviceDefaultParams = {
-    clubId:0,//  机构id
-    dateType:0,//   日期类别 0日 1月 2半年 3全年
-    startTime:'',//   开始时间
-    endTime:'',//   结束时间
-    type:2//  统计类别 0订单 1搜索关键词 2咨询记录 3访问记录 4初始状态
-}
-// 初始化选择时间控件
-const getInfoServiceDate = function () {
-    const startDate = getDateStr(new Date(), -365),
-          endDate = getDateStr(new Date(), 0);
-    $('#serviceDate').dateRangePicker({
-        language: 'cn',
-        startDate: startDate,
-        endDate: endDate,
-        format: 'YYYY-MM-DD',
-        showShortcuts: false,
-        autoClose: isPC,
-        isNowrap: false,
-        getValue: function () {
-            if (serviceDefaultParams.startTime && serviceDefaultParams.endTime) {
-                return serviceDefaultParams.startTime + ' to ' + serviceDefaultParams.endTime;
-            } else {
-                return '';
-            }
-        },
-        setValue: function (s, s1, s2) {
-            serviceDefaultParams.startTime = s1;
-            serviceDefaultParams.endTime = s2;
-            $('#serviceTimeStart').val(s1);
-            $('#serviceTimeEnd').val(s2);
-            getServiceData()
-        }
-    });
-}
-const  getServiceData = function (dateType) {
-    serviceDefaultParams.dateType = dateType;
-    console.log('机构咨询记录数据接口请求',serviceDefaultParams)
-    const data = {
-        yAxisData:['M22', '玻尿酸', '超声刀', '面膜', '耗材', '润月雅', 'Ross', '超声跑', '拗口似','是脚手'],
-        seriesData:[1000, 2000, 3000, 4000, 5000, 6000,7000,8000,9000,10000]
-    }
-    getServiceEacths(data)
-    // $.ajax({
-    //     url: "${ctx}/order/cmPayShop/modifyPayShopAmount",
-    //     type: "GET",
-    //     data: params,
-    //     contentType : 'application/json;charset=UTF-8', //contentType很重要
-    //     success: function (res) {
-    //         if (res.success) {
-    //
-    //         } else {
-    //            console.log('机构订单图表数据异常')
-    //         }
-    //     }
-    // });
-}
-const getServiceEacths = function (data) {
-    // 基于准备好的dom,初始化echarts实例
-    const myChart = echarts.init(document.getElementById('serviceEacths'));
-    const option = {
-        title: {
-            show:false
-        },
-        tooltip: {
-            trigger: 'axis',
-            axisPointer: {
-                type: 'shadow'
-            }
-        },
-        legend: {
-            show:false,
-        },
-        grid: {
-            left: '3%',
-            right: '4%',
-            bottom: '3%',
-            containLabel: true
-        },
-        xAxis: {
-            type: 'value',
-            boundaryGap: [0, 0.01]
-        },
-        yAxis: {
-            type: 'category',
-            data: data.yAxisData
-        },
-        series: [
-            {
-                type: 'bar',
-                data: data.seriesData,
-                itemStyle:{
-                    color:'#36cbcb',
-                    fontSize: 14,
-                }
-            }
-        ]
-    };
-    // 使用刚指定的配置项和数据显示图表。
-    myChart.setOption(option);
-    window.onresize = myChart.resize;//移动适配
-};

+ 0 - 106
src/main/webapp/static/modules/cmClubPortrait/visitEacths.js

@@ -1,106 +0,0 @@
-/**
- * Created 机构订单图表 by zjy on 2023/02/10.
- */
-// 初始化访问记录接口参数
-const visitDefaultParams = {
-    clubId:0,//  机构id
-    dateType:0,//   日期类别 0日 1月 2半年 3全年
-    startTime:'',//   开始时间
-    endTime:'',//   结束时间
-    type:3//  统计类别 0订单 1搜索关键词 2咨询记录 3访问记录 4初始状态
-}
-// 初始化选择时间控件
-const getInfoVisitDate = function () {
-    const startDate = getDateStr(new Date(), -365),
-          endDate = getDateStr(new Date(), 0);
-    $('#visitDate').dateRangePicker({
-        language: 'cn',
-        startDate: startDate,
-        endDate: endDate,
-        format: 'YYYY-MM-DD',
-        showShortcuts: false,
-        autoClose: isPC,
-        isNowrap: false,
-        getValue: function () {
-            if (visitDefaultParams.startTime && visitDefaultParams.endTime) {
-                return visitDefaultParams.startTime + ' to ' + visitDefaultParams.endTime;
-            } else {
-                return '';
-            }
-        },
-        setValue: function (s, s1, s2) {
-            visitDefaultParams.startTime = s1;
-            visitDefaultParams.endTime = s2;
-            $('#visitTimeStart').val(s1);
-            $('#visitTimeEnd').val(s2);
-            getVisitData()
-        }
-    });
-}
-const  getVisitData = function (dateType) {
-    visitDefaultParams.dateType = dateType;
-    console.log('机构浏览记录数据接口请求',visitDefaultParams)
-    const data = {
-        yAxisData:['搜索供应商', '楼层详情', '新品橱窗', '文章列表', '供应商主页', '二手列表','个人中心','新商品详情','商品搜索','首页'],
-        seriesData:[1000, 2000, 3000, 4000, 5000, 6000,7000,8000,9000,10000]
-    }
-    getVisitEacths(data)
-    // $.ajax({
-    //     url: "${ctx}/order/cmPayShop/modifyPayShopAmount",
-    //     type: "GET",
-    //     data: params,
-    //     contentType : 'application/json;charset=UTF-8', //contentType很重要
-    //     success: function (res) {
-    //         if (res.success) {
-    //
-    //         } else {
-    //            console.log('机构订单图表数据异常')
-    //         }
-    //     }
-    // });
-}
-const getVisitEacths = function (data) {
-   // 基于准备好的dom,初始化echarts实例
-    const myChart = echarts.init(document.getElementById('visitEacths'));
-    const option = {
-        title: {
-            show:false
-        },
-        tooltip: {
-            trigger: 'axis',
-            axisPointer: {
-                type: 'shadow'
-            }
-        },
-        legend: {
-            show:false,
-        },
-        grid: {
-            left: '3%',
-            right: '4%',
-            bottom: '3%',
-            containLabel: true
-        },
-        xAxis: {
-            type: 'value',
-            boundaryGap: [0, 0.01]
-        },
-        yAxis: {
-            type: 'category',
-            data: data.yAxisData
-        },
-        series: [
-            {
-                type: 'bar',
-                data: data.seriesData,
-                itemStyle:{
-                    color:'#3aa0ff',
-                    fontSize: 14,
-                }
-            }
-        ]
-    };
-    // 使用刚指定的配置项和数据显示图表。
-    myChart.setOption(option);
-    window.onresize = myChart.resize;//移动适配
-};