Ver Fonte

数据图表

zhengjinyi há 1 ano atrás
pai
commit
9bc3026e70

+ 38 - 2
src/main/resources/static/css/supplier-center/encyclopedia/chart.css

@@ -16,7 +16,39 @@
   .chart-content-text{ min-height: 100px;width: 100%;box-sizing: border-box;padding: 24px;background: #FFFFFF;float: left;margin-bottom: 16px; }
   .chart-content-text h1,.chart-content-text p{font-size: 14px;color: #666666;line-height: 28px;}
   .chart-content-main{width: 100%;height: auto;float: left;margin-bottom: 16px;}
-  .chart-main-top{width: 100%;height: auto; margin-top: 16px;}
+  .chart-main-top{width: 100%;height: 520px; margin-top: 16px;box-sizing: border-box;padding: 57px;background: #FFFFFF;}
+  .chart-main-top-title{ width: 100%;line-height: 40px;font-size: 24px;font-weight: bold;color: #333333;text-align: center;margin-bottom:30px;}
+  .chart-main-top-main{ width: 100%;height: 324px; }
+  .chart-main-top-left{width: 340px;height: 100%; float: left;}
+  .chart-main-top-left-li{ width: 100%;height: 63px;float: left;box-sizing: border-box;border-left: 3px solid #FFFFFF;margin-bottom: 2px;}
+  .chart-main-top-left-li .li-title{ float: left;line-height: 63px;font-size: 18px;font-weight: bold;color: #333333;box-sizing: border-box;padding: 0 10px;margin-right: 14px;text-align: center;}
+  .chart-main-top-left-li .li-texts{ width: 182px;box-sizing: border-box;height: 63px;padding: 10px 0;float: left;}
+  .chart-main-top-left-li .li-texts p{ line-height: 22px;font-size: 14px;color: #666666;}
+  .chart-main-top-left-li.a{border-color: #73C0DE;background: linear-gradient(89deg, #E1F6FE 0%, #FFFFFF 100%);}
+  .chart-main-top-left-li.b{border-color: #EE6666;background: linear-gradient(88deg, #FFECEC 0%, #FFFFFF 100%);}
+  .chart-main-top-left-li.c{border-color: #5470C6;background: linear-gradient(87deg, #E6ECFF 0%, #FFFFFF 100%);}
+  .chart-main-top-left-li.d{border-color: #91CC75;background: linear-gradient(87deg, #EEFEE7 0%, #FFFFFF 100%);}
+  .chart-main-top-left-li.e{border-color: #FAC858;background: linear-gradient(88deg, #FFF5DF 0%, #FFFFFF 100%);}
+  .chart-main-top-mids{width: 400px;height: 100%;float: left; }
+  .chart-main-top-mids-li{width: 100%;height: 64px;margin-bottom: 2px;}
+  .chart-main-top-mids-ch{margin: 0 auto; height: 100%;line-height: 64px;display: block;font-size: 16px;color: #ffffff;text-align: center;position: relative;transition:all 0.5s;}
+  .chart-main-top-mids-li:hover .chart-main-top-mids-ch{transform: scale(1.1);-ms-transform: scale(1.1);-webkit-transform: scale(1.1);color: #FFFFFF;}
+  .chart-main-top-mids-ch.a{ background: url("/img/encyclopedia/chart/chart_a@2x.png");}
+  .chart-main-top-mids-ch.b{width: 320px; background: url("/img/encyclopedia/chart/chart_b@2x.png");}
+  .chart-main-top-mids-ch.c{width: 240px; background: url("/img/encyclopedia/chart/chart_c@2x.png");}
+  .chart-main-top-mids-ch.d{width: 160px; background: url("/img/encyclopedia/chart/chart_d@2x.png");}
+  .chart-main-top-mids-ch.e{width: 80px; background: url("/img/encyclopedia/chart/chart_e@2x.png");}
+
+  .chart-main-top-right{width: 312px;height: 100%;float: left;margin-left: 34px; }
+  .chart-main-top-right-li{ width: 100%; height: 110px;box-sizing: border-box;padding: 22px 0 14px 0;border-bottom: 1px solid #E1E1E1; float: left;}
+  .chart-main-top-right-tips {width: 100%;height: 36px;margin-bottom: 10px; }
+  .chart-main-top-right-tips .tips{ display: inline-block;border-radius: 4px; box-sizing: border-box;padding: 0 10px;font-size: 18px;line-height: 36px;color: #333333;text-align: center;font-weight: bold;}
+  .chart-main-top-right-tips .tips.a{ background: #73C0DE; }
+  .chart-main-top-right-tips .tips.b{ background: #5470C6; }
+  .chart-main-top-right-tips .tips.c{ background: #91CC75; }
+  .chart-main-top-right-li p{ font-size: 14px;line-height: 22px;color: #666666; }
+
+
   .chart-main-bot{width: 100%;height: auto;}
   .chart-main-top img{width: 100%;height: auto;}
   .chart-main-bot img{width: 100%;height: auto;}
@@ -26,7 +58,7 @@
   .chart-main-min{width: 592px;height: 320px;background: #FFFFFF;box-sizing: border-box;padding: 24px;}
   .chart-main-min-title{width: 100%;line-height: 28px;font-size: 18px;font-weight: bold;color: #666666;margin-bottom: 20px;}
   .chart-main-max{width: 100%;height: 485px;background: #FFFFFF;box-sizing: border-box;padding: 24px;}
-  .chart-main-max.table{min-height: 1000px;}
+  .chart-main-max.table{min-height: 620px;}
   .chart-main-min.le{float: left;}
   .chart-main-min.ri{float: right;}
   .chart-main-468{width: 468px;height: 360px;background: #FFFFFF;box-sizing: border-box;padding: 24px;float: left;}
@@ -36,6 +68,10 @@
   .chart-main-400{width: 400px;height: 360px;background: #FFFFFF;box-sizing: border-box;padding: 24px;float: right;margin-left: 16px;}
   .chart-main-390{width: 390px;height: 360px;background: #FFFFFF;box-sizing: border-box;padding: 24px;float: left;margin-right: 15px;}
   .chart-main-390.none{margin-right: 0;}
+
+  footer{width: 100%;float: left;}
+  #scrollTop .item .phone{ display: none; }
+  #scrollTop .item .Iphone{ display: none; }
 }
 
 /*移动端**/

BIN
src/main/resources/static/img/encyclopedia/chart/chart_a@2x.png


BIN
src/main/resources/static/img/encyclopedia/chart/chart_b@2x.png


BIN
src/main/resources/static/img/encyclopedia/chart/chart_c@2x.png


BIN
src/main/resources/static/img/encyclopedia/chart/chart_d@2x.png


BIN
src/main/resources/static/img/encyclopedia/chart/chart_e@2x.png


+ 10 - 4
src/main/resources/static/js/supplier-center/encyclopedia/chart.js

@@ -8,8 +8,7 @@ const chartContent = new Vue({
         shopId:0,
         volumeList:[],
         bannerList:[],
-        chartLogo:'',
-        chartBanner:'',
+        shopInfo:{},
         summarize:'',
         summarize1:'',
         summarize2:'',
@@ -39,8 +38,7 @@ const chartContent = new Vue({
             console.log('shopId',shopId)
             this.volumeList = this.chartData[shopId].volumeList
             this.bannerList = this.chartData[shopId].bannerList
-            this.chartLogo = this.chartData[shopId].chartLogo
-            this.chartBanner = this.chartData[shopId].chartBanner
+            this.shopInfo = this.chartData[shopId].shopInfo
             this.summarize = this.chartData[shopId].summarize
             this.summarize1 = this.chartData[shopId].summarize1
             this.summarize2 = this.chartData[shopId].summarize2
@@ -56,6 +54,14 @@ const chartContent = new Vue({
             this.chartUrbanize(this.chartData[shopId].urbanize)
             this.chartUserIdentity(this.chartData[shopId].userIdentity)
             this.chartIntentions(this.chartData[shopId].intentions)
+            $('.chart-main-top-mids-li').find('a').on('click', function () {
+                const id = '#' + $(this).attr('data-id');
+                const scrollTop = innerWidth > 768 ? $(id).offset().top : $(id).offset().top ;
+                $("html, body").animate({
+                    scrollTop: scrollTop
+                }, {duration: 500, easing: "swing"});
+                return false;
+            })
         }
     },
     created: function () {

+ 22 - 8
src/main/resources/static/js/supplier-center/encyclopedia/mixins/jsonMixin.js

@@ -5,10 +5,17 @@ const jsonMixin = function () {// 通知消息
             return{
                 chartData:{
                     1378: {
-                        // 顶部logo
-                        chartLogo:'https://admin.caimei365.com/userfiles/1/images/photo/2023/11/ross-logo.png',
-                        // 顶部图
-                        chartBanner:'https://img.caimei365.com/group1/M00/04/A0/rB-lGGVcQ2eAOl_lAAFD4qvhKP4215.png',
+                        shopInfo:{
+                            number:14658,
+                            number1:4545,
+                            number2:1247,
+                            number3:4545,
+                            number4:254,
+                            // 供应商名称
+                            shopName:'ROSS',
+                            // 顶部logo
+                            chartLogo:'https://admin.caimei365.com/userfiles/1/images/photo/2023/11/ross-logo.png',
+                        },
                         // 第一阶段总结
                         summarize:'ROSS在9月份的体用户访问数量相对不高,因此意向客户数量偏少。对此有以下点因素综合影响:①缺少专业内容在公域进行传播;②部分渠道无法发送短内容,或传播营销内容;',
                         // 第二阶段总结
@@ -321,10 +328,17 @@ const jsonMixin = function () {// 通知消息
                         },
                     },
                     1634: {
-                        // 顶部logo
-                        chartLogo:'https://img.caimei365.com/group1/M00/04/A0/rB-lGGVcQ2eAILQCAAAYtawMIj0814.png',
-                        // 顶部图
-                        chartBanner:'https://img.caimei365.com/group1/M00/04/A0/rB-lGGVcQ2eAOl_lAAFD4qvhKP4215.png',
+                        shopInfo:{
+                            number:45456,
+                            number1:4545,
+                            number2:3254,
+                            number3:567,
+                            number4:862,
+                            // 供应商名称
+                            shopName:'超清秀',
+                            // 顶部logo
+                            chartLogo:'https://img.caimei365.com/group1/M00/04/A0/rB-lGGVcQ2eAILQCAAAYtawMIj0814.png',
+                        },
                         // 第一阶段总结
                         summarize:'自丝艾特携新品超清秀入驻以来,采美针对品牌特性,先后创作新品系列、推荐系列、科普系列、门店访谈等多维度推文,分别从技术原理到市场热度全面展现了超清秀的实力,并在采美全网渠道推送内容,通过内容传播获取更多客户资源;\n' +
                             '通过对比展现量和阅读量可以看出,超清秀在公众号、微博用户访问量较高,其中,微博和微信的营销规则管控力度较低,因此整体访问量偏高;后续采美通过设立/参与【高端皮肤管理】等相关话题活动,促进品牌在市场的知名度提升;',

+ 85 - 25
src/main/resources/templates/supplier-center/encyclopedia/chart.html

@@ -10,33 +10,92 @@
   <template th:replace="components/analysis"></template>
 </head>
 <body>
-<!-- 引用头部 -->
-<!--<header id="globalHead" xmlns:th="http://www.w3.org/1999/xhtml">-->
-
-<!--</header>-->
-<!-- 机构信息 -->
 <div id="chartContent" v-cloak>
-    <input type="hidden" th:value="${coreServer}" id="coreServer">
-    <input type="hidden" th:value="${agent}" id="userAgent">
-    <div class="baseHeadCenter account">
-        <div class="wrap clear">
-            <a href="/" class="logo">
-                <img class="pcOnly" src="https://admin.caimei365.com/userfiles/1/images/photo/2023/11/%E9%87%87%E7%BE%8Elogo.png" alt="采美 生美/医美采购服务平台"/>
-                <img class="h5Only" src="https://admin.caimei365.com/userfiles/1/images/photo/2023/11/%E9%87%87%E7%BE%8Elogo.png" alt="采美 生美/医美采购服务平台"/>
-            </a>
-            <a href="javascript:void(0)" class="logo none">
-                <img class="pcOnly" :src="chartLogo" alt="采美 生美/医美采购服务平台"/>
-                <img class="h5Only" :src="chartLogo" alt="采美 生美/医美采购服务平台"/>
-            </a>
-        </div>
-    </div>
+    <!-- 引用头部 -->
+    <header>
+        <input type="hidden" th:value="${coreServer}" id="coreServer">
+        <input type="hidden" th:value="${agent}" id="userAgent">
+        <div class="baseHeadCenter account">
+            <div class="wrap clear">
+                <a href="/" class="logo">
+                    <img class="pcOnly" src="https://admin.caimei365.com/userfiles/1/images/photo/2023/11/%E9%87%87%E7%BE%8Elogo.png" alt="采美 生美/医美采购服务平台"/>
+                    <img class="h5Only" src="https://admin.caimei365.com/userfiles/1/images/photo/2023/11/%E9%87%87%E7%BE%8Elogo.png" alt="采美 生美/医美采购服务平台"/>
+                </a>
+                <a href="javascript:void(0)" class="logo none">
+                    <img class="pcOnly" :src="shopInfo.chartLogo" alt="采美 生美/医美采购服务平台"/>
+                    <img class="h5Only" :src="shopInfo.chartLogo" alt="采美 生美/医美采购服务平台"/>
+                </a>
+            </div>
+        </div>
+    </header>
     <div class="chart-content" v-if="isLoading">
         <div class="chart-content-main">
           <div class="chart-main-top">
-            <img :src="chartBanner" alt="漏斗模型">
+              <div class="chart-main-top-title">采美全域运营</div>
+              <div class="chart-main-top-main">
+                  <div class="chart-main-top-left">
+                      <div class="chart-main-top-left-li a">
+                        <div class="li-title">展现量</div>
+                        <div class="li-texts"><p>在搜索结果页面展现相关内容关键词提炼/关键词布局</p></div>
+                      </div>
+                      <div class="chart-main-top-left-li b">
+                        <div class="li-title">点击量</div>
+                        <div class="li-texts"><p>推广结果活得用户的点击关键词排名/内容撰写质量</p></div>
+                      </div>
+                      <div class="chart-main-top-left-li c">
+                        <div class="li-title">访问量</div>
+                        <div class="li-texts"><p>用户访问浏览官网页面系统为用户打上画像标签</p></div>
+                      </div>
+                      <div class="chart-main-top-left-li d">
+                        <div class="li-title">咨询量</div>
+                        <div class="li-texts"><p>跟踪标签/精准营销/定向推送通过CRM系统进行线索培育</p></div>
+                      </div>
+                      <div class="chart-main-top-left-li e">
+                        <div class="li-title">报备&成交量</div>
+                        <div class="li-texts"><p>销售与服务,促使成单</p></div>
+                      </div>
+                  </div>
+                  <div class="chart-main-top-mids">
+                    <div class="chart-main-top-mids-li">
+                        <a href="javascript:void(0)" data-id="section-1" class="chart-main-top-mids-ch a" v-text="shopInfo.number"></a>
+                    </div>
+                    <div class="chart-main-top-mids-li">
+                        <a href="javascript:void(0)" data-id="section-1" class="chart-main-top-mids-ch b" v-text="shopInfo.number1"></a>
+                    </div>
+                    <div class="chart-main-top-mids-li">
+                        <a href="javascript:void(0)" data-id="section-2" class="chart-main-top-mids-ch c" v-text="shopInfo.number2"></a>
+                    </div>
+                    <div class="chart-main-top-mids-li">
+                        <a href="javascript:void(0)" data-id="section-3" class="chart-main-top-mids-ch d" v-text="shopInfo.number3"></a>
+                    </div>
+                    <div class="chart-main-top-mids-li">
+                        <a href="javascript:void(0)" data-id="section-3" class="chart-main-top-mids-ch e" v-text="shopInfo.number4"></a>
+                    </div>
+                  </div>
+                  <div class="chart-main-top-right">
+                      <div class="chart-main-top-right-li">
+                          <div class="chart-main-top-right-tips">
+                              <span class="tips a">品牌推广阶段</span>
+                          </div>
+                          <p>【<span v-text="shopInfo.shopName"></span>】在采美站外公域的推广结果</p>
+                      </div>
+                      <div class="chart-main-top-right-li">
+                          <div class="chart-main-top-right-tips">
+                              <span class="tips b">潜客运营阶段</span>
+                          </div>
+                          <p>【<span v-text="shopInfo.shopName"></span>】在采美私域运营情况汇总</p>
+                      </div>
+                      <div class="chart-main-top-right-li">
+                          <div class="chart-main-top-right-tips">
+                              <span class="tips c">销售转化阶段</span>
+                          </div>
+                          <p>【<span v-text="shopInfo.shopName"></span>】客户线索在采美的孵化动作和转化效果</p>
+                      </div>
+                  </div>
+              </div>
           </div>
         </div>
-        <div class="chart-title">
+        <div class="chart-title" id="section-1">
           <p>品牌推广阶段</p>
         </div>
         <div class="chart-content-text">
@@ -54,9 +113,9 @@
           </div>
         </div>
         <div class="chart-content-main">
-          <div class="chart-main-max ri table">
+          <div class="chart-main-max ri table clear">
             <div class="chart-main-min-title">6-10月公众号推文阅读量</div>
-            <el-table ref="table" :data="volumeList" border>
+            <el-table ref="table" :data="volumeList" border height="528">
               <el-table-column label="序号" align="center" width="50">
                 <template slot-scope="scope">{{ scope.$index + 1 }}</template>
               </el-table-column>
@@ -83,7 +142,7 @@
 
           </div>
         </div>
-        <div class="chart-title">
+        <div class="chart-title" id="section-2">
           <p>潜客运营阶段</p>
         </div>
         <div class="chart-content-text">
@@ -112,7 +171,7 @@
         <div class="chart-content-main">
           <div class="chart-main-max" id="myChart6"></div>
         </div>
-        <div class="chart-title">
+        <div class="chart-title" id="section-3">
           <p>销售转化阶段</p>
         </div>
         <div class="chart-content-text">
@@ -131,6 +190,7 @@
       </div>
 </div>
 <!-- 引入底部 -->
+<template th:replace="components/footer"></template>
 <template th:replace="components/foot-link"></template>
 <script charset="utf-8" type="text/javascript" th:src="@{/lib/echarts.min.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/lib/china.js(v=${version})}"></script>