1692 lines
56 KiB
Vue
1692 lines
56 KiB
Vue
<template>
|
||
<div class="main">
|
||
<div :class="selectTab===1?'top':
|
||
selectIndex===1?'top springTop':selectIndex===2?'top labourTop':selectIndex===3?'top summerHolidayTop':selectIndex===4?'top nationalDayTop':''" :style="{
|
||
height:menu.height + menu.top+212+'rpx'}">
|
||
<!-- <image class="topBg" src="https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/pageBg.png"/>-->
|
||
<div class="header" :style="{height:menu.height + menu.top + 'px',top:0+'px'}">
|
||
<image :style="{bottom: ((statusBarHeight-24)/4)+'px' }" class="backArrow" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg" @click="handleBack"/>
|
||
</div>
|
||
<div class="topContent" :style="{top:200+'rpx'}">
|
||
<p class="pageTitle" v-if="selectTab===1">节日特刊</p>
|
||
<picker v-else mode="selector" :range="festivalList" range-key="label" :value="selectIndex-1" @change="handleChangeType" >
|
||
<div style="display: flex;align-items: center">
|
||
<p class="pageTitle" :style="{marginRight: '8px'}">{{`${festivalList[selectIndex-1].label}`}}</p>
|
||
<img style="width: 32rpx;height: 32rpx" src="https://eshangtech.com/ShopICO/ahyd-BID/national/selectIcon.png"/>
|
||
</div>
|
||
</picker>
|
||
</div>
|
||
</div>
|
||
<div :class="selectTab===1?'pageContent':
|
||
selectIndex===1?'pageContent pageContentSpring':selectIndex===2?'pageContent pageContentLabour':selectIndex===3?'pageContent pageContentSummerHoliday':selectIndex===4?'pageContent pageContentNationalDay':''" :style="{
|
||
backgroundPositionY:-(menu.height + menu.top+200)+'rpx'}">
|
||
<div class="tabBox" v-if="isUserEnter">
|
||
<div :class="selectTab===1?'tabItem selectTab':'tabItem'" style="margin-right: 48rpx" @click="changeTab(1)">排行分析</div>
|
||
<div :class="selectTab===2?'tabItem selectTab':'tabItem'" @click="changeTab(2)">同比分析</div>
|
||
</div>
|
||
|
||
<div v-if="selectTab===1">
|
||
<!-- 服务区当日营收 Top5-->
|
||
<div class="dailyRevenue" @click="handleGoMore(1)">
|
||
<div class="dailyContent">
|
||
<image class="itemBg" src="https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/revenueItemBg.png"/>
|
||
<div class="list">
|
||
<div class="listTop">
|
||
<p class="title">{{ dayName }}营收 Top5</p>
|
||
<div class="moreBox">
|
||
<span class="text">查看更多</span>
|
||
<image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/rightArrow.svg"/>
|
||
</div>
|
||
</div>
|
||
<div class="listBox">
|
||
<div class="itemTop">
|
||
<image class="itemIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/firstItemIcon.svg"/>
|
||
<div class="revenueBox">
|
||
<p class="revenueValue">{{ $util.fmoney(revenueSum,2) }}</p>
|
||
<p class="revenueText">总营收 <span>/元</span></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="listItemTop" >
|
||
<div class="listTopItem" v-for="(item,index) in revenueList" :key="index">
|
||
<div class="itemLeft">
|
||
<image class="itemIcon" :src="'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/Top'+ (index +1) +'.png'" />
|
||
<!-- <span class="type">{{item.ShopRegionName}}</span>-->
|
||
<span class="name">{{item.Serverpart_Name.split('服务区')[0]}}</span>
|
||
</div>
|
||
<div class="itemRight">
|
||
<span class="itemValue">{{$util.fmoney(item.CashPay,2)}}<span class="unit">/元</span></span>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- 当日入区车流量 Top5-->
|
||
<div class="dailyEntry" @click="handleGoMore(2)">
|
||
<div class="dailyContent">
|
||
<image class="itemBg" src="https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/entryIcon.png"/>
|
||
<div class="list">
|
||
<div class="listTop">
|
||
<p class="title">{{dayName}}入区车流量 Top5</p>
|
||
<div class="moreBox">
|
||
<span class="text">查看更多</span>
|
||
<image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/rightArrow.svg"/>
|
||
</div>
|
||
</div>
|
||
<div class="listBox">
|
||
<div class="itemTop">
|
||
<image class="itemIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/pass.svg"/>
|
||
<div class="revenueBox">
|
||
<p class="revenueValue">{{$util.noDecimal(entrySum)}}</p>
|
||
<p class="revenueText">总车流量<span>/辆</span></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="listItemTop" >
|
||
<div class="listTopItem" v-for="(item,index) in entryCarList" :key="index">
|
||
<div class="itemLeft">
|
||
<image class="itemIcon" :src="'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/Top'+ (index +1) +'.png'" />
|
||
<span class="name">{{item.Serverpart_Name.split('服务区')[0]}}<span class="type">{{item.Serverpart_Region || ''}}</span></span>
|
||
</div>
|
||
<div class="itemRight">
|
||
<span class="itemValue">{{$util.noDecimal(item.Vehicle_Count) }}<span class="unit">/辆</span></span>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- 当日入区车流量增幅 Top5-->
|
||
<div class="dailyEntryAdd" @click="handleGoMore(3)">
|
||
<div class="dailyContent">
|
||
<image class="itemBg" src="https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/entryAdd.png"/>
|
||
<div class="list">
|
||
<div class="listTop">
|
||
<p class="title">{{dayName}}入区车流量增幅 Top5</p>
|
||
<div class="moreBox">
|
||
<span class="text">查看更多</span>
|
||
<image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/rightArrow.svg"/>
|
||
</div>
|
||
</div>
|
||
<div class="listBox">
|
||
<div class="listItemTop" >
|
||
<div class="listTopItem" v-for="(item,index) in addList" :key="index">
|
||
<div class="itemLeft">
|
||
<image class="itemIcon" :src="'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/Top'+ (index +1) +'.png'" />
|
||
<span class="name">{{item.Serverpart_Name.split('服务区')[0]}}<span class="type">{{item.Serverpart_Region || ''}}</span></span>
|
||
</div>
|
||
<div class="itemRight">
|
||
<image class="addIcon" src='/static/images/examine/add.svg'/>
|
||
<span class="itemValue">{{item.Entry_GrowthRate}}%</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div v-if="selectTab===2" class="selectTab2">
|
||
<div class="newDetail">
|
||
<div class="newDetailTop">
|
||
<div class="newDetailTopLeft">
|
||
<img class="leftIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/national/revenueIcon.svg"/>
|
||
<div class="leftTextBox">
|
||
<span class="leftBoxTitle">营收同比</span>
|
||
<span class="leftTime">{{selectIndex!==1 && selectIndex!==3?timeFrame:revenueCompareDetail.curHoliday}}</span>
|
||
</div>
|
||
</div>
|
||
<div class="newDetailRight" v-if="revenueCompareDetail.curRevenue">
|
||
{{`${revenueCompareDetail.compareRevenue /revenueCompareDetail.curRevenue>0?'+':'-'}`+((revenueCompareDetail.compareRevenue /revenueCompareDetail.curRevenue)*100).toFixed(2)+'%' }}
|
||
</div>
|
||
</div>
|
||
|
||
<div class="compareBox">
|
||
<img class="vsIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/national/vs.svg"/>
|
||
<div class="compareItem" style="background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/national/compareLeft.svg')">
|
||
<span class="compareTitleLeft">{{`${compareYear}年营收/元`}}</span>
|
||
<span class="leftValue">{{revenueCompareDetail.compareRevenue?$util.fmoney(revenueCompareDetail.compareRevenue,2):'-'}}</span>
|
||
</div>
|
||
<div class="compareItem" style="background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/national/compareRight.svg')">
|
||
<span class="compareTitleRight ">{{`${curYear}年营收/元`}}</span>
|
||
<span class="rightValue">{{ revenueCompareDetail.curRevenue?$util.fmoney(revenueCompareDetail.curRevenue,2):'-' }}</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="descBox">
|
||
<div class="noticeBox">注</div>
|
||
<div class="noticeText">
|
||
<span class="text">{{ `${compareYear || '-'}年${holidayName || '-'}假期为${carCompareDetail.compareHoliday || '-'},共${carCompareDetail.compareHolidayDays || '-'}日` }}</span>
|
||
<span class="text">{{ `${curYear || '-'}年${holidayName || '-'}假期为${carCompareDetail.curHoliday || '-'},共${carCompareDetail.curHolidayDays || '-'}日` }}</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="newDetail">
|
||
<div class="newDetailTop carEntry">
|
||
<div class="newDetailTopLeft">
|
||
<img class="leftIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/national/carEntry.svg"/>
|
||
<div class="leftTextBox">
|
||
<span class="leftBoxTitle">入区车流量</span>
|
||
<span class="leftTime">{{selectIndex===1?'腊月十五-正月廿五':(selectIndex!==1 && selectIndex!==3?timeFrame:revenueCompareDetail.curHoliday)}}</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<YearRevenue :dataList="carCompareList"/>
|
||
|
||
<div class="descBox">
|
||
<div class="noticeBox">注</div>
|
||
<div class="noticeText">
|
||
<span class="text">入区车辆数按当期卡口设备的服务区,计算的平均每日入区数量</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="newDetail">
|
||
<div class="newDetailTop revenueSpecific">
|
||
<div class="newDetailTopLeft">
|
||
<img class="leftIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/national/revenueSpecific.svg"/>
|
||
<div class="leftTextBox">
|
||
<span class="leftBoxTitle">营收特征分析</span>
|
||
<span class="leftTime">{{selectIndex===1?'腊月十五-正月廿五':(selectIndex!==1 && selectIndex!==3?timeFrame:revenueCompareDetail.curHoliday)}}</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<EntryCarNumber :data="compareRevenueList"/>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
import request from '@/util/index.js'
|
||
import YearRevenue from "./components/yearRevenue.vue";
|
||
import EntryCarNumber from "./components/entryCarNumber.vue";
|
||
import {getLunar} from "chinese-lunar-calendar";
|
||
import moment from "moment/moment";
|
||
export default {
|
||
name: "index",
|
||
components: {EntryCarNumber, YearRevenue},
|
||
data(){
|
||
return {
|
||
selectTab: 1,
|
||
statusBarHeight:0,
|
||
festivalList:[
|
||
// {label:'元旦',value:1},
|
||
{label:'欢度春节',value:1},//2
|
||
// {label:'清明',value:3},
|
||
{label:'五一劳动节',value:2},//4
|
||
// {label:'端午',value:5},
|
||
{label:'欢度暑假',value:3},//6
|
||
// {label:'中秋',value:7},
|
||
{label:'欢度国庆',value:4}//8
|
||
],
|
||
selectIndex:1,
|
||
menu:{},
|
||
revenueList: [],// 营收排行
|
||
revenueSum:0,// 营收总计
|
||
entryCarList:[],//入区排行
|
||
entrySum:0,// 入区总计
|
||
addList:[],// 增幅排行
|
||
time:'',
|
||
dayName:'',
|
||
carCompareList:{},// 车流对比
|
||
compareRevenueList:{},// 营收图表数据
|
||
flagGetRevenue:false,// 拿到营收排行
|
||
flagGetCar:false,// 车流排行
|
||
flagGetCarCompare:false,//车流比较
|
||
flagGetRevenueCompare:false,// 营收比较
|
||
isUserEnter:true,
|
||
carCompareDetail:{},// 车流比较的详情
|
||
revenueCompareDetail:{},// 营收比较的详情
|
||
holidayName:'',//假期名称
|
||
curYear: '',// 今年
|
||
compareYear:'',// 对比年份
|
||
timeFrame:''
|
||
}
|
||
},
|
||
onLoad(query){
|
||
// 获取手机参数对页面进行适配
|
||
let systemInfo = uni.getSystemInfoSync()
|
||
this.statusBarHeight = Number(systemInfo.statusBarHeight)
|
||
this.menu = uni.getMenuButtonBoundingClientRect()
|
||
// 获取用户信息
|
||
let userInfo = uni.getStorageSync('vuex')
|
||
userInfo = JSON.parse(userInfo)
|
||
this.useInfo = JSON.parse(JSON.stringify(userInfo))
|
||
|
||
uni.showLoading({
|
||
title: '正在加载...'
|
||
})
|
||
if (query.type){
|
||
this.isUserEnter = !(query.type==='true')
|
||
this.selectTab = 2
|
||
}
|
||
|
||
this.time = query.time
|
||
const date = new Date(query.time)
|
||
let y = date.getFullYear()
|
||
let m = date.getMonth() + 1
|
||
let d = date.getDate()
|
||
this.curYear = y
|
||
this.compareYear = y - 1
|
||
this.holidayName = this.selectIndex===1?'春运':this.selectIndex===2?'五一':this.selectIndex===3?'暑假':this.selectIndex===4?'国庆':''
|
||
|
||
// ${y}年
|
||
this.dayName = `${m}月${d}日`
|
||
if (this.selectTab===1){
|
||
// 拿到营收排行
|
||
this.handleGetRevenue(query.time)
|
||
// 车流排行
|
||
this.handleGetCar(query.time)
|
||
}else{
|
||
this.handleGetCarCompare()
|
||
this.handleGetRevenueCompare()
|
||
}
|
||
|
||
},
|
||
methods:{
|
||
// 切换节日类型
|
||
handleChangeType(e){
|
||
this.selectIndex = Number(e.detail.value) + 1
|
||
uni.showLoading({
|
||
title:' 正在加载...'
|
||
})
|
||
this.holidayName = this.selectIndex===1?'春运':this.selectIndex===2?'五一':this.selectIndex===3?'暑假':this.selectIndex===4?'国庆':''
|
||
this.handleGetCarCompare()
|
||
this.handleGetRevenueCompare()
|
||
},
|
||
// 切换标签卡
|
||
changeTab(num){
|
||
this.selectTab = num
|
||
if (num===2 && JSON.stringify(this.carCompareList)==='{}' || num===2 && JSON.stringify(this.compareRevenueList)==='{}'){
|
||
uni.showLoading({
|
||
title: '正在加载...'
|
||
})
|
||
this.handleGetCarCompare()
|
||
this.handleGetRevenueCompare()
|
||
}else if (num===1) {
|
||
uni.showLoading({
|
||
title:' 正在加载...'
|
||
})
|
||
// 拿到营收排行
|
||
this.handleGetRevenue(this.time)
|
||
// 车流排行
|
||
this.handleGetCar(this.time)
|
||
}
|
||
},
|
||
handleGoMore(type){
|
||
uni.navigateTo({
|
||
url:`/pages/nationalPage/moreList?type=${type}&time=${this.time}&dayName=${this.dayName}`
|
||
})
|
||
},
|
||
handleBack(){
|
||
uni.navigateBack({
|
||
delta: 1
|
||
});
|
||
},
|
||
// 拿到营收排行
|
||
async handleGetRevenue(date){
|
||
const req= {
|
||
pushProvinceCode:this.useInfo.userData.ProvinceCode || '340000',
|
||
Statistics_Date:date,
|
||
Revenue_Include:1
|
||
}
|
||
const data = await request.$webGet('CommercialApi/Revenue/GetSPRevenueRank',req)
|
||
this.revenueSum = data.Result_Data.OtherData
|
||
this.revenueList = data.Result_Data.List.slice(0,5)
|
||
this.flagGetRevenue = true
|
||
if (this.flagGetRevenue && this.flagGetCar){
|
||
uni.hideLoading()
|
||
}
|
||
},
|
||
// 车流排行
|
||
async handleGetCar(date){
|
||
const req= {
|
||
pushProvinceCode:this.useInfo.userData.ProvinceCode || '340000',
|
||
StatisticsEndDate:date,
|
||
ShowGrowthRate:true
|
||
}
|
||
const data = await request.$webGet('CommercialApi/BigData/GetBayonetGrowthAnalysis',req)
|
||
this.entrySum = data.Result_Data.sumEntryCount
|
||
this.entryCarList = data.Result_Data.EntryList.slice(0,5)
|
||
let list = []
|
||
data.Result_Data.GrowthList.forEach(item=>{
|
||
if (item.Entry_GrowthRate>100){
|
||
list.push(item)
|
||
}
|
||
})
|
||
this.addList = list.slice(0,5)
|
||
this.flagGetCar=true
|
||
if (this.flagGetRevenue && this.flagGetCar){
|
||
uni.hideLoading()
|
||
}
|
||
},
|
||
// 车流比较
|
||
async handleGetCarCompare(){
|
||
const date = new Date()
|
||
let year = date.getFullYear()
|
||
const req = {
|
||
pushProvinceCode:this.useInfo.userData.ProvinceCode || '340000',
|
||
holidayType:this.selectIndex===1?2:this.selectIndex===2?4:this.selectIndex===3?6:this.selectIndex===4?8:'',
|
||
curYear:this.curYear,
|
||
compareYear:this.compareYear
|
||
}
|
||
|
||
const data = await request.$webGet('CommercialApi/BigData/GetHolidayCompare',req)
|
||
this.carCompareDetail = data.Result_Data
|
||
let list = data.Result_Data
|
||
let compareList = []
|
||
let curList = []
|
||
let max = 0
|
||
let dateList = []
|
||
// 春节
|
||
if (this.selectIndex===1){
|
||
// 去年的
|
||
let howGroupNumber = Math.floor(data.Result_Data.compareList.length / 7)
|
||
let groupList = []
|
||
let resList = []
|
||
for (let i=0;i<=howGroupNumber-1;i++){
|
||
groupList.push(data.Result_Data.compareList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howGroupNumber*7<data.Result_Data.compareList.length){
|
||
groupList.push(data.Result_Data.compareList.slice(7*howGroupNumber,data.Result_Data.compareList.length))
|
||
}
|
||
groupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)
|
||
})
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resList.push({
|
||
value:sum,
|
||
name:`第${index + 1}周`
|
||
})
|
||
}
|
||
})
|
||
|
||
// 今年的
|
||
let howCurGroupNumber = Math.floor(data.Result_Data.curList.length / 7)
|
||
let curGroupList = []
|
||
let resCurList = []
|
||
for (let i=0;i<=howCurGroupNumber-1;i++){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howCurGroupNumber*7<data.Result_Data.curList.length){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*howCurGroupNumber,data.Result_Data.curList.length))
|
||
}
|
||
curGroupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)
|
||
})
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resCurList.push({
|
||
value:sum,
|
||
name:`第${index + 1}周`
|
||
})
|
||
dateList.push(`第${index + 1}周`)
|
||
}
|
||
})
|
||
compareList = resList
|
||
curList = resCurList
|
||
}
|
||
// 暑假
|
||
else if(this.selectIndex===3){
|
||
// 去年的
|
||
let howGroupNumber = Math.floor(data.Result_Data.compareList.length / 7)
|
||
let groupList = []
|
||
let resList = []
|
||
for (let i=0;i<=howGroupNumber-1;i++){
|
||
groupList.push(data.Result_Data.compareList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howGroupNumber*7<data.Result_Data.compareList.length){
|
||
groupList.push(data.Result_Data.compareList.slice(7*howGroupNumber,data.Result_Data.compareList.length))
|
||
}
|
||
groupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)
|
||
})
|
||
dateList.push(`${index + 1}周`)
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resList.push({
|
||
value:sum,
|
||
name:`${index + 1}周`
|
||
})
|
||
}
|
||
})
|
||
|
||
// 今年的
|
||
let howCurGroupNumber = Math.floor(data.Result_Data.curList.length / 7)
|
||
let curGroupList = []
|
||
let resCurList = []
|
||
for (let i=0;i<=howCurGroupNumber-1;i++){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howCurGroupNumber*7<data.Result_Data.curList.length){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*howCurGroupNumber,data.Result_Data.curList.length))
|
||
}
|
||
curGroupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)
|
||
})
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resCurList.push({
|
||
value:sum,
|
||
name:`${index + 1}周`
|
||
})
|
||
if (dateList.length<=0){
|
||
dateList.push(`${index + 1}周`)
|
||
}
|
||
}
|
||
})
|
||
compareList = resList
|
||
curList = resCurList
|
||
}
|
||
// 其他
|
||
else{
|
||
data.Result_Data.compareList.forEach(item=>{
|
||
if (Number(item.value)>max){
|
||
max = Number(item.value)
|
||
}
|
||
dateList.push(moment(item.name).format('M.D'))
|
||
compareList.push({
|
||
name:item.name,
|
||
value: Number(item.value)
|
||
})
|
||
})
|
||
data.Result_Data.curList.forEach(item=>{
|
||
if (Number(item.value)>max){
|
||
max = Number(item.value)
|
||
}
|
||
if (dateList.indexOf(moment(item.name).format('M.D'))===-1){
|
||
dateList.push(moment(item.name).format('M.D'))
|
||
}
|
||
curList.push({
|
||
name:item.name,
|
||
value: Number(item.value)
|
||
})
|
||
})
|
||
}
|
||
if (this.selectIndex!==1 && this.selectIndex!==3){
|
||
this.timeFrame = `${dateList[0]}-${dateList[dateList.length - 1]}`
|
||
}
|
||
let res = {
|
||
categories: dateList,
|
||
series:[
|
||
{
|
||
name:"2022年",
|
||
data:compareList
|
||
},
|
||
{
|
||
name:"2023年",
|
||
data:curList
|
||
}
|
||
],
|
||
max:max
|
||
}
|
||
this.carCompareList = res
|
||
this.flagGetCarCompare= true
|
||
if (this.flagGetCarCompare && this.flagGetRevenueCompare){
|
||
uni.hideLoading()
|
||
}
|
||
},
|
||
// 营收比较
|
||
async handleGetRevenueCompare(){
|
||
const req = {
|
||
pushProvinceCode:this.useInfo.userData.ProvinceCode || '340000',
|
||
StatisticsDate:this.time,
|
||
holidayType:this.selectIndex===1?2:this.selectIndex===2?4:this.selectIndex===3?6:this.selectIndex===4?8:'',
|
||
curYear:this.curYear,
|
||
compareYear:this.compareYear,
|
||
}
|
||
const data = await request.$webGet('CommercialApi/Revenue/GetHolidayCompare',req)
|
||
this.revenueCompareDetail = data.Result_Data
|
||
|
||
let list = data.Result_Data
|
||
let compareList = []
|
||
let realCompareList = []
|
||
let curList = []
|
||
let realCurList = []
|
||
let max =0
|
||
let dateList = []
|
||
if (this.selectIndex===1){
|
||
// 去年的
|
||
let howGroupNumber = Math.floor(data.Result_Data.compareList.length / 7)
|
||
let groupList = []
|
||
let resList = []
|
||
for (let i=0;i<=howGroupNumber-1;i++){
|
||
groupList.push(data.Result_Data.compareList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howGroupNumber*7<data.Result_Data.compareList.length){
|
||
groupList.push(data.Result_Data.compareList.slice(7*howGroupNumber,data.Result_Data.compareList.length))
|
||
}
|
||
groupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)/10000
|
||
})
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resList.push({
|
||
value:sum,
|
||
name:`第${index + 1}周`
|
||
})
|
||
}
|
||
})
|
||
|
||
// 今年的
|
||
let howCurGroupNumber = Math.floor(data.Result_Data.curList.length / 7)
|
||
let curGroupList = []
|
||
let resCurList = []
|
||
for (let i=0;i<=howCurGroupNumber-1;i++){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howCurGroupNumber*7<data.Result_Data.curList.length){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*howCurGroupNumber,data.Result_Data.curList.length))
|
||
}
|
||
curGroupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)/10000
|
||
})
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resCurList.push({
|
||
value:sum,
|
||
name:`第${index + 1}周`
|
||
})
|
||
|
||
dateList.push(`第${index + 1}周`)
|
||
}
|
||
})
|
||
compareList = resList
|
||
curList = resCurList
|
||
}
|
||
else if(this.selectIndex===3){
|
||
// 去年的
|
||
let howGroupNumber = Math.floor(data.Result_Data.compareList.length / 7)
|
||
let groupList = []
|
||
let resList = []
|
||
for (let i=0;i<=howGroupNumber-1;i++){
|
||
groupList.push(data.Result_Data.compareList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howGroupNumber*7<data.Result_Data.compareList.length){
|
||
groupList.push(data.Result_Data.compareList.slice(7*howGroupNumber,data.Result_Data.compareList.length))
|
||
}
|
||
groupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)/10000
|
||
})
|
||
dateList.push(`${index + 1}周`)
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resList.push({
|
||
value:sum,
|
||
name:`${index + 1}周`
|
||
})
|
||
}
|
||
})
|
||
|
||
// 今年的
|
||
let howCurGroupNumber = Math.floor(data.Result_Data.curList.length / 7)
|
||
let curGroupList = []
|
||
let resCurList = []
|
||
for (let i=0;i<=howCurGroupNumber-1;i++){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*i,7*(i+1)))
|
||
}
|
||
if (howCurGroupNumber*7<data.Result_Data.curList.length){
|
||
curGroupList.push(data.Result_Data.curList.slice(7*howCurGroupNumber,data.Result_Data.curList.length))
|
||
}
|
||
curGroupList.forEach((item,index)=>{
|
||
if (item && item.length>0){
|
||
let sum = 0
|
||
item.forEach(subItem=>{
|
||
sum+=Number(subItem.value)/10000
|
||
})
|
||
if (sum>max){
|
||
max = sum
|
||
}
|
||
resCurList.push({
|
||
value:sum,
|
||
name:`${index + 1}周`
|
||
})
|
||
if (dateList.length<=0){
|
||
dateList.push(`${index + 1}周`)
|
||
}
|
||
}
|
||
})
|
||
compareList = resList
|
||
curList = resCurList
|
||
}
|
||
else{
|
||
data.Result_Data.compareList.forEach(item=>{
|
||
let number = Number((item.value / 10000).toFixed(2))
|
||
if (number>max){
|
||
max = number
|
||
}
|
||
compareList.push({
|
||
name:item.name,
|
||
value:number
|
||
})
|
||
realCompareList.push(item.value)
|
||
})
|
||
data.Result_Data.curList.forEach(item=>{
|
||
let number = Number((item.value / 10000).toFixed(2))
|
||
if (number>max){
|
||
max = number
|
||
}
|
||
curList.push({
|
||
name:item.name,
|
||
value:number
|
||
})
|
||
realCurList.push(item.value)
|
||
|
||
if (this.selectIndex===3){
|
||
const date = new Date(item.name)
|
||
let year = date.getFullYear()
|
||
let month = date.getMonth() + 1
|
||
let day = date.getDate()
|
||
const lunarDate = getLunar(year, month, day);
|
||
dateList.push(lunarDate.dateStr.slice(2,4))
|
||
// item.lunarDate = lunarDate.dateStr.slice(2,4)
|
||
}else{
|
||
dateList.push(moment(item.name).format('M.D'))
|
||
}
|
||
})
|
||
}
|
||
if (this.selectIndex!==1 && this.selectIndex!==3){
|
||
this.timeFrame = `${dateList[0]}-${dateList[dateList.length - 1]}`
|
||
}
|
||
let res = {
|
||
categories: dateList,
|
||
series:[
|
||
{
|
||
name:"2022年",
|
||
data:compareList,
|
||
real:realCompareList
|
||
},
|
||
{
|
||
name:"2023年",
|
||
data:curList,
|
||
real:realCurList
|
||
}
|
||
],
|
||
max:max
|
||
}
|
||
this.compareRevenueList = res
|
||
this.flagGetRevenueCompare=true
|
||
if (this.flagGetCarCompare && this.flagGetRevenueCompare){
|
||
uni.hideLoading()
|
||
}
|
||
},
|
||
}
|
||
}
|
||
</script>
|
||
|
||
|
||
|
||
<style scoped lang="scss">
|
||
@import '/static/public/fontNational/stylesheet.css';
|
||
.main{
|
||
width: 100%;
|
||
height: 100%;
|
||
.top{
|
||
width: 100%;
|
||
position: relative;
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/pageBg.png");
|
||
background-repeat: no-repeat;
|
||
background-position: 0 0;
|
||
background-size: cover;
|
||
z-index:3;
|
||
.topBg{
|
||
width: 100%;
|
||
height: 100%;
|
||
z-index: 4;
|
||
}
|
||
.header{
|
||
position: fixed;
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/pageBg.png");
|
||
background-repeat: no-repeat;
|
||
background-position: 0 0;
|
||
background-size: cover;
|
||
width: 100%;
|
||
padding: 0 16px;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
z-index: 2;
|
||
.backArrow{
|
||
width: 24px;
|
||
height: 24px;
|
||
margin-right: 16px;
|
||
position: absolute;
|
||
}
|
||
}
|
||
.topContent{
|
||
position: absolute;
|
||
left: 32rpx;
|
||
.pageTitle{
|
||
font-size: 56rpx;
|
||
font-family: Alimama ShuHeiTi;
|
||
font-weight: bold;
|
||
color: #FFFFFF;
|
||
line-height: 68rpx;
|
||
text-shadow: 0px 8px 20px rgba(158,29,0,0.25);
|
||
background: linear-gradient(180deg, #FEFFFE 0%, #FFC7B6 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
}
|
||
}
|
||
|
||
.springTop{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/spring.png") !important;
|
||
.header{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/spring.png") !important;
|
||
}
|
||
.topContent{
|
||
.pageTitle{
|
||
font-size: 56rpx;
|
||
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
|
||
font-weight: bold;
|
||
color: #FFFFFF;
|
||
line-height: 68rpx;
|
||
text-shadow: 0px 8px 20px #F66152;
|
||
background: linear-gradient(180deg, #FFF3ED 0%, #FF988E 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
}
|
||
}
|
||
.labourTop{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/labour.png") !important;
|
||
.header{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/labour.png") !important;
|
||
}
|
||
.topContent{
|
||
.pageTitle{
|
||
font-size: 56rpx;
|
||
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
|
||
font-weight: bold;
|
||
color: #FFFFFF;
|
||
line-height: 68rpx;
|
||
text-shadow: 0px 8px 20px #DAAE04;
|
||
background: linear-gradient(180deg, #FFFBEE 0%, #FFD73B 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
}
|
||
}
|
||
.summerHolidayTop{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/summerHoliday.png") !important;
|
||
.header{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/summerHoliday.png") !important;
|
||
}
|
||
.topContent{
|
||
.pageTitle{
|
||
font-size: 56rpx;
|
||
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
|
||
font-weight: bold;
|
||
color: #FFFFFF;
|
||
line-height: 68rpx;
|
||
text-shadow: 0px 8px 20px #9CB522;
|
||
background: linear-gradient(180deg, #FDFFF1 0%, #C4D844 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
}
|
||
}
|
||
.nationalDayTop{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/nationalDay.png") !important;
|
||
.header{
|
||
background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/national/nationalDay.png") !important;
|
||
}
|
||
.topContent{
|
||
.pageTitle{
|
||
font-size: 56rpx;
|
||
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
|
||
font-weight: bold;
|
||
color: #FFFFFF;
|
||
line-height: 68rpx;
|
||
text-shadow: 0px 8px 20px #FF7915;
|
||
background: linear-gradient(180deg, #FFF7F0 0%, #FFB576 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
}
|
||
}
|
||
.pageContent{
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 0 32rpx 28rpx;
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/pageBg.png");
|
||
background-repeat: no-repeat;
|
||
background-size: contain;
|
||
//transform: translateY(-260rpx);
|
||
|
||
.tabBox{
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 20rpx;
|
||
.tabItem{
|
||
display: inline-block;
|
||
font-size: 32rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #FEE1DD;
|
||
line-height: 44rpx;
|
||
box-sizing: border-box;
|
||
padding-bottom: 12rpx;
|
||
}
|
||
.selectTab{
|
||
font-size: 32rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #FFFFFF;
|
||
line-height: 44rpx;
|
||
border-bottom: 2px solid #FFFFFF;
|
||
}
|
||
}
|
||
|
||
.dailyRevenue{
|
||
width: 100%;
|
||
height: 680rpx;
|
||
background: #fff;
|
||
border-radius: 24rpx;
|
||
box-sizing: border-box;
|
||
padding: 2px;
|
||
.dailyContent{
|
||
width: 100%;
|
||
height: 100%;
|
||
box-sizing: border-box;
|
||
padding: 22rpx 24rpx;
|
||
background: linear-gradient(360deg, rgba(255,233,229,0) 0%, rgba(255,233,229,0.7) 21%, #FFE9E5 100%);
|
||
border-radius: 20rpx;
|
||
position: relative;
|
||
.itemBg{
|
||
width: 266rpx;
|
||
height: 208rpx;
|
||
position: absolute;
|
||
right: 0;top: 0;
|
||
z-index:1;
|
||
}
|
||
.list{
|
||
position: absolute;
|
||
width: calc(100% - 48rpx);
|
||
z-index: 2;
|
||
.listTop{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.title{
|
||
font-size: 36rpx;
|
||
font-family: Alimama ShuHeiTi;
|
||
font-weight: bold;
|
||
color: #F95222;
|
||
line-height: 44rpx;
|
||
}
|
||
.moreBox{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.text{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
}
|
||
.moreIcon{
|
||
width: 20rpx;
|
||
height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.listBox{
|
||
width: 100%;
|
||
background: #fff;
|
||
margin-top: 22rpx;
|
||
border-radius: 12rpx;
|
||
box-sizing: border-box;
|
||
padding: 32rpx;
|
||
.itemTop{
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
box-sizing: border-box;
|
||
padding-bottom: 36rpx;
|
||
border-bottom: 2rpx solid #F7F4F4;
|
||
.itemIcon{
|
||
width: 96rpx;
|
||
height: 96rpx;
|
||
border-radius: 16rpx;
|
||
}
|
||
.revenueBox{
|
||
.revenueValue{
|
||
font-size: 40rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #160002;
|
||
line-height: 48rpx;
|
||
}
|
||
.revenueText{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 40rpx;
|
||
text-align: right;
|
||
span{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.listItemTop{
|
||
margin-top: 34rpx;
|
||
.listTopItem{
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10rpx 0;
|
||
.itemLeft{
|
||
display: flex;
|
||
align-items: center;
|
||
.itemIcon{
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
}
|
||
|
||
.name{
|
||
margin-left: 20rpx;
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
.type{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 36rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
.itemRight{
|
||
.itemValue{
|
||
font-size: 32rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
.unit{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.dailyEntry{
|
||
width: 100%;
|
||
height: 680rpx;
|
||
background: #fff;
|
||
border-radius: 24rpx;
|
||
box-sizing: border-box;
|
||
padding: 2px;
|
||
margin-top: 28rpx;
|
||
.dailyContent{
|
||
width: 100%;
|
||
height: 100%;
|
||
box-sizing: border-box;
|
||
padding: 22rpx 24rpx;
|
||
background: linear-gradient(360deg, rgba(238,242,255,0) 0%, rgba(238,242,255,0.7) 20%, #EEF2FF 100%);
|
||
border-radius: 20rpx;
|
||
position: relative;
|
||
.itemBg{
|
||
width: 320rpx;
|
||
height: 320rpx;
|
||
position: absolute;
|
||
right: 0;top: 0;
|
||
z-index:1;
|
||
}
|
||
.list{
|
||
position: absolute;
|
||
width: calc(100% - 48rpx);
|
||
z-index: 2;
|
||
.listTop{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.title{
|
||
font-size: 36rpx;
|
||
font-family: Alimama ShuHeiTi;
|
||
font-weight: bold;
|
||
color: #096EF7;
|
||
line-height: 44rpx;
|
||
}
|
||
.moreBox{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.text{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
}
|
||
.moreIcon{
|
||
width: 20rpx;
|
||
height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
.listBox{
|
||
width: 100%;
|
||
background: #fff;
|
||
margin-top: 22rpx;
|
||
border-radius: 12rpx;
|
||
box-sizing: border-box;
|
||
padding: 32rpx;
|
||
.itemTop{
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
box-sizing: border-box;
|
||
padding-bottom: 36rpx;
|
||
border-bottom: 2rpx solid #F7F4F4;
|
||
.itemIcon{
|
||
width: 96rpx;
|
||
height: 96rpx;
|
||
border-radius: 16rpx;
|
||
}
|
||
.revenueBox{
|
||
.revenueValue{
|
||
font-size: 40rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #160002;
|
||
line-height: 48rpx;
|
||
}
|
||
.revenueText{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 40rpx;
|
||
text-align: right;
|
||
span{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
.listItemTop{
|
||
margin-top: 34rpx;
|
||
.listTopItem{
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10rpx 0;
|
||
.itemLeft{
|
||
display: flex;
|
||
align-items: center;
|
||
.itemIcon{
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
}
|
||
.name{
|
||
margin-left: 20rpx;
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
.type{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 36rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
.itemRight{
|
||
.itemValue{
|
||
font-size: 32rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
.unit{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.dailyEntryAdd{
|
||
width: 100%;
|
||
height: 500rpx;
|
||
background: #fff;
|
||
border-radius: 24rpx;
|
||
box-sizing: border-box;
|
||
padding: 2px;
|
||
margin-top: 28rpx;
|
||
.dailyContent{
|
||
width: 100%;
|
||
height: 100%;
|
||
box-sizing: border-box;
|
||
padding: 22rpx 24rpx;
|
||
background: linear-gradient(360deg, rgba(229,247,255,0) 0%, rgba(229,247,255,0.7) 23%, #E5F7FF 100%);
|
||
border-radius: 20rpx;
|
||
position: relative;
|
||
.itemBg{
|
||
width: 320rpx;
|
||
height: 320rpx;
|
||
position: absolute;
|
||
right: 0;top: 0;
|
||
z-index:1;
|
||
}
|
||
.list{
|
||
position: absolute;
|
||
width: calc(100% - 48rpx);
|
||
z-index: 2;
|
||
.listTop{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.title{
|
||
font-size: 36rpx;
|
||
font-family: Alimama ShuHeiTi;
|
||
font-weight: bold;
|
||
color: #018ABD;
|
||
line-height: 44rpx;
|
||
}
|
||
.moreBox{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.text{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
}
|
||
.moreIcon{
|
||
width: 20rpx;
|
||
height: 40rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
.listBox{
|
||
width: 100%;
|
||
background: #fff;
|
||
margin-top: 22rpx;
|
||
border-radius: 12rpx;
|
||
box-sizing: border-box;
|
||
padding: 32rpx;
|
||
.listItemTop{
|
||
.listTopItem{
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10rpx 0;
|
||
.itemLeft{
|
||
display: flex;
|
||
align-items: center;
|
||
.itemIcon{
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
}
|
||
.name{
|
||
margin-left: 20rpx;
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
.type{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 36rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
}
|
||
}
|
||
.itemRight{
|
||
.addIcon{
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
}
|
||
.itemValue{
|
||
display: inline-block;
|
||
width: 80px;
|
||
text-align: left;
|
||
margin-left: 8rpx;
|
||
font-size: 32rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.selectTab2{
|
||
box-sizing: border-box;
|
||
border-radius: 8rpx;
|
||
.newDetail{
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
border-radius: 24rpx;
|
||
background: #fff;
|
||
padding: 4rpx 4rpx 32rpx 4rpx;
|
||
margin-bottom: 24rpx;
|
||
.newDetailTop{
|
||
width: 100%;
|
||
background: linear-gradient(360deg, rgba(255,233,229,0) 0%, rgba(255,248,247,0.7) 34%, #FFEEEC 100%);
|
||
border-radius: 20rpx;
|
||
box-sizing: border-box;
|
||
padding: 32rpx 24rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.newDetailTopLeft{
|
||
display: flex;
|
||
align-items: center;
|
||
.leftIcon{
|
||
width: 96rpx;
|
||
height: 96rpx;
|
||
border-radius: 16rpx;
|
||
margin-right: 20rpx;
|
||
}
|
||
.leftTextBox{
|
||
display: flex;
|
||
flex-direction: column;
|
||
.leftBoxTitle{
|
||
font-size: 32rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #160002;
|
||
line-height: 44rpx;
|
||
margin-bottom: 4rpx;
|
||
}
|
||
.leftTime{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 40rpx;
|
||
}
|
||
}
|
||
}
|
||
.newDetailRight{
|
||
font-size: 48rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #E83944;
|
||
line-height: 48rpx;
|
||
}
|
||
}
|
||
|
||
.compareBox{
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 0 24rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
position: relative;
|
||
margin-bottom: 24rpx;
|
||
.compareItem{
|
||
width: 50%;
|
||
height: 176rpx;
|
||
box-sizing: border-box;
|
||
padding: 40rpx 24rpx;
|
||
background-size: 100% 100%;
|
||
background-repeat: no-repeat;
|
||
.compareImg{
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
.compareTitleLeft{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #0087FA;
|
||
line-height: 40rpx;
|
||
display: block;
|
||
text-align: left;
|
||
}
|
||
.leftValue{
|
||
font-size: 32rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #0087FA;
|
||
line-height: 52rpx;
|
||
display: block;
|
||
text-align: left;
|
||
}
|
||
.compareTitleRight{
|
||
display: block;
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #FFFFFF;
|
||
line-height: 40rpx;
|
||
text-align: right;
|
||
}
|
||
.rightValue{
|
||
display: block;
|
||
font-size: 32rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #FFFFFF;
|
||
line-height: 52rpx;
|
||
text-align: right;
|
||
}
|
||
}
|
||
.compareItemRight{
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
justify-content: flex-end;
|
||
}
|
||
.compareItemLeft{
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
justify-content: flex-start;
|
||
}
|
||
.vsIcon{
|
||
position: absolute;
|
||
top: 50%;left: 50%;
|
||
transform: translate(-50% , -50%);
|
||
width: 56rpx;
|
||
height: 56rpx;
|
||
}
|
||
}
|
||
|
||
.descBox{
|
||
width: calc(100% - 48rpx);
|
||
margin-left: 24rpx;
|
||
box-sizing: border-box;
|
||
padding: 24rpx;
|
||
background: #F6F7F9;
|
||
border-radius: 16rpx;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
.noticeBox{
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
box-sizing: border-box;
|
||
padding: 2rpx 8rpx;
|
||
background: #DEE7FA;
|
||
border-radius: 4rpx;
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #160002;
|
||
line-height: 36rpx;
|
||
margin-right: 12rpx;
|
||
}
|
||
.noticeText{
|
||
.text{
|
||
display: block;
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #786B6C;
|
||
line-height: 40rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.carEntry{
|
||
background: linear-gradient(360deg, rgba(238,242,255,0) 0%, rgba(239,243,255,0.7) 41%, #F0F4FF 100%)!important;
|
||
}
|
||
.revenueSpecific{
|
||
background: linear-gradient(360deg, rgba(236,236,255,0) 0%, rgba(244,244,255,0.7) 39%, #F0F0FF 100%)!important;
|
||
}
|
||
}
|
||
|
||
|
||
.detail{
|
||
margin-bottom: 24rpx;
|
||
.tabTitle{
|
||
font-size: 32rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
.unit{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
}
|
||
.descText{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
margin-right: 8rpx;
|
||
}
|
||
.detailTop{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
.tabTitle{
|
||
font-size: 32rpx;
|
||
font-family: PingFangSC-Semibold, PingFang SC;
|
||
font-weight: 600;
|
||
color: #160002;
|
||
line-height: 40rpx;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
.timeText{
|
||
font-size: 28rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 40rpx
|
||
}
|
||
}
|
||
|
||
.money{
|
||
width:calc(100% - 32px);
|
||
padding: 18px 16px;
|
||
background: #F7F7F7;
|
||
border-radius: 4px;
|
||
.moneyTop{
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 4px;
|
||
//.moneyTopItem{
|
||
// display: flex;
|
||
// align-items: center;
|
||
.moneyTitle{
|
||
font-size: 28rpx;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: 400;
|
||
color: #160002;
|
||
line-height: 36rpx;
|
||
}
|
||
.icon{
|
||
width: 20px;
|
||
height: 20px;
|
||
margin-right: 8px;
|
||
}
|
||
.sumMoney{
|
||
font-size: 16px;
|
||
font-family: DINAlternate-Bold, DINAlternate;
|
||
font-weight: bold;
|
||
color: #341D00;
|
||
line-height: 24px;
|
||
.notice{
|
||
font-size: 14px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #a69e9f;
|
||
line-height: 20px;
|
||
margin-left: 8rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
.desc{
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: flex-end;
|
||
.descLeft{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
margin-right: 8rpx;
|
||
}
|
||
.descRight{
|
||
p{
|
||
font-size: 24rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 36rpx;
|
||
}
|
||
}
|
||
}
|
||
.bottom{
|
||
display: flex;
|
||
align-items: center;
|
||
margin-left: 24px;
|
||
.icon{
|
||
width: 14px;
|
||
height: 14px;
|
||
margin-right: 4px;
|
||
}
|
||
.add{
|
||
font-size: 14px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #FA5151;
|
||
line-height: 20px;
|
||
margin-right: 4px;
|
||
}
|
||
.text{
|
||
font-size: 14px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A69E9F;
|
||
line-height: 20px;
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
}
|
||
|
||
.pageContentSpring{
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/national/spring.png")!important;
|
||
}
|
||
.pageContentLabour{
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/national/labour.png")!important;
|
||
}
|
||
.pageContentSummerHoliday{
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/national/summerHoliday.png")!important;
|
||
}
|
||
.pageContentNationalDay{
|
||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/national/nationalDay.png")!important;
|
||
}
|
||
}
|
||
|
||
</style>
|