| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994 |
- <template>
- <section v-if="this.role_id==1" class="index-content">
- <div class="index_header">
- <div class="header-item">
- <div class="item-img">
- <img src="../assets/book.png" alt="" />
- <span class="text">
- 期刊总数 <br /><span class="count">{{
- form.journal_total
- }}</span></span
- >
- </div>
- <div class="item-img">
- <img src="../assets/network.png" alt="" />
- <span class="text">
- 文章发布量 <br /><span class="count">{{
- form.article_total
- }}</span></span
- >
- </div>
- </div>
- <div class="header-item">
- <div class="item-text">
- <div>
- <span class="text">会议举办次数</span
- ><span class="count">{{ form.conference_total }}</span>
- </div>
- <div>
- <span class="text">活动举办次数</span>
- <span class="count">{{ form.activity_total }}</span>
- </div>
- </div>
- <div class="item-text">
- <div>
- <span class="text">总阅读次数</span
- ><span class="count">{{ form.article_readnum }}</span>
- </div>
- <div>
- <span class="text">转发次数</span
- ><span class="count">{{ form.article_forwardnum }}</span>
- </div>
- </div>
- </div>
- <div class="header-item" style="position: relative">
- <span style="position: absolute; top: 0; left: 5px; color: #666"
- >搜索热词</span
- >
- <wordcloud
- v-if="form.search_hot_word"
- style="width: 80%; height: 100px; margin-left: 20%"
- :data="form.search_hot_word"
- nameKey="name"
- :fontSize="[10, 24]"
- valueKey="value"
- :color="myColors"
- :showTooltip="false"
- >
- </wordcloud>
- </div>
- </div>
- <div class="index-main">
- <div class="main-item">
- <div class="item-title">期刊统计</div>
- <div class="item-more">查看更多>></div>
- </div>
- <div class="main-content">
- <div class="c1">
- <div class="c1-title">学科期刊分布</div>
- <div ref="subject" style="width: 100%; height: 250px"></div>
- </div>
- <div class="c2">
- <div class="c2-title">单位期刊统计</div>
- <div ref="company" style="width: 100%; height: 250px"></div>
- </div>
- <div class="c1">
- <div class="c1-title">期刊文章TOP5</div>
- <div ref="article" style="width: 100%; height: 250px"></div>
- </div>
- </div>
- </div>
- <div class="index-main">
- <div class="main-item">
- <div class="item-title">文章统计</div>
- <div class="item-more">查看更多>></div>
- </div>
- <div class="main-content">
- <div class="c1">
- <div class="c1-title">文章来源分析</div>
- <div ref="article_sorce" style="width: 100%; height: 250px"></div>
- </div>
- <div class="c2">
- <div class="c2-title">文章发布/时间统计</div>
- <div ref="article_time" style="width: 100%; height: 250px"></div>
- </div>
- <div class="c1">
- <div class="c1-title">文章阅读量TOP5</div>
- <div ref="article_ready" style="width: 100%; height: 250px">
- <div class="h2">
- <span>序号</span>
- <span>文章标题</span>
- <span>阅读次数</span>
- </div>
- <div
- class="con2"
- v-for="(item, index) in form.article_readnum_top5"
- :key="index"
- >
- <span>{{ index + 1 }}</span>
- <span class="a_title">{{ item.name }}</span>
- <span>{{ item.read_num }}</span>
- </div>
- <div></div>
- </div>
- </div>
- </div>
- </div>
- <div class="index-main">
- <div class="main-item">
- <div class="item-title">会议统计</div>
- <div class="item-more">查看更多>></div>
- </div>
- <div class="main-content">
- <div class="c1">
- <div class="c1-title">会议主办方统计</div>
- <div ref="meet_count" style="width: 100%; height: 250px"></div>
- </div>
- <div class="c1">
- <div class="c2-title">会议发布/时间统计</div>
- <div ref="meet_time" style="width: 100%; height: 250px"></div>
- </div>
- </div>
- </div>
- </section>
- <!-- 期刊管理员首页 -->
- <section v-else>
- <CASCI></CASCI>
- </section>
- </template>
- <script>
- import echarts from "echarts";
- import wordcloud from "vue-wordcloud";
- import CASCI from '../components/CASCI'
- export default {
- data() {
- return {
- // chartData: [],
- form: {},
- list: [
- { article_header: "中国生态效率时空演化研究", count: "132" },
- { article_header: "中国生态效率时空演化研究", count: "132" },
- { article_header: "中国生态效率时空演化研究", count: "132" },
- { article_header: "中国生态效率时空演化研究", count: "132" },
- { article_header: "中国生态效率时空演化研究", count: "132" },
- ],
- myColors: ["#1f77b4", "#629fc9", "#94bedb", "#c9e0ef"],
- role_id:1
- };
- },
- components: {
- wordcloud,
- CASCI
- },
- computed: {},
- methods: {
- getEcharts() {
- var myChart = this.$echarts.init(this.$refs.subject);
- var myChart1 = this.$echarts.init(this.$refs.company);
- var myChart2 = this.$echarts.init(this.$refs.article);
- var myChart3 = this.$echarts.init(this.$refs.article_sorce);
- var myChart4 = this.$echarts.init(this.$refs.article_time);
- var myChart5 = this.$echarts.init(this.$refs.meet_count);
- var myChart6 = this.$echarts.init(this.$refs.meet_time);
- // 学科期刊
- let option = {
- backgroundColor: "#fff",
- // title: {
- // text: 'Customized Pie',
- // left: 'center',
- // top: 20,
- // textStyle: {
- // color: '#ccc'
- // }
- // },
- color: ["#9379ff", "#62A2FF", "#FFD053", "#FF9F41", "#FF542C"],
- tooltip: {
- trigger: "item",
- formatter: "{a} <br/>{b} : {c} ({d}%)",
- },
- // visualMap: {
- // show: false,
- // min: 80,
- // max: 600,
- // inRange: {
- // colorLightness: [0, 1]
- // }
- // },
- series: [
- {
- name: "期刊数量",
- type: "pie",
- radius: "55%",
- center: ["50%", "50%"],
- // data: [
- // { value: 335, name: "直接访问" },
- // { value: 310, name: "邮件营销" },
- // { value: 274, name: "联盟广告" },
- // { value: 235, name: "视频广告" },
- // { value: 400, name: "搜索引擎" },
- // ].sort(function (a, b) {
- // return a.value - b.value;
- // }),
- data: this.form.subject_journal.sort(function (a, b) {
- return a.value - b.value;
- }),
- roseType: "radius",
- label: {
- color: "rgba(102, 102, 102,1)",
- fontSize: 14,
- },
- labelLine: {
- lineStyle: {
- color: "rgba(000, 000, 000, 0.1)",
- },
- smooth: 0.2,
- length: 8,
- length2: 5,
- },
- itemStyle: {
- // color: '#c23531',
- // shadowBlur: 200,
- // shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- animationType: "scale",
- animationEasing: "elasticOut",
- animationDelay: function (idx) {
- return Math.random() * 200;
- },
- },
- ],
- };
- // 单位期刊统计
- let option1 = {
- color: ["#5066FF"],
- tooltip: {
- trigger: "axis",
- axisPointer: {
- // 坐标轴指示器,坐标轴触发有效
- type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
- },
- },
- grid: {
- left: "3%",
- right: "4%",
- bottom: "3%",
- top: "10%",
- containLabel: true,
- },
- xAxis: [
- {
- type: "category",
- // data: ["Mon", "Tue", "Wed", "Thu"],
- data: this.form.organizer_journal_x,
- axisTick: {
- alignWithLabel: true,
- },
- axisLine: {
- lineStyle: {
- color: "#D4D8EE",
- width: 2,
- type: "dotted",
- },
- },
- axisLabel: {
- formatter: function (val) {
- // return "中国科"; //对每个标签处理后的结果(通过js字符串方法处理)
- return val;
- },
- // x轴字体颜色
- textStyle: {
- color: "#999999",
- // lineHeight: 20,
- fontSize: 12,
- },
- align: "center",
- // padding:[10,0 ,0,-40],
- },
- },
- ],
- yAxis: [
- {
- type: "value",
- boundaryGap: ["0%", "20%"],
- axisTick: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- textStyle: {
- color: "#666666", //更改坐标轴文字颜色
- fontSize: 14, //更改坐标轴文字大小
- },
- },
- splitLine: {
- show: true,
- lineStyle: {
- type: "dashed",
- },
- },
- // data:['0' , '100' , '200' , '300,400]
- },
- ],
- series: [
- {
- name: "期刊数量",
- type: "bar",
- barWidth: "40%",
- // data: [10, 52, 200, 334],
- data: this.form.organizer_journal_y,
- itemStyle: {
- //柱形图圆角,鼠标移上去效果,如果只是一个数字则说明四个参数全部设置为那么多
- normal: {
- //柱形图圆角,初始化效果
- barBorderRadius: [10, 10, 10, 10],
- },
- },
- },
- ],
- };
- // 期刊文章前5
- let option2 = {
- // title: {
- // text: '世界人口总量',
- // subtext: '数据来自网络'
- // },
- tooltip: {
- trigger: "axis",
- axisPointer: {
- type: "shadow",
- },
- },
- // legend: {
- // data: ['2011年', '2012年']
- // },
- grid: {
- left: "3%",
- right: "4%",
- bottom: "3%",
- top: "10%",
- containLabel: true,
- },
- xAxis: {
- type: "value",
- show: false,
- // boundaryGap: ['0', '50%']
- },
- yAxis: {
- // show:false,
- type: "category",
- axisTick: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- // data: ["应用物理", "应用物理", "应用物理", "应用物理", "应用物理"],
- data: this.form.journal_article_x,
- },
- series: [
- // {
- // name: '2011年',
- // type: 'bar',
- // data: [18203, 23489, 29034, 104970, 131744]
- // },
- {
- name: "文章数量",
- type: "bar",
- // data: [19325, 23438, 31000, 121594, 134141],
- data: this.form.journal_article_y,
- barWidth: "30%",
- itemStyle: {
- //柱形图圆角,鼠标移上去效果,如果只是一个数字则说明四个参数全部设置为那么多
- normal: {
- //柱形图圆角,初始化效果
- barBorderRadius: [10, 10, 10, 10],
- color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
- {
- offset: 0,
- color: "#FF852C",
- },
- {
- offset: 1,
- color: "#FFCF29",
- },
- ]),
- label: {
- show: true, //开启显示
- position: "right", //在上方显示
- textStyle: {
- //数值样式
- color: "#666666",
- fontSize: 14,
- },
- },
- },
- },
- },
- ],
- };
- // 文章来源分布
- let option3 = {
- backgroundColor: "#fff",
- // title: {
- // text: 'Customized Pie',
- // left: 'center',
- // top: 20,
- // textStyle: {
- // color: '#ccc'
- // }
- // },
- color: ["#FA9022", "#DCDB01", "#8C70F8", "#34A6FE", "#2A4AD1"],
- tooltip: {
- trigger: "item",
- formatter: "{a} <br/>{b} : {c} ({d}%)",
- },
- // visualMap: {
- // show: false,
- // min: 80,
- // max: 600,
- // inRange: {
- // colorLightness: [0, 1]
- // }
- // },
- series: [
- {
- name: "访问来源",
- type: "pie",
- radius: "55%",
- center: ["50%", "50%"],
- // data: [
- // { value: 335, name: "直接访问" },
- // { value: 310, name: "邮件营销" },
- // { value: 274, name: "联盟广告" },
- // { value: 235, name: "视频广告" },
- // { value: 400, name: "搜索引擎" },
- // ].sort(function (a, b) {
- // return a.value - b.value;
- // }),
- // data:this.form.journal_article.sort(function(a,b){return a.value-b.value}),
- data: this.form.journal_article,
- roseType: "radius",
- label: {
- color: "rgba(102, 102, 102,1)",
- fontSize: 14,
- },
- labelLine: {
- lineStyle: {
- color: "rgba(000, 000, 000, 0.1)",
- },
- smooth: 0.2,
- length: 8,
- length2: 5,
- },
- itemStyle: {
- // color: '#c23531',
- // shadowBlur: 200,
- // shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- animationType: "scale",
- animationEasing: "elasticOut",
- animationDelay: function (idx) {
- return Math.random() * 200;
- },
- },
- ],
- };
- // 文章分布/时间统计
- let option4 = {
- color: "#FFB81E",
- grid: {
- left: "3%",
- right: "4%",
- bottom: "3%",
- top: "10%",
- containLabel: true,
- },
- xAxis: {
- type: "category",
- boundaryGap: false,
- axisLine: {
- lineStyle: {
- color: "#D4D8EE",
- width: 2,
- // type:'dotted',
- },
- },
- // data: ["1", "2", "3", "", "", "", ""],
- data: this.form.pubtime_article_x,
- axisLabel: {
- formatter: function (val) {
- // return "中国科学院成都生物研究所 中国科学院成都生物研究所"; //对每个标签处理后的结果(通过js字符串方法处理)
- return val;
- },
- // x轴字体颜色
- textStyle: {
- color: "#999999",
- // lineHeight: 20,
- // fontSize: 12
- },
- align: "left",
- // padding:[10,0 ,0,-40],
- },
- },
- yAxis: {
- type: "value",
- splitLine: {
- show: true,
- lineStyle: {
- type: "dashed",
- },
- },
- axisTick: {
- show: false,
- interval: 100,
- },
- axisLine: {
- show: false,
- },
- boundaryGap: ["0%", "30%"],
- },
- series: [
- {
- // data: [50, 200, 20, 300, 150, 300, 100],
- data: this.form.pubtime_article_y,
- type: "line",
- symbol: "none", //取消折点圆圈
- areaStyle: {
- color: {
- type: "linear",
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- {
- offset: 0,
- color: "#FFC765", // 0% 处的颜色
- },
- {
- offset: 1,
- color: "#ffffff", // 100% 处的颜色
- },
- ],
- global: false, // 缺省为 false
- },
- },
- smooth: true,
- },
- ],
- };
- // 会议主办方统计
- let option5 = {
- color: ["#5066FF"],
- tooltip: {
- trigger: "axis",
- axisPointer: {
- // 坐标轴指示器,坐标轴触发有效
- type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
- },
- },
- grid: {
- left: "3%",
- right: "4%",
- bottom: "3%",
- top: "10%",
- containLabel: true,
- },
- xAxis: [
- {
- type: "category",
- // data: ["", "", "", "", "", ""],
- data: this.form.organizer_conference_x,
- axisTick: {
- alignWithLabel: true,
- },
- axisLine: {
- lineStyle: {
- color: "#D4D8EE",
- width: 2,
- type: "dotted",
- },
- },
- axisLabel: {
- formatter: function (val) {
- // return "中国科"; //对每个标签处理后的结果(通过js字符串方法处理)
- return val;
- },
- // x轴字体颜色
- textStyle: {
- color: "#999999",
- // lineHeight: 20,
- fontSize: 12,
- },
- align: "center",
- // padding:[10,0 ,0,-40],
- },
- },
- ],
- yAxis: [
- {
- type: "value",
- boundaryGap: ["0%", "20%"],
- axisTick: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisLabel: {
- show: true,
- textStyle: {
- color: "#666666", //更改坐标轴文字颜色
- fontSize: 14, //更改坐标轴文字大小
- },
- },
- splitLine: {
- show: true,
- lineStyle: {
- type: "dashed",
- },
- },
- // data:['0' , '100' , '200' , '300,400]
- },
- ],
- series: [
- {
- name: "会议数量",
- type: "bar",
- barWidth: "40%",
- // data: [50, 52, 200, 334, 45, 190, 240],
- data: this.form.organizer_conference_y,
- itemStyle: {
- //柱形图圆角,鼠标移上去效果,如果只是一个数字则说明四个参数全部设置为那么多
- normal: {
- //柱形图圆角,初始化效果
- barBorderRadius: [10, 10, 10, 10],
- },
- },
- },
- ],
- };
- // 会议发布/时间统计
- let option6 = {
- color: "#FFB81E",
- grid: {
- left: "3%",
- right: "4%",
- bottom: "3%",
- top: "10%",
- containLabel: true,
- },
- xAxis: {
- type: "category",
- boundaryGap: false,
- axisLine: {
- lineStyle: {
- color: "#D4D8EE",
- width: 2,
- // type:'dotted',
- },
- },
- // data: ["1", "1", "1", "1", "1", "1", "1"],
- data: this.form.pubtime_conference_x,
- axisLabel: {
- formatter: function (val) {
- return val;
- },
- // x轴字体颜色
- textStyle: {
- color: "#999999",
- // lineHeight: 20,
- // fontSize: 12
- },
- align: "left",
- // padding:[10,0 ,0,-40],
- },
- },
- yAxis: {
- type: "value",
- splitLine: {
- show: true,
- lineStyle: {
- type: "dashed",
- },
- },
- axisTick: {
- show: false,
- interval: 100,
- },
- axisLine: {
- show: false,
- },
- boundaryGap: ["0%", "30%"],
- },
- series: [
- {
- // data: [50, 200, 20, 300, 150, 300, 100],
- data: this.form.pubtime_conference_y,
- type: "line",
- symbol: "none", //取消折点圆圈
- areaStyle: {
- color: {
- type: "linear",
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- {
- offset: 0,
- color: "#FFC765", // 0% 处的颜色
- },
- {
- offset: 1,
- color: "#ffffff", // 100% 处的颜色
- },
- ],
- global: false, // 缺省为 false
- },
- },
- smooth: true,
- },
- ],
- };
- myChart.setOption(option);
- myChart1.setOption(option1);
- myChart2.setOption(option2);
- myChart3.setOption(option3);
- myChart4.setOption(option4);
- myChart5.setOption(option5);
- myChart6.setOption(option6);
- },
- getData() {
- this.$api.getIndexData({}).then((res) => {
- this.form = res.data.data;
- this.form.search_hot_word = this.form.search_hot_word.concat(
- this.form.search_hot_word
- );
- let organizer_journal_x = [];
- let organizer_journal_y = [];
- let journal_article_x = [];
- let journal_article_y = [];
- let pubtime_article_x = [];
- let pubtime_article_y = [];
- let organizer_conference_x = [];
- let organizer_conference_y = [];
- let pubtime_conference_x = [];
- let pubtime_conference_y = [];
- this.form.organizer_journal.forEach((item, index) => {
- organizer_journal_x.push(item.name);
- organizer_journal_y.push(item.value);
- });
- this.form.journal_article_top5.forEach((item, index) => {
- journal_article_x.push(item.journal_name);
- journal_article_y.push(item.count);
- });
- this.form.pubtime_article.forEach((item, index) => {
- pubtime_article_x.push(item.publish_time);
- pubtime_article_y.push(item.count);
- });
- this.form.organizer_conference.forEach((item, index) => {
- organizer_conference_x.push(item.organizer_name);
- organizer_conference_y.push(item.count);
- });
- this.form.pubtime_conference.forEach((item, index) => {
- pubtime_conference_x.push(item.publish_time);
- pubtime_conference_y.push(item.count);
- });
- this.form.organizer_journal_x = organizer_journal_x;
- this.form.organizer_journal_y = organizer_journal_y;
- this.form.journal_article_x = journal_article_x.reverse();
- this.form.journal_article_y = journal_article_y.reverse();
- this.form.pubtime_article_x = pubtime_article_x;
- this.form.pubtime_article_y = pubtime_article_y;
- this.form.organizer_conference_x = organizer_journal_x;
- this.form.organizer_conference_y = organizer_journal_y;
- this.form.pubtime_conference_x = pubtime_conference_x;
- this.form.pubtime_conference_y = pubtime_conference_y;
- this.getEcharts();
- });
- },
- },
- mounted() {},
- beforeCreate(){
- this.$api.getAccountInfo().then((res) => {
- this.role_id = res.data.data.role_id;
- // this.getData();
- // var color = [];
- // for (let i = 0; i < 5; i++) {
- // let c =
- // "rgb(" +
- // [
- // Math.round(Math.random() * 160),
- // Math.round(Math.random() * 160),
- // Math.round(Math.random() * 160),
- // ].join(",") +
- // ")";
- // color.push(c);
- // }
- // this.myColors = color;
- });
- },
- created() {
- this.$api.getAccountInfo().then((res) => {
- this.role_id = res.data.data.role_id;
- this.getData();
- var color = [];
- for (let i = 0; i < 5; i++) {
- let c =
- "rgb(" +
- [
- Math.round(Math.random() * 160),
- Math.round(Math.random() * 160),
- Math.round(Math.random() * 160),
- ].join(",") +
- ")";
- color.push(c);
- }
- this.myColors = color;
- });
- },
- };
- </script>
- <style lang='scss' scoped>
- section {
- // width:100%;
- .index_header {
- background: #ffffff;
- height: 102px;
- border-radius: 10px;
- display: flex;
- align-items: center;
- .header-item {
- flex: 1;
- display: flex;
- justify-content: space-evenly;
- align-items: center;
- height: 56px;
- &:not(:last-child) {
- border-right: 1px solid #d8d8d8;
- }
- .text {
- font-size: 16px;
- color: #666666;
- }
- .count {
- font-size: 32px;
- }
- .item-img {
- display: flex;
- img {
- width: 56px;
- height: 56px;
- margin-right: 30px;
- }
- .text {
- position: relative;
- top: -8px;
- }
- .count {
- color: #208cfe;
- position: relative;
- bottom: -11px;
- }
- }
- .item-text {
- & > div {
- display: flex;
- align-items: center;
- .text {
- width: 120px;
- }
- }
- }
- }
- }
- .index-main {
- background: #ffffff;
- border-radius: 10px;
- margin-top: 20px;
- padding: 20px;
- .main-item {
- position: relative;
- .item-title {
- font-size: 18px;
- font-weight: bold;
- color: #333333;
- margin-bottom: 20px;
- }
- .item-more {
- position: absolute;
- top: 20px;
- right: 20px;
- font-size: 14px;
- color: #3895fe;
- }
- }
- .main-content {
- display: flex;
- & > div:not(:last-child) {
- border-right: 1px solid #eee;
- }
- .c1 {
- flex: 1;
- .h2 {
- font-size: 14px;
- color: #999999;
- height: 40px;
- line-height: 40px;
- width: 80%;
- span:nth-of-type(2) {
- margin-left: 20px;
- }
- span:last-child {
- float: right;
- }
- }
- .con2 {
- font-size: 14px;
- color: #333333;
- height: 36px;
- line-height: 36px;
- background: #fafafa;
- border-radius: 7px;
- margin-bottom: 8px;
- padding: 0 10px;
- display: flex;
- width: 80%;
- &:nth-of-type(2) {
- color: #ef3d3d;
- }
- &:nth-of-type(3) {
- color: #fdad23;
- }
- &:nth-of-type(4) {
- color: #56ccf6;
- }
- span:nth-of-type(2) {
- margin-left: 20px;
- }
- span:last-child {
- float: right;
- }
- .a_title {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- width: 80%;
- }
- }
- }
- .c2 {
- flex: 1.5;
- }
- .c1,
- .c2 {
- width: 100%;
- // flex:1;
- padding: 10px;
- box-sizing: border-box;
- }
- .c1-title,
- .c2-title {
- font-size: 15px;
- font-weight: bold;
- color: #666666;
- // margin-top:20px;
- }
- }
- }
- }
- </style>
|