1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048 |
- <template>
- <view>
- <view class="navbar-tit">{{title}}</view>
- <view class="statisticsData">
- <view class="statisticsData-item">
- <h3 style="font-size: 20px;">{{info.merchantAccountName}}</h3>
- </view>
- <view class="statisticsDataMain" v-if="indexData">
- <view class="statisticsData-item">
- <view class="statisticsData-head" @click="gotoUrl('pagesFinance/detailed/index')">
- <p>今日充电流水</p>
- <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#637AA2" size="36">
- </u-icon>
- </view>
- <view class="statisticsData-main">
- <h2>{{indexData.todayAmount?indexData.todayAmount.toFixed(2):0}}元</h2>
- </view>
- <view class="statisticsData-foot">
- <p>昨日</p>
- <h2 style="margin-left: 10px;">
- {{indexData.yesterdayAmount?indexData.yesterdayAmount.toFixed(2):0}}元</h2>
- </view>
- </view>
- <view class="statisticsData-item">
- <view>
- <h3> </h3>
- </view>
- <view class="statisticsData-head">
- <p>今日充电笔数</p>
- </view>
- <view class="statisticsData-main">
- <h2>{{indexData.todayEQNum?indexData.todayEQNum:0}}笔</h2>
- </view>
- <view class="statisticsData-foot">
- <p>本月</p>
- <h2 style="margin-left: 10px;">
- {{indexData.thisMonthAmount?indexData.thisMonthAmount.toFixed(2):0}}元</h2>
- </view>
- </view>
- </view>
- </view>
- <u-popup v-model="popupShow" mode="top" height="30%">
- <view class="popup-screen">
- <view class="screen">
- <view class="screen-item">
- <view class="screen-head">查询日期</view>
- <view class="screen-main2">
- <u-input :value="startTime?startTime+'至'+endTime:'选择时间筛选'" :type="type" :border="border"
- @click="showdate = true,popupShow=false" />
- <!--
- <u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet>
- -->
- </view>
- </view>
- <view class="screen-item" v-if="false">
- <view class="screen-head">充电桩类型</view>
- <view class="screen-main">
- <view :class="{
- active:selecttype==''
- }" @click="selecttype=''" class="screen-entry ">全部</view>
- <view :class="{
- active:selecttype=='0'
- }" @click="selecttype='0'" class="screen-entry type1">自行车充电</view>
- <view :class="{
- active:selecttype=='2'
- }" @click="selecttype='2'" class="screen-entry type3">交流慢充</view>
- <view :class="{
- active:selecttype=='1'
- }" @click="selecttype='1'" class="screen-entry type2">直流快充</view>
- </view>
- </view>
- <view class="screen-item" v-if="false">
- <view class="screen-head">站点</view>
- <view class="screen-main">
- <view class="screen-entry " :class="{
- active:selectstationId==''
- }" @click="selectstationId=''">全部</view>
- <view v-for="(item,i) in stationList" :key="i" :class="{
- active:selectstationId==item.id
- }" @click="selectstationId=item.id,selectdeviceNo=''" class="screen-entry">{{item.name}}</view>
- </view>
- </view>
- <view class="screen-item" v-if="false">
- <view class="screen-head">桩号</view>
- <view class="screen-main">
- <view class="screen-entry " :class="{
- active:selectdeviceNo==''
- }" @click="selectdeviceNo=''">全部</view>
- <view v-for="(item,i) in stationListSon" :key="i"
- v-show="selectstationId?(selectstationId==item.stationId):true" :class="{
- active:selectdeviceNo==item.deviceNo
- }" @click="selectdeviceNo=item.deviceNo" class="screen-entry">{{item.name}}</view>
- </view>
- </view>
- </view>
- <view class="screen-foot">
- <view class="screen-btn-l" @click="resetBtn">重置</view>
- <view class="screen-btn-r" @click="okbtn">确定</view>
- </view>
- </view>
- </u-popup>
- <u-calendar v-model="showdate" mode="range" @change="changedate"></u-calendar>
- <u-calendar v-model="showdate2" mode="range" @change="changedate2"></u-calendar>
- <u-popup v-model="popupShow2" mode="top" height="50%">
- <view class="popup-screen">
- <view class="screen">
- <view class="screen-item">
- <view class="screen-head">查询日期</view>
- <view class="screen-main2">
- <u-input :value="startTime2?startTime2+'至'+endTime2:'选择时间筛选'" :type="type" :border="border"
- @click="showdate2 = true,popupShow2=false" />
- <!--
- <u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet>
- -->
- </view>
- </view>
- <view class="screen-item">
- <view class="screen-head">站点</view>
- <view class="screen-main">
- <view class="screen-entry " :class="{
- active:selectstationId2==''
- }" @click="selectstationId2=''">全部</view>
- <view v-for="(item,i) in stationList" :key="i" :class="{
- active:selectstationId2==item.id
- }" @click="selectstationId2=item.id,selectdeviceNo=''" class="screen-entry">{{item.name}}</view>
- </view>
- </view>
- </view>
- <view class="screen-foot">
- <view class="screen-btn-l" @click="resetBtn2">重置</view>
- <view class="screen-btn-r" @click="okbtn2">确定</view>
- </view>
- </view>
- </u-popup>
- <view class="statisticsChart">
- <view class="statisticsChart-head" style="margin-top: 20px;">
- <h4>流水统计</h4>
- <!-- <view class="navbar-screen" >
- {{startTime}}至{{endTime}}
- </view> -->
- <view class="navbar-screen" @click="popupShow = true"><span>筛选</span><u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon></view>
- </view>
- <view class="details detailstable">
- <p style="text-align: center; margin-bottom: 5px;">{{startTime}}至{{endTime}} </p>
- <u-collapse :headStyle="{
- color:'#101010',
- fontWeight: 'bold',
- padding:'12px 0',
- borderBottom: '1px solid #ededed'
-
- }"
- v-if="stationFlowList.length">
- <u-collapse-item
- v-for="(item, index) in stationFlowList" :open="index==0" :title="item.stationName+' 总收入'+item.actualMoney.toFixed(2)+'元'" :key="index">
- <!-- -->
- <view class="detailsline">
-
-
- <view class="details-row details-row-1">
-
- <view class="span1">电费</view>
- <view class="span2">{{item.elecMoney.toFixed(2)}}<span>元</span></view>
- </view>
- <view class="details-row">
- <view class="span1">服务费</view>
- <view class="span2">{{item.serviceMoney.toFixed(2)}}<span>元</span></view>
- </view>
- </view>
-
- <view class="detailsline">
- <view class="details-row details-row-1">
-
- <view class="span1">总用电量</view>
- <view class="span2">{{(item.eq/10000).toFixed(1)}}<span>度</span></view>
- </view>
- <view class="details-row">
-
-
- <view class="span1">充电枪数量</view>
- <view class="span2">快充{{item.fastNum}}/慢充{{item.slowNum}}</view>
- </view>
- </view>
-
- <view class="detailsline" v-if="item.fastNum&&item.slowNum">
- <view class="details-row details-row-1">
-
-
- <view class="span1">快充枪平均充电量</view>
- <view class="span2" v-if="item.fastNum">{{(item.eqFast/nowTime/item.fastNum/10000).toFixed(1)}}<span>度/枪/天</span></view>
- <view class="span2" v-else>0<span>度/枪/天</span></view>
- </view>
- <view class="details-row">
-
- <view class="span1">慢充枪平均充电量</view>
- <view class="span2" v-if="item.slowNum" >{{(item.eqSlow/nowTime/item.slowNum/10000).toFixed(1)}}<span>度/枪/天</span></view>
- <view class="span2" v-else>0<span>度/枪/天</span></view>
- </view>
- </view>
-
-
- </u-collapse-item>
- </u-collapse>
-
-
-
- </view>
- <view class="statisticsChart-head" v-if="false">
- <h4>流水占比</h4>
- <view class="navbar-screen" @click="popupShow = true"><span>筛选</span>
- <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
- </view>
- </view>
- <view class="statisticsChart-main" v-if="false">
- <!-- <u-calendar v-model="showdate" mode="range" @change="changedate"></u-calendar>
- -->
- <view class="statisticsChart-time" style="
- text-align: center; margin-bottom: 5px;
- ">
- <p>{{startTime}} 至 {{endTime}} </p>
- </view>
- <u-subsection :list="subsection" @change="changesub" :current="current" button-color="#2E7Dff"
- active-color="#fff"></u-subsection>
- <p v-if="step==0" style="text-align: center;">双击饼图进入详情</p>
- <p v-if="step==1" style="text-align: center;">
- <span v-if="step==1" style="position: absolute;left: 30px;" @click="step=0,getPie()">
- <u-icon name="arrow-left-double"></u-icon>
- 返回
- </span>{{stepname}}
- </p>
- <cover-view id="pieEcharts" style="min-height:250px;">
- </cover-view>
- </view>
- <view class="statisticsChart-head" style="margin-top: 20px;">
- <h4>收益统计</h4>
- <!-- <view class="navbar-screen" >
- {{startTime}}至{{endTime}}
- </view> -->
- <view class="navbar-screen" @click="popupShow2 = true"><span>筛选</span>
- <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
- </view>
- </view>
- <view class="details" v-if="indexData2&&indexData2.incomeMap">
- <p style="text-align: center; margin-bottom: 5px;">{{startTime2}}至{{endTime2}} </p>
- <view class="details-row">
- <p>投资人收入</p>
- <span>{{indexData2.incomeMap.incomeAmount.toFixed(2)}}元</span>
- </view>
- <view class="details-row" v-if="false">
- <p>用电度数</p>
- <span>{{indexData2.incomeMap.electricQuantity/10000}}度</span>
- </view>
- <view class="details-row">
- <p>预估电费</p>
- <span>{{indexData2.incomeMap.costAmount.toFixed(2)}}元</span>
- </view>
- <view class="details-row">
- <p>服务费收益</p>
- <span><b>{{indexData2.incomeMap.serviceAmount.toFixed(2)}}元</b></span>
- </view>
- </view>
- </view>
- <Tabbar :current="0" ref="tabbarMain"></Tabbar>
- <!-- <u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
- -->
- </view>
- </template>
- <script>
- import Tabbar from '@/components/TabbarFinance.vue'
- import * as API from '@/apis/finance.js'
- import * as echarts from "echarts";
- //require("@/apis/echarts-5-3.min.js")
- //import * as echarts from "@/apis/echarts-5-3.min.js";
- import {
- daysDistance,
- beforeTimeStamp,
- currentTimeStamp,
- parseUnixTime
- } from '@/utils'
- export default {
- data() {
- return {
- isinit: true,
- form: {},
- form2: {},
- selecttype: "",
- selectstationId: "",
- selectdeviceNo: "",
- popupShow2: false,
- popupShow: false,
- nowTime:0,
- selectstationId2: "",
- info: {},
- title: "",
- showdate: false,
- showdate2: false,
- startTime: "",
- indexData: {},
- endTime: "",
- startTime2: "",
- indexData2: null,
- endTime2: "",
- myChart: null,
- myChartReady: false,
- myChartTime: false,
- subsection: [{
- name: '金额'
- },
- {
- name: '笔数'
- }
- ],
- stationFlowList: [],
- stationList: [],
- stationListSon: [],
- tabbarList: [{
- iconPath: "bar-chart-box-fill",
- selectedIconPath: "bar-chart-box-fill",
- text: '统计',
- count: 0,
- isDot: true,
- customIcon: true,
- },
- {
- iconPath: "article-fill",
- selectedIconPath: "article-fill",
- text: '明细',
- midButton: true,
- customIcon: true,
- },
- {
- iconPath: "account-pin-box-fill",
- selectedIconPath: "account-pin-box-fill",
- text: '我的',
- count: 0,
- isDot: false,
- customIcon: true,
- },
- ],
- current: 0,
- background: {
- background: 'none'
- },
- value: '',
- type: 'select',
- show: false,
- border: true,
- step: 0,
- stepname: '',
- stepid: 0,
- }
- },
- onShow() {
- if (this.$refs.tabbarMain) {
- this.$refs.tabbarMain.setcount(0);
- }
- },
- onLoad() {
- this.title = "收益统计"
- this.info = this.carhelp.getPersonInfo("merchantUser")
- },
- components: {
- Tabbar
- },
- onReady() {
- var date=new Date();
- this.nowTime=7
-
- this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
- this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
- this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- this.getStation()
- },
- methods: {
- getStation(bl) {
- API.stationList().then((res) => {
- this.stationList = res.data.stationList
- this.stationListSon = res.data.deviceList
- this.getDataHome()
- this.getData()
- this.getData2()
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
- },
- resetBtn() {
- this.nowTime=7
- this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
- this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- this.selecttype = ""
- this.selectstationId = ""
- this.selectdeviceNo = ""
- this.form = {
- type: this.selecttype,
- stationId: this.selectstationId,
- deviceNo: this.selectdeviceNo,
- };
- this.popupShow = false;
- this.list = [];
- this.getData()
- },
- okbtn() {
- this.popupShow = false;
- this.form = {
- type: this.selecttype,
- stationId: this.selectstationId,
- deviceNo: this.selectdeviceNo,
- };
- this.list = [];
- this.getData()
- },
- resetBtn2() {
- this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
- this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- this.selectstationId2 = ""
- this.form2 = {
- stationId: this.selectstationId2,
- };
- this.popupShow2 = false;
- this.getData2()
- },
- okbtn2() {
- this.popupShow2 = false;
- this.form2 = {
- stationId: this.selectstationId2,
- };
- this.getData2()
- },
- getDataHome() {
- API.homeHeadStatistics().then((res) => {
- this.indexData = res.data;
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
- },
- getData() {
- this.form.startDate = this.startTime,
- this.form.endDate = this.endTime
- API.homeFlowStatistics(this.form).then((res) => {
- this.stationFlowList = res.data.stationFlowList;
- this.nowTime=daysDistance(this.startTime, this.endTime)+1;
-
- console.log(this.nowTime)
-
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
- },
- getData2() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- this.form2.startDate = this.startTime2,
- this.form2.endDate = this.endTime2
- API.homeIncomeStatistics(this.form2).then((res) => {
- this.indexData2 = res.data
- uni.hideLoading()
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
- },
- changesub(e) {
- this.current = e
- this.getPie()
- },
- changedate(e) {
- this.startTime = e.startDate
- this.endTime = e.endDate
- this.popupShow = true
- this.okbtn()
- },
- changedate2(e) {
- this.startTime2 = e.startDate
- this.endTime2 = e.endDate
- this.popupShow2 = true
- },
- getPie1(list) {
- var getData = [];
- var map = new Map()
- var stationNum = 0;
- list.forEach(item => {
- var value = this.current ? item.eqNum : item.amount
- if (value) {
- var stationName = ""
- var obj = this.stationListSon.find(item2 => {
- return item2.deviceNo == item.deviceNo
- })
- if (obj && obj.stationId) {
- var obj2 = this.stationList.find(item3 => {
- return item3.id == obj.stationId
- })
- if (obj2 && obj2.name) {
- stationName = obj2.name;
- }
- if (!map.has(obj.stationId)) {
- map.set(obj.stationId, {
- id: obj.stationId,
- value: value,
- name: stationName,
- })
- this.stepid = obj.stationId;
- stationNum++;
- } else {
- var omap = map.get(obj.stationId)
- var addvalue = (omap.value * 100 + value * 100) / 100
- map.set(obj.stationId, {
- id: obj.stationId,
- value: addvalue,
- name: stationName,
- })
- }
- }
- }
- })
- map.forEach((item, i) => {
- getData.push(item)
- })
- if (stationNum == 1) {
- this.step = 2; //只有一个站, 就不拆分了
- } else {
- this.stepid = 0;
- }
- return getData;
- },
- getPie2(list) {
- var getData = [];
- var sz = ['自行车充电桩', '直流汽车充电桩', '交流汽车充电桩']
- list.forEach(item => {
- var value = this.current ? item.eqNum : item.amount
- if (value) {
- var typeName = "";
- var stationName = ""
- var obj = this.stationListSon.find(item2 => {
- return item2.deviceNo == item.deviceNo
- })
- if (this.stepid != obj.stationId) {
- return
- }
- if (obj && obj.stationId) {
- var obj2 = this.stationList.find(item3 => {
- return item3.id == obj.stationId
- })
- if (obj2 && obj2.name) {
- stationName = obj2.name;
- }
- }
- if (obj && obj.type) {
- typeName = sz[obj.type]
- }
- getData.push({
- id: item.id,
- value: value,
- name: item.deviceName,
- typeName: typeName,
- stationName: stationName
- })
- }
- })
- return getData;
- },
- getPie() {
- var list = this.indexData.pieChart;
- var unit = this.current ? '笔' : '元'
- var getData = [];
- if (this.step == 0) {
- getData = this.getPie1(list)
- }
- if (this.step == 1 || this.step == 2) {
- getData = this.getPie2(list)
- }
- if (!this.myChart) {
- this.myChart = echarts.init(document.getElementById('pieEcharts'));
- }
- // 指定图表的配置项和数据
- var option = {
- tooltip: {
- trigger: 'item',
- formatter: (value) => {
- var info = value.data;
- var showvalue = info.value;
- if (!this.current) {
- showvalue = info.value.toFixed(2)
- }
- if (this.step == 0) {
- if (!info) {
- return ""
- }
- return info.name + ' <br/> ' + showvalue + unit
- }
- if (this.step == 1 || this.step == 2) {
- return info.stationName + ' <br/> ' + info.name + ' <br/> ' + showvalue + unit +
- ' <br/> ' + info.typeName
- }
- },
- position: function(point, params, dom, rect, size) {
- return ['10%', '0%']
- }
- },
- series: [{
- //name: 'Access From',
- type: 'pie',
- radius: '40%',
- data: getData,
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- },
- label: {
- fontWeight: "bold",
- fontSize: 14,
- }
- }]
- };
- // 使用刚指定的配置项和数据显示图表。
- this.myChart.setOption(option);
- var _this = this;
- if (!this.myChartReady) {
- this.myChartReady = true;
- //双击事件不能生效 , 改为多次点击
- this.myChart.on('click', function(params) {
- var tid = _this.stepid; //上一次
- _this.stepid = params.data.id
- if (!_this.myChartTime || tid != _this.stepid) {
- _this.stepid = params.data.id
- _this.myChartTime = true;
- setTimeout(function() {
- console.log("setTimeout")
- _this.myChartTime = false;
- }, 500)
- return
- }
- if (_this.step == 0) {
- _this.step = 1
- _this.stepname = params.data.name
- _this.myChart.clear()
- _this.getPie()
- } else if (_this.step == 1) {
- //_this.step=0
- }
- // window.open('https://www.baidu.com/s?wd=' + encodeURIComponent(params.name));
- });
- }
- }
- }
- }
- </script>
- <style>
- page {
- background: url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
- background-size: 100%;
- }
- </style>
- <style lang="scss" scoped>
- .detailstable {
- font-size: 16px;
- p{
- font-size: 14px;
- }
- .details-row-main{
- border-bottom: 1px solid #ededed;
- padding: 10px 0;
-
- }
- .detailsline {
- border-bottom: 1px solid #ededed;
- display: flex;
- .details-row {
- width: 48%;
- display: flex;
- justify-content: space-between;
- flex-direction: column;
- padding-left: 10px;
- margin-bottom: 10px;
- .span1 {
- color: rgba(136, 136, 136, 100);
- font-size: 14px;
- width: 100%;
- }
- .span2{
- font-size: 18px;
- width: 100%;
- color: #101010;
- span{
- font-size: 12px;
- }
- }
- }
- }
- .details-row-1 {
- padding-left: 0px !important;
- border-right: 1px solid #ededed;
- }
- }
-
- .details {
- margin-top: 16px;
- padding: 20px;
- background-color: #fff;
- border-radius: 8px;
- }
- .details-title {
- margin-bottom: 16px;
- h4 {
- font-weight: normal;
- font-size: 16px;
- position: relative;
- padding-left: 10px;
- &::after {
- content: '';
- position: absolute;
- height: 12px;
- width: 4px;
- background-color: #27B148;
- left: 0;
- top: 5px;
- }
- }
- }
- .details-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 15px;
- p {
- color: #37393c;
- font-weight: bold;
- }
- }
- .popup-screen {
- padding: 20px;
- position: relative;
- .screen {
- padding-bottom: 30px;
- }
- .screen-item {
- margin-bottom: 20px;
- .screen-head {
- margin-bottom: 8px;
- font-size: 16px;
- }
- .screen-main {
- display: flex;
- // display: -webkit-box;
- flex-wrap: wrap;
- }
- .screen-entry {
- width: 29%;
- padding: 6px 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #F2F5FA;
- text-align: center;
- margin-bottom: 10px;
- border-radius: 3px;
- margin-right: 6px;
- }
- .screen-entry.active {
- background-color: #185AC6;
- color: #fff;
- }
- }
- .screen-foot {
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- height: 50px;
- border-top: 1px solid #ededed;
- .screen-btn-l {
- background-color: #fff;
- flex: 0.2;
- text-align: center;
- line-height: 50px;
- }
- .screen-btn-r {
- flex: 0.8;
- text-align: center;
- line-height: 50px;
- background-color: #185AC6;
- color: #fff;
- }
- }
- }
- .navbar-tit {
- color: #fff;
- font-size: 24px;
- padding-left: 15px;
- padding-top: 10px;
- }
- .statisticsData {
- background-color: #fff;
- margin: 12px;
- padding: 12px;
- border-radius: 8px;
- margin-top: 60px;
- }
- .statisticsDataMain {
- display: flex;
- }
- .statisticsData-item {
- flex: 1;
- .statisticsData-head {
- display: flex;
- align-items: center;
- p {
- color: #637AA2;
- font-size: 12px;
- }
- }
- .statisticsData-main {
- margin-top: 4px;
- font-size: 20px;
- }
- .statisticsData-foot {
- display: flex;
- align-items: center;
- margin-top: 16px;
- p {
- color: #637AA2;
- }
- h4 {
- margin-left: 8px;
- }
- }
- }
- .statisticsChart {
- margin: 16px;
- .statisticsChart-head {
- margin-bottom: 5px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- h4 {
- font-weight: normal;
- font-size: 16px;
- position: relative;
- padding-left: 10px;
- &::after {
- content: '';
- position: absolute;
- height: 12px;
- width: 4px;
- background-color: #4E8DF6;
- left: 0;
- top: 5px;
- }
- }
- .statisticsChart-time {
- display: flex;
- align-items: center;
- p {
- color: #666;
- }
- }
- }
- .statisticsChart-main {
- background-color: #fff;
- padding: 10px 16px 16px 16px;
- border-radius: 8px;
- }
- }
- </style>
|