节日特刊问题修复
This commit is contained in:
parent
4491ce3042
commit
838cb3c123
@ -1203,14 +1203,14 @@
|
||||
selectVersion3Obj["累计"].RevenueINC
|
||||
.curYearData || "-"
|
||||
}}</text>
|
||||
<text class="label">2024年/万元</text>
|
||||
<text class="label">{{(Math.floor(index / 12) + 2023)}}年/万元</text>
|
||||
</div>
|
||||
<div class="rightBox carRight">
|
||||
<text class="value">{{
|
||||
selectVersion3Obj["累计"].RevenueINC.lYearData ||
|
||||
"-"
|
||||
}}</text>
|
||||
<text class="label">2023年/万元</text>
|
||||
<text class="label">{{(Math.floor(index / 12) + 2022)}}年/万元</text>
|
||||
</div>
|
||||
<img
|
||||
class="pkLogo"
|
||||
@ -1272,7 +1272,7 @@
|
||||
? "+"
|
||||
: selectVersion3Obj["累计"].AccountINC
|
||||
.increaseRate < 0
|
||||
? "-"
|
||||
? ""
|
||||
: ""
|
||||
}}</span
|
||||
>
|
||||
@ -1304,14 +1304,14 @@
|
||||
selectVersion3Obj["累计"].AccountINC
|
||||
.curYearData || "-"
|
||||
}}</text>
|
||||
<text class="label">2024年/万元</text>
|
||||
<text class="label">{{(Math.floor(index / 12) + 2023)}}年/万元</text>
|
||||
</div>
|
||||
<div class="rightBox qmCarRight">
|
||||
<text class="value">{{
|
||||
selectVersion3Obj["累计"].AccountINC.lYearData ||
|
||||
"-"
|
||||
}}</text>
|
||||
<text class="label">2023年/万元</text>
|
||||
<text class="label">{{(Math.floor(index / 12) + 2022)}}年/万元</text>
|
||||
</div>
|
||||
<img
|
||||
class="pkLogo"
|
||||
@ -1373,7 +1373,7 @@
|
||||
? "+"
|
||||
: selectVersion3Obj["累计"].BayonetINC
|
||||
.increaseRate < 0
|
||||
? "-"
|
||||
? ""
|
||||
: ""
|
||||
}}</span
|
||||
>
|
||||
@ -1405,14 +1405,14 @@
|
||||
selectVersion3Obj["累计"].BayonetINC
|
||||
.curYearData || "-"
|
||||
}}</text>
|
||||
<text class="label">2024年/万元</text>
|
||||
<text class="label">{{(Math.floor(index / 12) + 2023)}}年/万元</text>
|
||||
</div>
|
||||
<div class="rightBox summerHolidayRightBox">
|
||||
<text class="value">{{
|
||||
selectVersion3Obj["累计"].BayonetINC.lYearData ||
|
||||
"-"
|
||||
}}</text>
|
||||
<text class="label">2023年/万元</text>
|
||||
<text class="label">{{(Math.floor(index / 12) + 2022)}}年/万元</text>
|
||||
</div>
|
||||
<img
|
||||
class="pkLogo"
|
||||
@ -1477,7 +1477,7 @@
|
||||
? "+"
|
||||
: allselectVersion3Obj["累计"].RevenueINC
|
||||
.increaseRate < 0
|
||||
? "-"
|
||||
? ""
|
||||
: ""
|
||||
}}</span
|
||||
>
|
||||
@ -5522,44 +5522,44 @@ export default {
|
||||
spring: {
|
||||
name: "spring",
|
||||
title: "平安春运",
|
||||
startTime: "2024-01-26",
|
||||
endTime: "2024-03-05",
|
||||
startTime: "2025-01-14",
|
||||
endTime: "2025-02-23",
|
||||
}, // 春运
|
||||
qm: {
|
||||
name: "qm",
|
||||
title: "清明节",
|
||||
startTime: "2024-04-03",
|
||||
endTime: "2024-04-07",
|
||||
startTime: "2025-04-03",
|
||||
endTime: "2025-04-07",
|
||||
}, // 清明节
|
||||
labour: {
|
||||
name: "labour",
|
||||
title: "劳动节",
|
||||
startTime: "2024-04-30",
|
||||
endTime: "2024-05-06",
|
||||
startTime: "2025-04-30",
|
||||
endTime: "2025-05-06",
|
||||
}, // 劳动节
|
||||
dragonBoat: {
|
||||
name: "dragonBoat",
|
||||
title: "端午节",
|
||||
startTime: "2024-06-07",
|
||||
endTime: "2024-06-11",
|
||||
startTime: "2025-05-30",
|
||||
endTime: "2025-06-03",
|
||||
},
|
||||
summerHoliday: {
|
||||
name: "summerHoliday",
|
||||
title: "火热暑运",
|
||||
startTime: "2024-06-30",
|
||||
endTime: "2024-09-01",
|
||||
startTime: "2025-06-30",
|
||||
endTime: "2025-08-31",
|
||||
}, // 暑假
|
||||
midAutumn: {
|
||||
name: "midAutumn",
|
||||
title: "中秋节",
|
||||
startTime: "2024-09-14",
|
||||
endTime: "2024-09-18",
|
||||
}, // 中秋节
|
||||
// midAutumn: {
|
||||
// name: "midAutumn",
|
||||
// title: "中秋节",
|
||||
// startTime: "2024-09-14",
|
||||
// endTime: "2024-09-18",
|
||||
// }, // 中秋节
|
||||
nationalDay: {
|
||||
name: "nationalDay",
|
||||
title: "国庆节",
|
||||
startTime: "2024-09-29", // 说要提早两天显示节日的图标 没有数据也没关系 2024-09-30
|
||||
endTime: "2024-10-08",
|
||||
startTime: "2025-09-30", // 说要提早两天显示节日的图标 没有数据也没关系 2024-09-30
|
||||
endTime: "2025-10-09",
|
||||
}, // 国庆节
|
||||
}, // 2024年的全部节日
|
||||
allselectVersion3Obj: {}, //累计
|
||||
|
||||
@ -110,6 +110,163 @@ const getMoneyNoDecimal = (money) => {
|
||||
return num;
|
||||
}
|
||||
|
||||
// 2023年的农历日历
|
||||
let chineseCalendar2023 = [
|
||||
'腊月十六',
|
||||
'腊月十七',
|
||||
'腊月十八',
|
||||
'腊月十九',
|
||||
'腊月二十',
|
||||
'腊月廿一',
|
||||
'腊月廿二',
|
||||
'北小年',
|
||||
'南小年',
|
||||
'腊月廿五',
|
||||
'腊月廿六',
|
||||
'腊月廿七',
|
||||
'腊月廿八',
|
||||
'腊月廿九',
|
||||
'除夕',
|
||||
'春节',
|
||||
'正月初二',
|
||||
'正月初三',
|
||||
'正月初四',
|
||||
'正月初五',
|
||||
'正月初六',
|
||||
'正月初七',
|
||||
'正月初八',
|
||||
'正月初九',
|
||||
'正月初十',
|
||||
'正月十一',
|
||||
'正月十二',
|
||||
'正月十三',
|
||||
'正月十四',
|
||||
'正月十五',
|
||||
'正月十六',
|
||||
'正月十七',
|
||||
'正月十八',
|
||||
'正月十九',
|
||||
'正月二十',
|
||||
'正月廿一',
|
||||
'正月廿二',
|
||||
'正月廿三',
|
||||
'正月廿四',
|
||||
'正月廿五',
|
||||
]
|
||||
// 2024年的农历日历
|
||||
let chineseCalendar2024 = [
|
||||
'腊月十六',
|
||||
'腊月十七',
|
||||
'腊月十八',
|
||||
'腊月十九',
|
||||
'腊月二十',
|
||||
'腊月廿一',
|
||||
'腊月廿二',
|
||||
'北小年',
|
||||
'南小年',
|
||||
'腊月廿五',
|
||||
'腊月廿六',
|
||||
'腊月廿七',
|
||||
'腊月廿八',
|
||||
'腊月廿九',
|
||||
'除夕',
|
||||
'春节',
|
||||
'正月初二',
|
||||
'正月初三',
|
||||
'正月初四',
|
||||
'正月初五',
|
||||
'正月初六',
|
||||
'正月初七',
|
||||
'正月初八',
|
||||
'正月初九',
|
||||
'正月初十',
|
||||
'正月十一',
|
||||
'正月十二',
|
||||
'正月十三',
|
||||
'正月十四',
|
||||
'正月十五',
|
||||
'正月十六',
|
||||
'正月十七',
|
||||
'正月十八',
|
||||
'正月十九',
|
||||
'正月二十',
|
||||
'正月廿一',
|
||||
'正月廿二',
|
||||
'正月廿三',
|
||||
'正月廿四',
|
||||
'正月廿五',
|
||||
]
|
||||
// 2025年农历日历
|
||||
let chineseCalendar2025 = [
|
||||
'腊月十五',
|
||||
'腊月十六',
|
||||
'腊月十七',
|
||||
'腊月十八',
|
||||
'腊月十九',
|
||||
'腊月二十',
|
||||
'腊月廿一',
|
||||
'腊月廿二',
|
||||
'北小年',
|
||||
'南小年',
|
||||
'腊月廿五',
|
||||
'腊月廿六',
|
||||
'腊月廿七',
|
||||
'腊月廿八',
|
||||
'除夕',
|
||||
'春节',
|
||||
'正月初二',
|
||||
'正月初三',
|
||||
'正月初四',
|
||||
'正月初五',
|
||||
'正月初六',
|
||||
'正月初七',
|
||||
'正月初八',
|
||||
'正月初九',
|
||||
'正月初十',
|
||||
'正月十一',
|
||||
'正月十二',
|
||||
'正月十三',
|
||||
'正月十四',
|
||||
'正月十五',
|
||||
'正月十六',
|
||||
'正月十七',
|
||||
'正月十八',
|
||||
'正月十九',
|
||||
'正月二十',
|
||||
'正月廿一',
|
||||
'正月廿二',
|
||||
'正月廿三',
|
||||
'正月廿四',
|
||||
'正月廿五',
|
||||
]
|
||||
|
||||
// 2023年节假日安排表
|
||||
let festivalObj2023 = {
|
||||
"2023-01-01": "元旦",
|
||||
"2023-04-05": "清明节",
|
||||
"2023-05-01": "劳动节",
|
||||
"2023-06-22": "端午节",
|
||||
"2023-09-29": "中秋节",
|
||||
"2023-10-01": "国庆节",
|
||||
}
|
||||
// 2024年节假日安排表
|
||||
let festivalObj2024 = {
|
||||
"2024-01-01": "元旦",
|
||||
"2024-04-04": "清明节",
|
||||
"2024-05-01": "劳动节",
|
||||
"2024-06-10": "端午节",
|
||||
"2024-09-17": "中秋节",
|
||||
"2024-10-01": "国庆节",
|
||||
}
|
||||
// 2025年节假日安排表
|
||||
let festivalObj2025 = {
|
||||
"2025-01-01": "元旦",
|
||||
"2025-04-04": "清明节",
|
||||
"2025-05-01": "劳动节",
|
||||
"2025-05-31": "端午节",
|
||||
"2025-10-06": "中秋节",
|
||||
"2025-10-01": "国庆节",
|
||||
}
|
||||
|
||||
const handleRedText = (value) => {
|
||||
return <text > {
|
||||
@ -348,8 +505,56 @@ const cfu = {
|
||||
console.log('category', category);
|
||||
console.log('index', index);
|
||||
console.log('opts', opts);
|
||||
// 先拿到节日类型
|
||||
let festival = opts.selectFestival
|
||||
// 需要添加在显示文字的节日文字
|
||||
let otherFestivalTest = ''
|
||||
// 从opts里面 拿到这一行的详细数据
|
||||
let detail = opts.series.filter(subItem => subItem.name === item.name)[0]
|
||||
console.log('detail.realDateList[index]', detail.realDateList[index]);
|
||||
|
||||
if (festival === 2) {
|
||||
// 春节
|
||||
let resObj = [];
|
||||
if (item.name === 2023) {
|
||||
resObj = chineseCalendar2023
|
||||
} else if (item.name === 2024) {
|
||||
resObj = chineseCalendar2024
|
||||
} else if (item.name === 2025) {
|
||||
resObj = chineseCalendar2025
|
||||
}
|
||||
otherFestivalTest = resObj[index]
|
||||
} else if (festival === 1 || festival === 3 || festival === 4 || festival === 5 || festival === 7 || festival === 8) {
|
||||
// 非春节和暑期
|
||||
let resObj = {}
|
||||
if (item.name === 2023) {
|
||||
resObj = festivalObj2023
|
||||
} else if (item.name === 2024) {
|
||||
resObj = festivalObj2024
|
||||
} else if (item.name === 2025) {
|
||||
resObj = festivalObj2025
|
||||
}
|
||||
if (detail.realDateList[index]) {
|
||||
if (resObj[detail.realDateList[index]]) {
|
||||
otherFestivalTest = resObj[detail.realDateList[index]]
|
||||
}
|
||||
}
|
||||
}
|
||||
// 日期格式老的太长了修改一下显示
|
||||
const date = new Date(detail.realDateList[index])
|
||||
let y = date.getFullYear()
|
||||
y = y.toString().slice(2, 4)
|
||||
let m = date.getMonth() + 1
|
||||
if (m < 10) {
|
||||
m = '0' + m
|
||||
}
|
||||
let d = date.getDate()
|
||||
if (d < 10) {
|
||||
d = '0' + d
|
||||
}
|
||||
let dateText = `${y}.${m}.${d}`
|
||||
|
||||
|
||||
let add = ''
|
||||
if (detail.linearIndex > 0) {
|
||||
// 上一年
|
||||
@ -360,7 +565,7 @@ const cfu = {
|
||||
add = (((currentYearObj.real[index] - lastYearObj.real[index]) / lastYearObj.real[index]) * 100).toFixed(2) + '%'
|
||||
}
|
||||
|
||||
return `${detail.realDateList[index]}: ${detail.data[index].toFixed(2)}万元${add?detail.data[index]>0?','+add:'':''}`
|
||||
return `${dateText}${otherFestivalTest?`(${otherFestivalTest})`:'' }: ${detail.data[index].toFixed(2)}万元${add?detail.data[index]>0?','+add:'':''}`
|
||||
|
||||
// return item.name
|
||||
// let data = opts.series.filter(subItem=> subItem.name === item.name)[0].real[index]
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
? 'top springTop'
|
||||
: selectFestival === 3
|
||||
? 'top qmTop'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? 'top labourTop'
|
||||
: selectFestival === 5
|
||||
? 'top dragonBoatTop'
|
||||
@ -209,7 +209,9 @@
|
||||
@click="handleChangeSortName(1)"
|
||||
>
|
||||
<!-- <text class="sortText">{{ `24年${type === 1 ? '销售' : type === 2 ? '营收' : type === 3 ? '车流' : ''}` }}</text>-->
|
||||
<text class="sortText">{{ `24年` }}</text>
|
||||
<text class="sortText">{{
|
||||
`${curYear.toString().slice(2, 4)}年`
|
||||
}}</text>
|
||||
<view class="sortIconBox" style="margin-right: 60rpx">
|
||||
<image
|
||||
class="upIcon"
|
||||
@ -254,7 +256,9 @@
|
||||
@click="handleChangeSortName(2)"
|
||||
>
|
||||
<!-- <text class="sortText">{{ `23年${type === 1 ? '销售' : type === 2 ? '营收' : type === 3 ? '车流' : ''}` }}</text>-->
|
||||
<text class="sortText">{{ `23年` }}</text>
|
||||
<text class="sortText">{{
|
||||
`${compareYear.toString().slice(2, 4)}年`
|
||||
}}</text>
|
||||
<view class="sortIconBox">
|
||||
<image
|
||||
class="upIcon"
|
||||
@ -527,6 +531,8 @@ export default {
|
||||
type: 0, // 判断是要查询哪个数据 1销售 2营收 3车流
|
||||
ServerpartId: "", // 服务区id
|
||||
useInfo: {},
|
||||
curYear: "",
|
||||
compareYear: "",
|
||||
ServerpartList: [],
|
||||
currentServerPart: "",
|
||||
showSpring: false,
|
||||
@ -550,7 +556,6 @@ export default {
|
||||
this.type = Number(query.type);
|
||||
}
|
||||
if (query.festivalType) {
|
||||
this.selectFestival = Number(query.festivalType);
|
||||
}
|
||||
if (query.currentScroll) {
|
||||
this.currentScroll = query.currentScroll;
|
||||
@ -558,6 +563,11 @@ export default {
|
||||
if (query.festivalObj) {
|
||||
this.festivalObj = JSON.parse(query.festivalObj);
|
||||
}
|
||||
|
||||
this.selectFestival = this.festivalObj.HolidayType;
|
||||
this.curYear = this.festivalObj.curYear;
|
||||
this.compareYear = this.festivalObj.compareYear;
|
||||
console.log("this.festivalObj", this.festivalObj);
|
||||
this.lastDay = uni.getStorageSync("lastDay");
|
||||
const currentDate = new Date(this.lastDay);
|
||||
let nowTime = currentDate.getTime();
|
||||
@ -566,10 +576,8 @@ export default {
|
||||
new Date(this.festivalObj.startTime).getTime() <= nowTime &&
|
||||
new Date(this.festivalObj.endTime).getTime() > nowTime
|
||||
) {
|
||||
let dayNumber = moment(this.lastDay).diff(
|
||||
this.festivalObj.startTime,
|
||||
"days"
|
||||
);
|
||||
let dayNumber =
|
||||
moment(this.lastDay).diff(this.festivalObj.startTime, "days") + 1;
|
||||
console.log("dayNumber", dayNumber);
|
||||
if (dayNumber > 0) {
|
||||
for (let i = 0; i < dayNumber; i++) {
|
||||
|
||||
@ -198,7 +198,7 @@
|
||||
<view class="sortBox">
|
||||
<view class="sortItem" @click="handleChangeSortName(1)">
|
||||
<text class="sortText">{{
|
||||
`24年${
|
||||
`${curYear}年${
|
||||
type === 1
|
||||
? "销售"
|
||||
: type === 2
|
||||
@ -248,7 +248,7 @@
|
||||
|
||||
<view class="sortItem" @click="handleChangeSortName(2)">
|
||||
<text class="sortText">{{
|
||||
`23年${
|
||||
`${compareYear}年${
|
||||
type === 1
|
||||
? "销售"
|
||||
: type === 2
|
||||
@ -732,6 +732,8 @@ export default {
|
||||
this.festivalObj = JSON.parse(query.festivalObj);
|
||||
console.log("this.festivalObj", this.festivalObj);
|
||||
this.selectFestival = this.festivalObj.HolidayType;
|
||||
this.curYear = this.festivalObj.curYear;
|
||||
this.compareYear = this.festivalObj.compareYear;
|
||||
}
|
||||
if (query.time) {
|
||||
this.currentScroll = "item" + query.time;
|
||||
@ -746,11 +748,8 @@ export default {
|
||||
new Date(this.festivalObj.startTime).getTime() <= nowTime &&
|
||||
new Date(this.festivalObj.endTime).getTime() > nowTime
|
||||
) {
|
||||
let dayNumber = moment(this.lastDay).diff(
|
||||
this.festivalObj.startTime,
|
||||
"days"
|
||||
);
|
||||
console.log("dayNumber", dayNumber);
|
||||
let dayNumber =
|
||||
moment(this.lastDay).diff(this.festivalObj.startTime, "days") + 1;
|
||||
if (dayNumber > 0) {
|
||||
for (let i = 0; i < dayNumber; i++) {
|
||||
dayList.push({
|
||||
@ -1005,6 +1004,7 @@ export default {
|
||||
: ""
|
||||
} ${this.sortType === 0 ? "asc" : "desc"}`,
|
||||
};
|
||||
console.log("req", req);
|
||||
// this.dataList
|
||||
const data = await request.$webGet(
|
||||
"CommercialApi/Revenue/GetServerpartINCAnalysis",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
class="changeIcon"
|
||||
src="https://eshangtech.com/ShopICO/ahyd-BID/newIndex/1stDateTime.svg"
|
||||
/>
|
||||
<!-- defaultFestivalList[currentIndex].label -->
|
||||
<!-- defaultFestivalList[currentIndex].label -->
|
||||
<span class="festivalName">{{
|
||||
canSelectFestivalList[currentIndex].label
|
||||
}}</span>
|
||||
@ -365,7 +365,7 @@
|
||||
? $util.getMoney(pageData.curYearRevenue.data / 10000)
|
||||
: "0.00"
|
||||
}}</text>
|
||||
<text class="label">2024年/万元</text>
|
||||
<text class="label">{{ curYear || "" }}年/万元</text>
|
||||
</div>
|
||||
<div
|
||||
:class="
|
||||
@ -391,7 +391,7 @@
|
||||
? $util.getMoney(pageData.lYearRevenue.data / 10000)
|
||||
: "0.00"
|
||||
}}</text>
|
||||
<text class="label">2023年/万元</text>
|
||||
<text class="label">{{compareYear}}年/万元</text>
|
||||
</div>
|
||||
<img
|
||||
class="pkLogo"
|
||||
@ -431,8 +431,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- 增长 / 23年 -->
|
||||
@ -1016,8 +1018,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- 增长 / 23年 -->
|
||||
@ -1165,7 +1169,7 @@
|
||||
? $util.getMoney(pageData.curYearAccount.data / 10000)
|
||||
: "0.00"
|
||||
}}</text>
|
||||
<text class="label">2024年/万元</text>
|
||||
<text class="label">{{ curYear || "" }}年/万元</text>
|
||||
</div>
|
||||
<div
|
||||
:class="
|
||||
@ -1191,7 +1195,7 @@
|
||||
? $util.getMoney(pageData.lYearAccount.data / 10000)
|
||||
: "0.00"
|
||||
}}</text>
|
||||
<text class="label">2023年/万元</text>
|
||||
<text class="label">{{compareYear|| "" }}年/万元</text>
|
||||
</div>
|
||||
<img
|
||||
class="pkLogo"
|
||||
@ -1231,8 +1235,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- 增长 / 23年 -->
|
||||
@ -1613,8 +1619,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- 增长 / 23年 -->
|
||||
@ -1762,7 +1770,7 @@
|
||||
? $util.getMoney(pageData.curYearBayonet.data / 10000)
|
||||
: "0.00"
|
||||
}}</text>
|
||||
<text class="label">2024年/万辆</text>
|
||||
<text class="label">{{ curYear || "" }}年/万辆</text>
|
||||
</div>
|
||||
<div
|
||||
:class="
|
||||
@ -1788,7 +1796,7 @@
|
||||
? $util.getMoney(pageData.lYearBayonet.data / 10000)
|
||||
: "0.00"
|
||||
}}</text>
|
||||
<text class="label">2023年/万辆</text>
|
||||
<text class="label">{{compareYear|| "" }}年/万辆</text>
|
||||
</div>
|
||||
<img
|
||||
class="pkLogo"
|
||||
@ -1825,8 +1833,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- 增长 / 23年 -->
|
||||
@ -2207,8 +2217,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- <div class="titleItem" style="width: 130rpx">同比去年</div>-->
|
||||
@ -2871,8 +2883,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- <div class="titleItem" style="width: 130rpx">同比去年</div>-->
|
||||
@ -3537,8 +3551,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- <div class="titleItem" style="width: 130rpx">同比去年</div>-->
|
||||
@ -3623,8 +3639,10 @@
|
||||
>
|
||||
类别
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">2024年</div>
|
||||
<div class="titleItem" style="width: 110rpx">2023年</div>
|
||||
<div class="titleItem" style="width: 110rpx">
|
||||
{{ curYear || "" }}年
|
||||
</div>
|
||||
<div class="titleItem" style="width: 110rpx">{{compareYear|| "" }}年</div>
|
||||
<div class="titleItem" style="width: 110rpx">增长</div>
|
||||
<div class="titleItem" style="width: 110rpx">增幅</div>
|
||||
<!-- <div class="titleItem" style="width: 130rpx">同比去年</div>-->
|
||||
@ -4040,7 +4058,7 @@ export default {
|
||||
currentIndex: 0, // 当前节日的索引
|
||||
StatisticsDate: "", // 请求时间
|
||||
currentHoliday: 0, // 当前时间是这个节日的第几天
|
||||
canSelectFestivalList:[], // 可以选择的节日列表
|
||||
canSelectFestivalList: [], // 可以选择的节日列表
|
||||
};
|
||||
},
|
||||
async onLoad(query) {
|
||||
@ -4079,7 +4097,7 @@ export default {
|
||||
}
|
||||
});
|
||||
console.log("nowBeforeList", nowBeforeList);
|
||||
this.canSelectFestivalList = nowBeforeList
|
||||
this.canSelectFestivalList = nowBeforeList;
|
||||
// 如果当前时间不在任何一个节日范围内 那么 currentObj 肯定是空的 那我们就找已经过了 且最时间最大的
|
||||
// 因为默认的节日列表 要25年先 所以还得排序出时间大的
|
||||
if (!currentObj.label) {
|
||||
@ -4103,6 +4121,9 @@ export default {
|
||||
}
|
||||
this.selectFestival = currentObj.HolidayType;
|
||||
this.currentFestival = currentObj;
|
||||
this.curYear = currentObj.curYear;
|
||||
this.compareYear = currentObj.compareYear;
|
||||
|
||||
this.currentIndex = currentIndex;
|
||||
console.log("当前节日的索引", currentIndex);
|
||||
console.log("当前节日的对象", currentObj);
|
||||
@ -4399,9 +4420,11 @@ export default {
|
||||
async handleChangeFestival(e) {
|
||||
this.handleResest();
|
||||
console.log("e", e);
|
||||
let currentObj = this.defaultFestivalList[Number(e.detail.value)];
|
||||
let currentObj = this.canSelectFestivalList[Number(e.detail.value)];
|
||||
this.selectFestival = currentObj.HolidayType;
|
||||
this.currentFestival = currentObj;
|
||||
this.curYear = currentObj.curYear;
|
||||
this.compareYear = currentObj.compareYear;
|
||||
console.log("this.currentFestival", this.currentFestival);
|
||||
this.currentIndex = Number(e.detail.value);
|
||||
const currentDate = new Date(this.lastDay);
|
||||
|
||||
@ -418,7 +418,7 @@
|
||||
:animation="false"
|
||||
:canvas2d="true"
|
||||
:inScrollView="true"
|
||||
tooltipFormat="entryCarNumber2"
|
||||
tooltipFormat="entryCarNumber"
|
||||
:ontouch="true"
|
||||
:reshow="allScreen"
|
||||
/>
|
||||
@ -820,7 +820,17 @@ export default {
|
||||
rotateLock: false,
|
||||
enableScroll: true,
|
||||
background: "#FFFFFF",
|
||||
color: ["#1E80FF", "#00B6FF", "#ACB9CD"],
|
||||
color: [
|
||||
"#1890FF",
|
||||
"#91CB74",
|
||||
"#FAC858",
|
||||
"#EE6666",
|
||||
"#73C0DE",
|
||||
"#3CA272",
|
||||
"#FC8452",
|
||||
"#9A60B4",
|
||||
"#ea7ccc",
|
||||
],
|
||||
padding: [15, 15, 5, 5],
|
||||
dataLabel: false,
|
||||
legend: {
|
||||
@ -844,9 +854,9 @@ export default {
|
||||
{
|
||||
min: 0,
|
||||
max:
|
||||
this.selectFestival === 0
|
||||
this.selectFestival === 2
|
||||
? 3000
|
||||
: this.selectFestival === 4
|
||||
: this.selectFestival === 6
|
||||
? 900
|
||||
: 1500,
|
||||
},
|
||||
@ -862,6 +872,7 @@ export default {
|
||||
activeType: "hollow",
|
||||
},
|
||||
},
|
||||
selectFestival: this.selectFestival,
|
||||
};
|
||||
let phoneInfo = uni.getStorageSync("phoneInfo");
|
||||
console.log("phoneInfo", phoneInfo);
|
||||
@ -875,7 +886,17 @@ export default {
|
||||
rotateLock: false,
|
||||
enableScroll: true,
|
||||
background: "#FFFFFF",
|
||||
color: ["#1E80FF", "#00B6FF", "#ACB9CD"],
|
||||
color: [
|
||||
"#1890FF",
|
||||
"#91CB74",
|
||||
"#FAC858",
|
||||
"#EE6666",
|
||||
"#73C0DE",
|
||||
"#3CA272",
|
||||
"#FC8452",
|
||||
"#9A60B4",
|
||||
"#ea7ccc",
|
||||
],
|
||||
padding: [15, 15, 5, 5],
|
||||
dataLabel: false,
|
||||
legend: {
|
||||
@ -895,7 +916,12 @@ export default {
|
||||
data: [
|
||||
{
|
||||
min: 0,
|
||||
max: 2000,
|
||||
max:
|
||||
this.selectFestival === 2
|
||||
? 3000
|
||||
: this.selectFestival === 6
|
||||
? 900
|
||||
: 1500,
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -909,6 +935,7 @@ export default {
|
||||
activeType: "hollow",
|
||||
},
|
||||
},
|
||||
selectFestival: this.selectFestival,
|
||||
};
|
||||
console.log("this.opts2", this.opts2);
|
||||
console.log("this.res2", this.res2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user