trafficAnalysis.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <div class="traffic-analysis-page">
  3. <div class="search-form">
  4. <!-- 站点选择和时间筛选 -->
  5. <a-row class="r1 search-form-container" :gutter="8">
  6. <a-col :xl="7" :xxl="6">
  7. <div class="choose-site">
  8. <span class="t1">站点:</span>
  9. <select-site @set-site-info="changeSite" select-width="100%" />
  10. </div>
  11. </a-col>
  12. <a-col :xl="8" :xxl="6">
  13. <div class="choose-site">
  14. <span class="t1">统计时间:</span>
  15. <a-range-picker @change="onChangeDatePicker" :disabledDate="disabledDate" :value="rangeDate" style="width: 70%" />
  16. </div>
  17. </a-col>
  18. <a-col :xl="9" :xxl="12">
  19. <a-button-group class="time-btn-group">
  20. <a-button :class="queryParam.dateType == '' ? 'active' : ''" @click="setTime('')">全部时间</a-button>
  21. <a-button :class="queryParam.dateType == 'thirtyDay' ? 'active' : ''" @click="setTime('thirtyDay')">近30天</a-button>
  22. <a-button :class="queryParam.dateType == 'sevenDay' ? 'active' : ''" @click="setTime('sevenDay')">近一周</a-button>
  23. <a-button :class="queryParam.dateType == 'yesterday' ? 'active' : ''" @click="setTime('yesterday')">昨日</a-button>
  24. <a-button :class="queryParam.dateType == 'today' ? 'active' : ''" @click="setTime('today')">今日</a-button>
  25. </a-button-group>
  26. </a-col>
  27. </a-row>
  28. </div>
  29. <a-spin :spinning="loading" tip="加载中...">
  30. <a-row class="r2">
  31. <a-col :span="6">
  32. <p class="t1">访客数(UV)</p>
  33. <p class="t3">{{ flowIndexNums.uv.toLocaleString() }}</p>
  34. </a-col>
  35. <a-col :span="6">
  36. <p class="t1">浏览量(PV)</p>
  37. <p class="t3">{{ flowIndexNums.pv.toLocaleString() }}</p>
  38. </a-col>
  39. <a-col :span="6">
  40. <p class="t1">会话数</p>
  41. <p class="t3">{{ flowIndexNums.sessions.toLocaleString() }}</p>
  42. </a-col>
  43. <a-col :span="6">
  44. <p class="t1">询盘数</p>
  45. <p class="t3">{{ flowIndexNums.enquiry.toLocaleString() }}</p>
  46. </a-col>
  47. </a-row>
  48. <a-row>
  49. <a-col :span="24">
  50. <a-card style="margin: 10px" title="核心数据">
  51. <a-row class="r5" :gutter="[20, 20]">
  52. <a-row class="r5-1">
  53. <a-col :span="24">
  54. <area-chart v-if="coreDataChart.x.length > 0" :dataSource="coreDataChart" />
  55. <a-empty v-else style="float: right; width: 100%; margin-top: 110px" />
  56. </a-col>
  57. </a-row>
  58. </a-row>
  59. <a-row class="r2">
  60. <a-col style="width: 20%">
  61. <p class="t1">日均访问量</p>
  62. <p class="t3">{{ statistics.averageVisit.toLocaleString() }}</p>
  63. </a-col>
  64. <a-col style="width: 20%">
  65. <p class="t1">平均访问时长</p>
  66. <p class="t3">{{ statistics.averageVisitDuration }}</p>
  67. </a-col>
  68. <a-col style="width: 20%">
  69. <p class="t1">访客平均访问页面数</p>
  70. <p class="t3">{{ statistics.averageVisitPage.toLocaleString() }}</p>
  71. </a-col>
  72. <a-col style="width: 20%">
  73. <p class="t1">跳出率</p>
  74. <p class="t3">{{ statistics.bounceRate }}</p>
  75. </a-col>
  76. <a-col style="width: 20%">
  77. <p class="t1">UV到询盘转化率</p>
  78. <p class="t3">{{ statistics.conversionRate }}</p>
  79. </a-col>
  80. </a-row>
  81. </a-card>
  82. </a-col>
  83. <a-col :span="24">
  84. <a-card style="margin: 10px" title="访客数地域分布">
  85. <a-row class="r5">
  86. <a-col :span="18">
  87. <map-adweb v-if="countryMapData.length > 0" :dataSource="countryMapData" height="400" />
  88. <a-empty v-else style="margin-top: 50px" />
  89. </a-col>
  90. <a-col :span="6">
  91. <a-table
  92. :rowKey="
  93. (record, index) => {
  94. return index;
  95. }
  96. "
  97. class="chartTable"
  98. :scroll="{ y: 500 }"
  99. :pagination="false"
  100. :columns="chartDetailDataCol"
  101. :data-source="chartDetailData"
  102. :showHeader="false"
  103. >
  104. <template #bodyCell="{ column, record }">
  105. <template v-if="column.key === 'flagSlot'">
  106. <span class="img-box">
  107. <span :class="'flag-icon flag-icon-' + record.countryCode"></span>
  108. </span>
  109. </template>
  110. <template v-if="column.key === 'numSlot'"> {{ record.totalUsers }} | {{ record.totalUsersProportion }} </template>
  111. </template>
  112. </a-table>
  113. </a-col>
  114. </a-row>
  115. </a-card>
  116. </a-col>
  117. <a-col :span="12">
  118. <a-card style="margin: 10px" title="访客数设备分布">
  119. <a-row class="r5" :gutter="[20, 20]">
  120. <a-col :span="24">
  121. <DeviceStatsUV :deviceStats="deviceStats" />
  122. </a-col>
  123. </a-row>
  124. </a-card>
  125. </a-col>
  126. <a-col :span="12">
  127. <a-card style="margin: 10px" title="浏览量设备分布">
  128. <a-row class="r5" :gutter="[20, 20]">
  129. <a-col :span="24">
  130. <DeviceStatsPV :deviceStats="deviceStats" />
  131. </a-col>
  132. </a-row>
  133. </a-card>
  134. </a-col>
  135. <!-- 来源媒介 -->
  136. <a-col :span="24">
  137. <a-card style="margin: 10px" title="来源媒介">
  138. <a-row class="r5" :gutter="[20, 20]">
  139. <a-col :span="24">
  140. <a-table :columns="mediaListColumns" :data-source="mediaDatasource" size="middle" rowKey="type" :pagination="false">
  141. <template #filterDropdown>
  142. <div style="padding: 10px">
  143. affiliate:通过联属营销计划点击链接的用户<br />
  144. cpc:(每次点击费用的缩写)点击付费广告的用户<br />
  145. organic:点击搜索引擎中的链接的用户<br />
  146. referral:点击网站上的链接(例如,视频说明中的链接)的用户<br />
  147. (none):直接流量
  148. </div>
  149. </template>
  150. <template #filterIcon>
  151. <a-icon type="question-circle" :style="{ fontSize: '16px', color: '#108ee9' }" />
  152. </template>
  153. <template #bodyCell="{ column, record, index, text }">
  154. <template v-if="column.key === 'typeSlotFirst'">
  155. {{ record.type.split('/')[0] }}
  156. </template>
  157. <template v-if="column.key === 'typeSlotLast'">
  158. <a-popover>
  159. <template #content>
  160. <template v-if="record.type.split('/')[1] === ' affiliate'"> 通过联属营销计划点击链接的用户 </template>
  161. <template v-if="record.type.split('/')[1] === ' cpc'"> (每次点击费用的缩写)点击付费广告的用户 </template>
  162. <template v-if="record.type.split('/')[1] === ' organic'"> 点击搜索引擎中的链接的用户 </template>
  163. <template v-if="record.type.split('/')[1] === ' referral'"> 点击网站上的链接(例如,视频说明中的链接)的用户 </template>
  164. <template v-if="record.type.split('/')[1] === ' (none)'"> 直接流量 </template>
  165. </template>
  166. {{ record.type.split('/')[1] }}
  167. </a-popover>
  168. </template>
  169. <template v-if="column.key === 'avgSessionDurationSlot'">
  170. <span style="margin-left: 30px">{{ record.avgSessionDuration }} s</span>
  171. </template>
  172. </template>
  173. </a-table>
  174. </a-col>
  175. </a-row>
  176. </a-card>
  177. </a-col>
  178. <!-- 最多访问TOP10 -->
  179. <a-col :span="24">
  180. <a-card style="margin: 10px" title="最多访问TOP10">
  181. <a-row class="r5" :gutter="[20, 20]">
  182. <a-col :span="24">
  183. <a-table :columns="mostAccessColumns" :data-source="mostAccessDatasource" size="middle" rowKey="type" :pagination="false">
  184. <template #bodyCell="{ column, record, index, text }">
  185. <template v-if="column.key === 'pagePathSlot'">
  186. <a-popover>
  187. <template #content>
  188. {{ text }}
  189. </template>
  190. <a :href="text" target="_blank">
  191. <div style="width: 700px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">
  192. {{ text }}
  193. </div>
  194. </a>
  195. </a-popover>
  196. </template>
  197. <template v-if="column.key === 'centerSlot'">
  198. <span style="margin-left: 20px">{{ text }}</span>
  199. </template>
  200. <template v-if="column.key === 'avgTimeOnPageSlot'">
  201. <span style="margin-left: 30px">{{ text }} s</span>
  202. </template>
  203. </template>
  204. </a-table>
  205. </a-col>
  206. </a-row>
  207. </a-card>
  208. </a-col>
  209. </a-row>
  210. </a-spin>
  211. </div>
  212. </template>
  213. <script lang="ts" name="data-trafficAnalysis" setup>
  214. import selectSite from '@/components/Adweb/selectSite.vue';
  215. import areaChart from './chart/areaChart.vue';
  216. import { computed, reactive, ref } from 'vue';
  217. import { getAction } from '@/api/manage/manage';
  218. import MapAdweb from '@/components/chart/mapAdweb.vue';
  219. import DeviceStatsPV from './components/DeviceStatsPV.vue';
  220. import DeviceStatsUV from './components/DeviceStatsUV.vue';
  221. import 'flag-icon-css/css/flag-icons.css';
  222. import dayjs from 'dayjs';
  223. const queryParam = reactive<any>({});
  224. queryParam.limit = 10;
  225. queryParam.siteCode = localStorage.getItem('siteCode');
  226. const loading = ref(false);
  227. const chartDetailDataCol = ref([
  228. {
  229. title: '国旗',
  230. align: 'center',
  231. key: 'flagSlot',
  232. width: 30,
  233. scopedSlots: { customRender: 'flagSlot' },
  234. },
  235. {
  236. title: '国家',
  237. align: 'left',
  238. dataIndex: 'countryName',
  239. customRender: function (text, record) {
  240. return text === null ? record.country : text;
  241. },
  242. },
  243. {
  244. title: '数量',
  245. align: 'right',
  246. key: 'numSlot',
  247. scopedSlots: { customRender: 'numSlot' },
  248. },
  249. ]);
  250. // 来源媒介列表
  251. const mediaListColumns = ref([
  252. {
  253. title: '来源',
  254. key: 'typeSlotFirst',
  255. scopedSlots: {
  256. customRender: 'typeSlotFirst',
  257. },
  258. },
  259. {
  260. title: '媒介',
  261. key: 'typeSlotLast',
  262. scopedSlots: {
  263. filterDropdown: 'filterDropdown',
  264. filterIcon: 'filterIcon',
  265. customRender: 'typeSlotLast',
  266. },
  267. },
  268. {
  269. title: '访客数(UV)',
  270. dataIndex: 'totalUsers',
  271. },
  272. {
  273. title: '占比',
  274. dataIndex: 'totalUsersProportion',
  275. },
  276. {
  277. title: '新访客数',
  278. dataIndex: 'newUsers',
  279. },
  280. {
  281. title: '新客占比',
  282. dataIndex: 'newUsersRatio',
  283. },
  284. {
  285. title: '浏览量(PV)',
  286. dataIndex: 'pageViews',
  287. },
  288. {
  289. title: '平均访问页面数',
  290. dataIndex: 'pageViewsPerSession',
  291. },
  292. {
  293. title: '会话数',
  294. dataIndex: 'sessions',
  295. },
  296. {
  297. title: '平均会话时长',
  298. key: 'avgSessionDurationSlot',
  299. sortDirections: ['descend', 'ascend'],
  300. sorter: (a, b) => a.avgSessionDuration - b.avgSessionDuration,
  301. scopedSlots: {
  302. customRender: 'avgSessionDurationSlot',
  303. },
  304. },
  305. ]);
  306. // 最多访问TOP10列表
  307. const mostAccessColumns = ref([
  308. {
  309. title: '来源',
  310. dataIndex: 'pagePath',
  311. scopedSlots: {
  312. customRender: 'pagePathSlot',
  313. },
  314. },
  315. {
  316. title: '浏览量(PV)',
  317. dataIndex: 'pageViews',
  318. defaultSortOrder: 'descend',
  319. sorter: (a, b) => a.pageViews - b.pageViews,
  320. width: 160,
  321. scopedSlots: {
  322. customRender: 'centerSlot',
  323. },
  324. },
  325. {
  326. title: '浏览量占比',
  327. dataIndex: 'pvProportion',
  328. width: 160,
  329. scopedSlots: {
  330. customRender: 'centerSlot',
  331. },
  332. },
  333. // {
  334. // title: '平均页面停留时间',
  335. // dataIndex: 'avgTimeOnPage',
  336. // sortDirections: ['descend', 'ascend'],
  337. // width: 160,
  338. // scopedSlots: {
  339. // customRender: 'avgTimeOnPageSlot',
  340. // }
  341. // },
  342. ]);
  343. function changeSite(selectedSiteInfo: any) {
  344. queryParam.siteCode = selectedSiteInfo.code;
  345. localStorage.setItem('siteCode', queryParam.siteCode);
  346. reloadData();
  347. }
  348. //重新刷新页面数据
  349. function reloadData() {
  350. loading.value = true;
  351. getFlowIndexNumber();
  352. getCountryMapData();
  353. getMediaList();
  354. getMostAccessList();
  355. getDeviceStats();
  356. }
  357. const flowIndexNums = ref({
  358. uv: 0,
  359. pv: 0,
  360. sessions: 0,
  361. enquiry: 0,
  362. });
  363. const coreDataChart = ref({
  364. x: [],
  365. uv: [],
  366. pv: [],
  367. enquiry: [],
  368. });
  369. const statistics = ref({
  370. averageVisit: 0,
  371. averageVisitDuration: 0,
  372. averageVisitPage: 0,
  373. bounceRate: '0%',
  374. conversionRate: '0%',
  375. });
  376. //访客量、浏览量、询盘数量、折线图以及统计
  377. const getFlowIndexNumber = async () => {
  378. try {
  379. const res = await getAction('/dmp-data/site-overview/stats', queryParam);
  380. if (!res.result) {
  381. flowIndexNums.value = {
  382. uv: 0,
  383. pv: 0,
  384. sessions: 0,
  385. enquiry: 0,
  386. };
  387. coreDataChart.value = {
  388. x: [],
  389. uv: [],
  390. pv: [],
  391. enquiry: [],
  392. };
  393. statistics.value = {
  394. averageVisit: 0,
  395. averageVisitDuration: 0,
  396. averageVisitPage: 0,
  397. bounceRate: '0%',
  398. conversionRate: '0%',
  399. };
  400. loading.value = false;
  401. return;
  402. }
  403. flowIndexNums.value.uv = res.result.totalUsers;
  404. flowIndexNums.value.pv = res.result.pageViews;
  405. flowIndexNums.value.sessions = res.result.sessions;
  406. flowIndexNums.value.enquiry = res.result.enquires;
  407. const r = res.result.dailyStats;
  408. const x = [],
  409. pv = [],
  410. uv = [],
  411. enquiry = [];
  412. if (r != null && r.length > 0) {
  413. for (let item of r) {
  414. x.push(item.date);
  415. pv.push(item.pageViews);
  416. uv.push(item.totalUsers);
  417. enquiry.push(item.enquires);
  418. }
  419. }
  420. coreDataChart.value.x = x;
  421. coreDataChart.value.pv = pv;
  422. coreDataChart.value.uv = uv;
  423. coreDataChart.value.enquiry = enquiry;
  424. statistics.value.averageVisit = res.result.dailyTotalUsers;
  425. statistics.value.averageVisitDuration = res.result.avgTimeOnPage;
  426. statistics.value.averageVisitPage = res.result.pageViewsPerSession;
  427. statistics.value.bounceRate = res.result.bounceRate;
  428. statistics.value.conversionRate = res.result.enquiryConversionRate;
  429. loading.value = false;
  430. } catch (error) {
  431. console.error(error);
  432. }
  433. };
  434. const chartDetailData = ref([]);
  435. const countryMapData = ref([]);
  436. //访客数地域分布
  437. const getCountryMapData = async () => {
  438. try {
  439. const res = await getAction('/dmp-data/country/stats', queryParam);
  440. if (res.code === 200) {
  441. chartDetailData.value = res.result;
  442. countryMapData.value = chartDetailData.value.map((entry) => ({
  443. name: entry.countryName,
  444. value: entry.totalUsers,
  445. }));
  446. }
  447. } catch (error) {
  448. console.error(error);
  449. }
  450. };
  451. const mediaDatasource = ref([]);
  452. const deviceStats = ref([]); // 设备统计数据
  453. // 新增获取设备统计数据的函数
  454. const getDeviceStats = async () => {
  455. try {
  456. const res = await getAction('/dmp-data/device/stats', queryParam);
  457. if (res.code === 200) {
  458. deviceStats.value = res.result; // Update the deviceStats with the response
  459. } else {
  460. deviceStats.value = []; // Reset if there's an error
  461. }
  462. } catch (error) {
  463. console.error(error);
  464. }
  465. };
  466. //来源媒介列表、最多访问top10列表
  467. const getMediaList = async () => {
  468. try {
  469. const res = await getAction('/dmp-data/source-medium/stats', queryParam);
  470. if (res.code == 200) {
  471. mediaDatasource.value = res.result;
  472. } else {
  473. mediaDatasource.value = [];
  474. }
  475. } catch (error) {
  476. console.error(error);
  477. }
  478. };
  479. const mostAccessDatasource = ref([]);
  480. //
  481. const getMostAccessList = async () => {
  482. try {
  483. const res = await getAction('/dmp-data/page-path/stats', queryParam);
  484. if (res.code == 200) {
  485. mostAccessDatasource.value = res.result;
  486. } else {
  487. mostAccessDatasource.value = [];
  488. }
  489. } catch (error) {
  490. console.error(error);
  491. }
  492. };
  493. const rangeDate = ref([]);
  494. const onChangeDatePicker = (date, dateString) => {
  495. if (dateString.length > 0) {
  496. rangeDate.value = date;
  497. queryParam.start = dateString[0];
  498. queryParam.end = dateString[1];
  499. queryParam.dateType = undefined;
  500. reloadData();
  501. }
  502. };
  503. //日期选择只能今天之前
  504. function disabledDate(current) {
  505. return current && current > dayjs();
  506. }
  507. const setTime = (time) => {
  508. queryParam.dateType = time;
  509. queryParam.start = '';
  510. queryParam.end = '';
  511. if (time == '') {
  512. rangeDate.value = undefined;
  513. } else if (time == 'sevenDay') {
  514. rangeDate.value = [dayjs().add(-7, 'd'), dayjs().add(-1, 'd')];
  515. } else if (time == 'thirtyDay') {
  516. rangeDate.value = [dayjs().add(-30, 'd'), dayjs().add(-1, 'd')];
  517. } else if (time == 'yesterday') {
  518. rangeDate.value = [dayjs().add(-1, 'd'), dayjs().add(-1, 'd')];
  519. } else if (time == 'today') {
  520. rangeDate.value = [dayjs(), dayjs()];
  521. }
  522. reloadData();
  523. };
  524. </script>
  525. <style lang="less" scoped>
  526. .self-pop {
  527. .ant-popover-inner-content {
  528. background: rgb(245, 243, 254);
  529. p {
  530. font-size: 13px;
  531. }
  532. }
  533. .ant-popover-arrow {
  534. border-color: rgb(245, 243, 254) !important;
  535. }
  536. }
  537. .img-box {
  538. width: 22px;
  539. height: 15px;
  540. display: flex;
  541. justify-content: center;
  542. align-items: center;
  543. img {
  544. width: 100%;
  545. height: 100%;
  546. }
  547. }
  548. .ant-alert {
  549. /deep/ .ant-btn {
  550. border-radius: 0;
  551. margin-left: 10px;
  552. }
  553. }
  554. .theme-color {
  555. color: @primary-color;
  556. }
  557. .r1 {
  558. margin: 20px;
  559. .choose-site {
  560. display: flex;
  561. }
  562. .t1 {
  563. font-size: 18px;
  564. font-weight: 400;
  565. letter-spacing: 0px;
  566. line-height: 32px;
  567. margin-left: 10px;
  568. }
  569. .ant-form-item {
  570. flex: 1;
  571. }
  572. .ant-calendar-picker {
  573. margin-right: 20px;
  574. }
  575. /deep/ .ant-btn {
  576. background: transparent;
  577. margin-right: 10px;
  578. padding: 4px 15px;
  579. border: 1px solid #d9d9d9;
  580. border-radius: 4px;
  581. transition: all 0.3s;
  582. &:hover {
  583. color: @primary-color;
  584. border-color: @primary-color;
  585. }
  586. &.active {
  587. color: @primary-color;
  588. background: #e6f7ff;
  589. border-color: @primary-color;
  590. }
  591. }
  592. .time-btn-group {
  593. /deep/ .ant-btn {
  594. background: #fff;
  595. padding: 4px 15px;
  596. border: 1px solid #d9d9d9;
  597. transition: all 0.3s;
  598. margin-right: 0;
  599. &:first-child {
  600. border-top-left-radius: 4px;
  601. border-bottom-left-radius: 4px;
  602. }
  603. &:last-child {
  604. border-top-right-radius: 4px;
  605. border-bottom-right-radius: 4px;
  606. }
  607. &:not(:first-child) {
  608. margin-left: -1px;
  609. }
  610. &:hover {
  611. color: @primary-color;
  612. border-color: @primary-color;
  613. position: relative;
  614. z-index: 1;
  615. background: #fff;
  616. }
  617. &.active {
  618. color: @primary-color;
  619. background: #e6f7ff;
  620. border-color: @primary-color;
  621. position: relative;
  622. z-index: 2;
  623. }
  624. }
  625. }
  626. }
  627. .r2 {
  628. background: #fff;
  629. padding: 30px 20px;
  630. margin: 0 10px 10px 10px;
  631. .ant-col:not(:last-child) {
  632. border-right: 1px solid #e6e6e6;
  633. }
  634. p {
  635. margin: 0;
  636. text-align: center;
  637. &.t1 {
  638. color: #333;
  639. margin-bottom: 15px;
  640. img {
  641. margin-right: 10px;
  642. width: 15px;
  643. margin-top: -5px;
  644. }
  645. }
  646. &.t2 {
  647. color: @primary-color;
  648. font-size: 30px;
  649. font-weight: 500;
  650. line-height: 1;
  651. padding-left: 25px;
  652. }
  653. &.t3 {
  654. font-size: 32px;
  655. font-weight: 700;
  656. letter-spacing: 0px;
  657. line-height: 38px;
  658. color: rgba(13, 62, 122, 1);
  659. }
  660. }
  661. }
  662. .r5 {
  663. background: #fff;
  664. padding: 10px;
  665. border-radius: 10px;
  666. margin: 0 !important;
  667. .wrap {
  668. box-shadow: 0px 2px 4px 0px @primary-color;
  669. padding: 15px;
  670. border-radius: 10px;
  671. overflow: hidden;
  672. background: #fff;
  673. transition: all 0.3s;
  674. &.blue {
  675. box-shadow: 0px 2px 4px 0px @primary-color;
  676. }
  677. &.effect:hover {
  678. box-shadow: none;
  679. background: rgb(241, 248, 255);
  680. }
  681. img {
  682. width: 15px;
  683. }
  684. .fr {
  685. float: right;
  686. width: calc(100% - 15px);
  687. text-align: center;
  688. p:last-child {
  689. font-size: 30px;
  690. text-align: center;
  691. margin-top: 10px;
  692. }
  693. }
  694. }
  695. /deep/ .ant-table-thead > tr > th {
  696. background: rgb(241, 248, 255);
  697. border: none;
  698. color: #000;
  699. padding: 10px;
  700. }
  701. /deep/ .ant-table-tbody .ant-table-row td {
  702. padding: 10px;
  703. color: #000;
  704. }
  705. .r5-1 {
  706. display: inline-block;
  707. width: 100%;
  708. margin-top: 30px;
  709. .fl {
  710. float: left;
  711. position: relative;
  712. .ant-btn {
  713. border-radius: 0;
  714. border: none;
  715. margin-right: 10px;
  716. }
  717. }
  718. .fr {
  719. float: right;
  720. line-height: 2;
  721. span {
  722. margin-right: 30px;
  723. i {
  724. display: inline-block;
  725. width: 25px;
  726. height: 3px;
  727. background: #544beb;
  728. position: relative;
  729. top: -4px;
  730. margin-right: 20px;
  731. }
  732. &:last-child i {
  733. background: #f0b358;
  734. }
  735. }
  736. }
  737. }
  738. .box {
  739. border-radius: 10px;
  740. text-align: center;
  741. min-height: 180px;
  742. display: flex;
  743. flex-direction: column;
  744. justify-content: center;
  745. p {
  746. color: #fff;
  747. img {
  748. width: 19px;
  749. margin: -5px 10px 0 0;
  750. }
  751. }
  752. .num {
  753. font-size: 30px;
  754. margin-bottom: 10px;
  755. }
  756. &.b1 {
  757. background: rgb(233, 107, 95);
  758. }
  759. &.b2 {
  760. background: rgb(88, 204, 168);
  761. }
  762. &.b3 {
  763. background: rgb(124, 152, 252);
  764. }
  765. &.b4 {
  766. background: #f0b358;
  767. }
  768. }
  769. }
  770. </style>