update
This commit is contained in:
parent
c48289bb60
commit
4491ce3042
0
pages/index/new_file.js
Normal file
0
pages/index/new_file.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -728,12 +728,60 @@ export default {
|
||||
if (query.type) {
|
||||
this.type = Number(query.type);
|
||||
}
|
||||
if (query.festivalType) {
|
||||
this.selectFestival = Number(query.festivalType);
|
||||
if (query.festivalObj) {
|
||||
this.festivalObj = JSON.parse(query.festivalObj);
|
||||
console.log("this.festivalObj", this.festivalObj);
|
||||
this.selectFestival = this.festivalObj.HolidayType;
|
||||
}
|
||||
if (query.time) {
|
||||
this.currentScroll = "item" + query.time;
|
||||
this.allDateDay = this.currentScroll.split("item")[1];
|
||||
}
|
||||
|
||||
this.lastDay = uni.getStorageSync("lastDay");
|
||||
const currentDate = new Date(this.lastDay);
|
||||
let nowTime = currentDate.getTime();
|
||||
let dayList = [];
|
||||
if (
|
||||
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);
|
||||
if (dayNumber > 0) {
|
||||
for (let i = 0; i < dayNumber; i++) {
|
||||
dayList.push({
|
||||
label: `第${i + 1}天`,
|
||||
value: moment(this.festivalObj.startTime)
|
||||
.add(i, "days")
|
||||
.format("YYYY-MM-DD"),
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if (new Date(this.festivalObj.endTime).getTime() < nowTime) {
|
||||
// 当前时间已经过了这个时间范围了
|
||||
let dayNumber =
|
||||
moment(this.festivalObj.endTime).diff(
|
||||
this.festivalObj.startTime,
|
||||
"days"
|
||||
) + 1;
|
||||
console.log("dayNumber", dayNumber);
|
||||
if (dayNumber > 0) {
|
||||
for (let i = 0; i < dayNumber; i++) {
|
||||
dayList.push({
|
||||
label: `第${i + 1}天`,
|
||||
value: moment(this.festivalObj.startTime)
|
||||
.add(i, "days")
|
||||
.format("YYYY-MM-DD"),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
this.scrollList = dayList;
|
||||
this.handleGetData();
|
||||
return;
|
||||
|
||||
this.lastDay = uni.getStorageSync("lastDay");
|
||||
@ -909,7 +957,7 @@ export default {
|
||||
const time = new Date(date);
|
||||
let m = time.getMonth() + 1;
|
||||
let d = time.getDate();
|
||||
this.allDateDay = `${m < 10 ? "0" + m : m}月${d < 10 ? "0" + d : d}日`;
|
||||
this.allDateDay = date;
|
||||
}
|
||||
|
||||
this.handleGetData(date);
|
||||
@ -926,26 +974,26 @@ export default {
|
||||
: this.currentScroll.split("item")[1];
|
||||
const req = {
|
||||
calcType: this.pageType,
|
||||
pushProvinceCode: this.useInfo.userData.ProvinceCode || "340000",
|
||||
curYear: this.curYear,
|
||||
compareYear: this.compareYear,
|
||||
HolidayType:
|
||||
this.selectFestival === 0
|
||||
? 2
|
||||
: this.selectFestival === 1
|
||||
? 3
|
||||
: this.selectFestival === 2
|
||||
? 4
|
||||
: this.selectFestival === 3
|
||||
? 5
|
||||
: this.selectFestival === 4
|
||||
? 6
|
||||
: this.selectFestival === 5
|
||||
? 7
|
||||
: this.selectFestival === 6
|
||||
? 8
|
||||
: "",
|
||||
StatisticsDate: time,
|
||||
pushProvinceCode: "340000",
|
||||
curYear: this.festivalObj.curYear,
|
||||
compareYear: this.festivalObj.compareYear,
|
||||
HolidayType: this.selectFestival,
|
||||
// this.selectFestival === 0
|
||||
// ? 2
|
||||
// : this.selectFestival === 1
|
||||
// ? 3
|
||||
// : this.selectFestival === 2
|
||||
// ? 4
|
||||
// : this.selectFestival === 3
|
||||
// ? 5
|
||||
// : this.selectFestival === 4
|
||||
// ? 6
|
||||
// : this.selectFestival === 5
|
||||
// ? 7
|
||||
// : this.selectFestival === 6
|
||||
// ? 8
|
||||
// : "",
|
||||
StatisticsDate: this.allDateDay,
|
||||
businessRegion: 1,
|
||||
SortStr: `${
|
||||
this.type === 1
|
||||
@ -1320,12 +1368,13 @@ export default {
|
||||
Serverpart_ID: obj.ServerpartId,
|
||||
};
|
||||
uni.setStorageSync("springService", springObj); //当前选中服务区信息
|
||||
console.log("obj", obj);
|
||||
this.$util.toNextRoute(
|
||||
"navigateTo",
|
||||
`/pages/nationalPage/merchantRevenue?ServerpartId=${
|
||||
obj.ServerpartId
|
||||
}&type=${this.type}&serverPartList=${JSON.stringify(
|
||||
this.serverPartList
|
||||
}&type=${this.type}&festivalObj=${JSON.stringify(
|
||||
this.festivalObj
|
||||
)}¤tScroll=${this.currentScroll}&festivalType=${
|
||||
this.selectFestival
|
||||
}`
|
||||
|
||||
@ -86,14 +86,29 @@
|
||||
class="pick"
|
||||
@change="handleChangeFestival($event)"
|
||||
:value="currentIndex"
|
||||
:range="defaultFestivalList"
|
||||
:range="canSelectFestivalList"
|
||||
range-key="label"
|
||||
>
|
||||
<!-- :range="defaultFestivalList" -->
|
||||
<div
|
||||
class="festivalChangeBox"
|
||||
:style="{ paddingTop: menu.bottom + 32 + 'px' }"
|
||||
>
|
||||
<image
|
||||
<div class="newChangeBox">
|
||||
<image
|
||||
class="changeIcon"
|
||||
src="https://eshangtech.com/ShopICO/ahyd-BID/newIndex/1stDateTime.svg"
|
||||
/>
|
||||
<!-- defaultFestivalList[currentIndex].label -->
|
||||
<span class="festivalName">{{
|
||||
canSelectFestivalList[currentIndex].label
|
||||
}}</span>
|
||||
<image
|
||||
class="changeIcon"
|
||||
src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/rightArrow.svg"
|
||||
/>
|
||||
</div>
|
||||
<!-- <image
|
||||
:style="{
|
||||
width:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
@ -146,8 +161,8 @@
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/nationalDayTitleIcon.png'
|
||||
: ''
|
||||
"
|
||||
/>
|
||||
<image
|
||||
/> -->
|
||||
<!-- <image
|
||||
class="changeIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
@ -166,7 +181,7 @@
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/nationalDayRightArrow.png'
|
||||
: ''
|
||||
"
|
||||
/>
|
||||
/> -->
|
||||
</div>
|
||||
</picker>
|
||||
</div>
|
||||
@ -177,7 +192,7 @@
|
||||
<!-- 对客营收 -->
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'overAllDataTop springTop'
|
||||
: selectFestival === 3
|
||||
? 'overAllDataTop qmTop'
|
||||
@ -200,7 +215,7 @@
|
||||
<img
|
||||
class="titleImg"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/allDataTitle.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmSumData.png'
|
||||
@ -217,7 +232,10 @@
|
||||
: ''
|
||||
"
|
||||
/>
|
||||
<text
|
||||
<text class="titleNotice"
|
||||
>/共统计节日数据{{ currentHoliday }}天</text
|
||||
>
|
||||
<!-- <text
|
||||
class="titleNotice"
|
||||
v-if="!isShowWarningTime && selectFestival === 0"
|
||||
>{{ `/统计到${StatisticsDate}` }}</text
|
||||
@ -241,7 +259,7 @@
|
||||
class="titleNotice"
|
||||
v-if="!isShowWarningTime && selectFestival === 4"
|
||||
>{{ `/统计到${StatisticsDate}` }}</text
|
||||
>
|
||||
> -->
|
||||
</div>
|
||||
<div class="typeChangeBox" v-if="!showSpring">
|
||||
<div
|
||||
@ -325,7 +343,7 @@
|
||||
<div class="pkBox">
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'leftBox springLeftBox'
|
||||
: selectFestival === 3
|
||||
? 'leftBox qmLeftBox'
|
||||
@ -351,11 +369,11 @@
|
||||
</div>
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'rightBox springRightBox'
|
||||
: selectFestival === 3
|
||||
? 'rightBox qmRightBox'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? 'rightBox labourRightBox'
|
||||
: selectFestival === 5
|
||||
? 'rightBox dragonBoatRightBox'
|
||||
@ -378,7 +396,7 @@
|
||||
<img
|
||||
class="pkLogo"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/vs.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmPk1st.png'
|
||||
@ -1125,7 +1143,7 @@
|
||||
<div class="pkBox">
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'leftBox revenueLeft'
|
||||
: selectFestival === 3
|
||||
? 'leftBox qmRevenueLeft'
|
||||
@ -1137,7 +1155,7 @@
|
||||
? 'leftBox summerHolidayRevenueLeft'
|
||||
: selectFestival === 7
|
||||
? 'leftBox midAutumnRevenueLeft'
|
||||
: selectFestival ===8
|
||||
: selectFestival === 8
|
||||
? 'leftBox nationalDayRevenueLeft'
|
||||
: ''
|
||||
"
|
||||
@ -1151,7 +1169,7 @@
|
||||
</div>
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'rightBox revenueRight'
|
||||
: selectFestival === 3
|
||||
? 'rightBox qmRevenueRight'
|
||||
@ -1178,7 +1196,7 @@
|
||||
<img
|
||||
class="pkLogo"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/revenueVS.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmPk2st.png'
|
||||
@ -1722,9 +1740,9 @@
|
||||
<div class="pkBox" style="margin-bottom: 20px">
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'leftBox carLeft'
|
||||
: selectFestival ===3
|
||||
: selectFestival === 3
|
||||
? 'leftBox qmCarLeft'
|
||||
: selectFestival === 4
|
||||
? 'leftBox labourCarLeft'
|
||||
@ -1748,11 +1766,11 @@
|
||||
</div>
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'rightBox carRight'
|
||||
: selectFestival === 3
|
||||
? 'rightBox qmCarRight'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? 'rightBox labourCarRight'
|
||||
: selectFestival === 5
|
||||
? 'rightBox dragonBoatCarRight'
|
||||
@ -1775,7 +1793,7 @@
|
||||
<img
|
||||
class="pkLogo"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/carVS.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmPk3st.png'
|
||||
@ -1905,7 +1923,7 @@
|
||||
<div class="revenueDetail">
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'springTitleBox revenueDetailTitleBox'
|
||||
: selectFestival === 3
|
||||
? 'qmTitleBox revenueDetailTitleBox'
|
||||
@ -1926,7 +1944,7 @@
|
||||
<img
|
||||
class="detailLogo"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/revenueDetailLogo.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmDaily.png'
|
||||
@ -1946,7 +1964,7 @@
|
||||
<img
|
||||
class="detailIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/revenueDetailIcon.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmDetailIcon.png'
|
||||
@ -1973,7 +1991,7 @@
|
||||
class="goTest"
|
||||
@click="handleGoTest"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/springTravelBtn.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmPic.png'
|
||||
@ -1995,7 +2013,7 @@
|
||||
<scroll-view
|
||||
scroll-x="true"
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'navList springNav'
|
||||
: selectFestival === 3
|
||||
? 'navList qmNav'
|
||||
@ -2039,13 +2057,13 @@
|
||||
class="modalIndex"
|
||||
:style="{
|
||||
background:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#DB6465'
|
||||
: selectFestival === 3
|
||||
? '#3B9285'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? '#D14702'
|
||||
: selectFestival ===5
|
||||
: selectFestival === 5
|
||||
? '#3E8958'
|
||||
: selectFestival === 6
|
||||
? '#007797'
|
||||
@ -2064,7 +2082,7 @@
|
||||
class="moreText"
|
||||
:style="{
|
||||
color:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#ED3E48'
|
||||
: selectFestival === 3
|
||||
? '#226C61'
|
||||
@ -2086,13 +2104,13 @@
|
||||
<img
|
||||
class="moreIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/redRightArrow.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/greenRightArrow.png'
|
||||
: selectFestival === 4
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/labourRight.png'
|
||||
: selectFestival ===5
|
||||
: selectFestival === 5
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/dragonBoatRight.png'
|
||||
: selectFestival === 6
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/summerHolidayRight.png'
|
||||
@ -2114,7 +2132,7 @@
|
||||
class="modalIndex"
|
||||
:style="{
|
||||
background:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#DB6465'
|
||||
: selectFestival === 3
|
||||
? '#3B9285'
|
||||
@ -2139,7 +2157,7 @@
|
||||
class="moreText"
|
||||
:style="{
|
||||
color:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#ED3E48'
|
||||
: selectFestival === 3
|
||||
? '#226C61'
|
||||
@ -2161,11 +2179,11 @@
|
||||
<img
|
||||
class="moreIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/redRightArrow.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/greenRightArrow.png'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/labourRight.png'
|
||||
: selectFestival === 5
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/dragonBoatRight.png'
|
||||
@ -2693,7 +2711,7 @@
|
||||
class="modalIndex"
|
||||
:style="{
|
||||
background:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#DB6465'
|
||||
: selectFestival === 3
|
||||
? '#3B9285'
|
||||
@ -2718,11 +2736,11 @@
|
||||
class="moreText"
|
||||
:style="{
|
||||
color:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#ED3E48'
|
||||
: selectFestival === 3
|
||||
? '#226C61'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? '#D14702'
|
||||
: selectFestival === 5
|
||||
? '#226C61'
|
||||
@ -2740,7 +2758,7 @@
|
||||
<img
|
||||
class="moreIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/redRightArrow.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/greenRightArrow.png'
|
||||
@ -2778,7 +2796,7 @@
|
||||
class="modalIndex"
|
||||
:style="{
|
||||
background:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#DB6465'
|
||||
: selectFestival === 3
|
||||
? '#3B9285'
|
||||
@ -2803,7 +2821,7 @@
|
||||
class="moreText"
|
||||
:style="{
|
||||
color:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#ED3E48'
|
||||
: selectFestival === 3
|
||||
? '#226C61'
|
||||
@ -2825,7 +2843,7 @@
|
||||
<img
|
||||
class="moreIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/redRightArrow.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/greenRightArrow.png'
|
||||
@ -3359,7 +3377,7 @@
|
||||
class="modalIndex"
|
||||
:style="{
|
||||
background:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#DB6465'
|
||||
: selectFestival === 3
|
||||
? '#3B9285'
|
||||
@ -3384,7 +3402,7 @@
|
||||
class="moreText"
|
||||
:style="{
|
||||
color:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#ED3E48'
|
||||
: selectFestival === 3
|
||||
? '#226C61'
|
||||
@ -3406,9 +3424,9 @@
|
||||
<img
|
||||
class="moreIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/redRightArrow.png'
|
||||
: selectFestival ===3
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/greenRightArrow.png'
|
||||
: selectFestival === 4
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/labourRight.png'
|
||||
@ -3444,7 +3462,7 @@
|
||||
class="modalIndex"
|
||||
:style="{
|
||||
background:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#DB6465'
|
||||
: selectFestival === 3
|
||||
? '#3B9285'
|
||||
@ -3452,7 +3470,7 @@
|
||||
? '#D14702'
|
||||
: selectFestival === 5
|
||||
? '#3E8958'
|
||||
: selectFestival ===6
|
||||
: selectFestival === 6
|
||||
? '#007797'
|
||||
: selectFestival === 7
|
||||
? '#DA5015'
|
||||
@ -3469,7 +3487,7 @@
|
||||
class="moreText"
|
||||
:style="{
|
||||
color:
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? '#ED3E48'
|
||||
: selectFestival === 3
|
||||
? '#226C61'
|
||||
@ -3491,7 +3509,7 @@
|
||||
<img
|
||||
class="moreIcon"
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival===2
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/redRightArrow.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/greenRightArrow.png'
|
||||
@ -3861,7 +3879,7 @@ export default {
|
||||
HolidayType: 2,
|
||||
curYear: 2025,
|
||||
compareYear: 2024,
|
||||
startTime: "2025-01-13",
|
||||
startTime: "2025-01-14",
|
||||
endTime: "2025-02-23",
|
||||
lastYearStart: "2024/01/26",
|
||||
lastYearEnd: "2024/03/05",
|
||||
@ -3906,9 +3924,9 @@ export default {
|
||||
curYear: 2025,
|
||||
compareYear: 2024,
|
||||
startTime: "2025-06-30",
|
||||
endTime: "2025-09-01",
|
||||
endTime: "2025-08-31",
|
||||
lastYearStart: "2024/06/30",
|
||||
lastYearEnd: "2024/09/01",
|
||||
lastYearEnd: "2024/08/31",
|
||||
},
|
||||
// {
|
||||
// label: "25年中秋",
|
||||
@ -3991,9 +4009,9 @@ export default {
|
||||
curYear: 2024,
|
||||
compareYear: 2023,
|
||||
startTime: "2024-06-30",
|
||||
endTime: "2024-09-01",
|
||||
endTime: "2024-08-31",
|
||||
lastYearStart: "2023/06/30",
|
||||
lastYearEnd: "2023/09/01",
|
||||
lastYearEnd: "2023/08/31",
|
||||
},
|
||||
{
|
||||
label: "24年中秋",
|
||||
@ -4021,6 +4039,8 @@ export default {
|
||||
currentFestival: {}, // 当前节日的对象
|
||||
currentIndex: 0, // 当前节日的索引
|
||||
StatisticsDate: "", // 请求时间
|
||||
currentHoliday: 0, // 当前时间是这个节日的第几天
|
||||
canSelectFestivalList:[], // 可以选择的节日列表
|
||||
};
|
||||
},
|
||||
async onLoad(query) {
|
||||
@ -4042,15 +4062,24 @@ export default {
|
||||
let nowTime = currentDate.getTime(); // 当前的时间戳 来拿到现在的时间 是过了哪个节日 没到哪个节日
|
||||
let currentIndex = 0; // 当前节日的索引
|
||||
let currentObj = {}; // 当前节日的对象
|
||||
|
||||
let nowBeforeList = [];
|
||||
|
||||
this.defaultFestivalList.forEach((item, index) => {
|
||||
if (new Date(item.startTime).getTime() <= nowTime) {
|
||||
nowBeforeList.push(item);
|
||||
}
|
||||
|
||||
if (
|
||||
new Date(item.startTime).getTime() < nowTime &&
|
||||
new Date(item.startTime).getTime() <= nowTime &&
|
||||
new Date(item.endTime).getTime() > nowTime
|
||||
) {
|
||||
currentIndex = index;
|
||||
currentObj = item;
|
||||
}
|
||||
});
|
||||
console.log("nowBeforeList", nowBeforeList);
|
||||
this.canSelectFestivalList = nowBeforeList
|
||||
// 如果当前时间不在任何一个节日范围内 那么 currentObj 肯定是空的 那我们就找已经过了 且最时间最大的
|
||||
// 因为默认的节日列表 要25年先 所以还得排序出时间大的
|
||||
if (!currentObj.label) {
|
||||
@ -4086,10 +4115,11 @@ export default {
|
||||
if (currentObj) {
|
||||
// 当前时间 在这个节日时间范围内
|
||||
if (
|
||||
new Date(currentObj.startTime).getTime() < nowTime &&
|
||||
new Date(currentObj.startTime).getTime() <= nowTime &&
|
||||
new Date(currentObj.endTime).getTime() > nowTime
|
||||
) {
|
||||
let dayNumber = moment(this.lastDay).diff(currentObj.startTime, "days");
|
||||
let dayNumber =
|
||||
moment(this.lastDay).diff(currentObj.startTime, "days") + 1;
|
||||
console.log("dayNumber", dayNumber);
|
||||
if (dayNumber > 0) {
|
||||
for (let i = 0; i < dayNumber; i++) {
|
||||
@ -4101,6 +4131,7 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
this.currentHoliday = dayNumber;
|
||||
this.currentScroll = "item" + this.lastDay;
|
||||
this.StatisticsDate = this.lastDay;
|
||||
} else if (new Date(currentObj.endTime).getTime() < nowTime) {
|
||||
@ -4118,6 +4149,7 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
this.currentHoliday = dayNumber;
|
||||
this.currentScroll = "item" + currentObj.endTime;
|
||||
this.StatisticsDate = currentObj.endTime;
|
||||
}
|
||||
@ -4370,21 +4402,21 @@ export default {
|
||||
let currentObj = this.defaultFestivalList[Number(e.detail.value)];
|
||||
this.selectFestival = currentObj.HolidayType;
|
||||
this.currentFestival = currentObj;
|
||||
console.log("this.currentFestival", this.currentFestival);
|
||||
this.currentIndex = Number(e.detail.value);
|
||||
const currentDate = new Date(this.lastDay);
|
||||
let nowTime = currentDate.getTime(); // 当前的时间戳 来拿到现在的时间 是过了哪个节日 没到哪个节日
|
||||
|
||||
console.log("currentObj", currentObj);
|
||||
console.log("this.lastDay", this.lastDay);
|
||||
let dayList = [];
|
||||
if (currentObj) {
|
||||
// 当前时间 在这个节日时间范围内
|
||||
if (
|
||||
new Date(currentObj.startTime).getTime() < nowTime &&
|
||||
new Date(currentObj.startTime).getTime() <= nowTime &&
|
||||
new Date(currentObj.endTime).getTime() > nowTime
|
||||
) {
|
||||
let dayNumber = moment(this.lastDay).diff(
|
||||
currentObj.startTime,
|
||||
"days"
|
||||
);
|
||||
let dayNumber =
|
||||
moment(this.lastDay).diff(currentObj.startTime, "days") + 1;
|
||||
console.log("dayNumber", dayNumber);
|
||||
if (dayNumber > 0) {
|
||||
for (let i = 0; i < dayNumber; i++) {
|
||||
@ -4396,6 +4428,7 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
this.currentHoliday = dayNumber;
|
||||
this.currentScroll = "item" + this.lastDay;
|
||||
this.StatisticsDate = this.lastDay;
|
||||
} else if (new Date(currentObj.endTime).getTime() < nowTime) {
|
||||
@ -4413,6 +4446,7 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
this.currentHoliday = dayNumber;
|
||||
this.currentScroll = "item" + currentObj.endTime;
|
||||
this.StatisticsDate = currentObj.endTime;
|
||||
}
|
||||
@ -5465,7 +5499,9 @@ export default {
|
||||
let time = this.currentScroll.split("item")[1];
|
||||
this.$util.toNextRoute(
|
||||
"navigateTo",
|
||||
`/pages/nationalPage/rankPage?type=${type}&time=${time}&festivalType=${this.currentFestival.HolidayType}`
|
||||
`/pages/nationalPage/rankPage?type=${type}&time=${time}&festivalObj=${JSON.stringify(
|
||||
this.currentFestival
|
||||
)}`
|
||||
);
|
||||
},
|
||||
handleGoTest(type) {
|
||||
@ -5709,15 +5745,34 @@ export default {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 32rpx;
|
||||
.festivalImg {
|
||||
width: 168rpx;
|
||||
height: 68rpx;
|
||||
}
|
||||
.changeIcon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
margin-left: 12rpx;
|
||||
.newChangeBox {
|
||||
background: #fff;
|
||||
padding: 16rpx 16rpx 16rpx 32rpx;
|
||||
border-radius: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.festivalName {
|
||||
margin: 0 16rpx;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #160002;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
.changeIcon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
}
|
||||
// .festivalImg {
|
||||
// width: 168rpx;
|
||||
// height: 68rpx;
|
||||
// }
|
||||
// .changeIcon {
|
||||
// width: 32rpx;
|
||||
// height: 32rpx;
|
||||
// margin-left: 12rpx;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
: ''
|
||||
"
|
||||
/>
|
||||
<div class="contentText" v-if="selectFestival === 1">
|
||||
<div class="contentText" v-if="selectFestival === 2">
|
||||
根据历史大数据显示:<br />
|
||||
<div style="text-indent: 2rem; font-size: 24rpx">
|
||||
服务区会在春运前至农历小年夜前(<span class="red"
|
||||
@ -70,13 +70,13 @@
|
||||
<div
|
||||
class="noticeBox"
|
||||
style="height: 500rpx"
|
||||
v-if="selectFestival === 3"
|
||||
v-if="selectFestival === 4"
|
||||
>
|
||||
<div
|
||||
:class="
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'boxBg springBox'
|
||||
: selectFestival ===3
|
||||
: selectFestival === 3
|
||||
? 'boxBg qmBox'
|
||||
: selectFestival === 4
|
||||
? 'boxBg labourBox'
|
||||
@ -99,7 +99,7 @@
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/imgDesc.png'
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/trendChart.png'
|
||||
: selectFestival ===4
|
||||
: selectFestival === 4
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/larburTrendChart.png'
|
||||
: selectFestival === 5
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/dragonBoatChart.png'
|
||||
@ -165,7 +165,7 @@
|
||||
:src="
|
||||
selectFestival === 1 || selectFestival === 2
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/allDataTitle.png'
|
||||
: selectFestival ===3
|
||||
: selectFestival === 3
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/qmSumData.png'
|
||||
: selectFestival === 4
|
||||
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/labourAllData.png'
|
||||
@ -216,7 +216,7 @@
|
||||
? 'rightBox qmRightBox'
|
||||
: selectFestival === 4
|
||||
? 'rightBox labourRightBox'
|
||||
: selectFestival ===5
|
||||
: selectFestival === 5
|
||||
? 'rightBox dragonBoatRightBox'
|
||||
: selectFestival === 6
|
||||
? 'rightBox summerHolidayRightBox'
|
||||
@ -609,72 +609,82 @@ export default {
|
||||
let realCompareList = [];
|
||||
|
||||
if (dataObj && dataObj.compareList && dataObj.compareList.length > 0) {
|
||||
dataObj.compareList.forEach((item) => {
|
||||
realCompareList.push(Number(item.value));
|
||||
compareList.push(Number(item.value) / 10000);
|
||||
const date = new Date(item.name);
|
||||
let m = date.getMonth() + 1;
|
||||
let d = date.getDate();
|
||||
let dateText = `${m}.${d}`;
|
||||
item.easyDate = dateText;
|
||||
compareDateList.push(moment(item.name).format("YYYY-MM-DD"));
|
||||
});
|
||||
// 根据字段 拿到开始结束时间 月日 因为年份不好添加 所以只能用月日 来筛选开始结束时间
|
||||
console.log("type", typeof dataObj.compareHoliday);
|
||||
let startIndex = 0;
|
||||
let endIndex = 0;
|
||||
if (dataObj.compareHoliday.indexOf("-") === -1) {
|
||||
let midIndex = 0;
|
||||
let time = dataObj.compareHoliday.replace(".", "/");
|
||||
dataObj.compareList.forEach((item, index) => {
|
||||
let date = new Date(item.name);
|
||||
let dateM = date.getMonth() + 1;
|
||||
if (dateM < 10) {
|
||||
dateM = "0" + dateM;
|
||||
}
|
||||
let dateD = date.getDate();
|
||||
if (dateD < 10) {
|
||||
dateD = "0" + dateD;
|
||||
}
|
||||
let monthDay = `${dateM}/${dateD}`;
|
||||
if (monthDay === time) {
|
||||
midIndex = index;
|
||||
}
|
||||
});
|
||||
startIndex = midIndex - 1;
|
||||
endIndex = midIndex + 1;
|
||||
} else {
|
||||
let [start, end] = dataObj.compareHoliday.split("-");
|
||||
start = start.replace(".", "/");
|
||||
end = end.replace(".", "/");
|
||||
console.log("start", start);
|
||||
console.log("end", end);
|
||||
// 拿到开始结束时间的索引 因为年份不好添加 不好用开始结束时间去判断 所以直接用索引去取
|
||||
// if (dataObj.compareHoliday.indexOf("-") === -1) {
|
||||
// let midIndex = 0;
|
||||
// let time = dataObj.compareHoliday.replace(".", "/");
|
||||
// dataObj.compareList.forEach((item, index) => {
|
||||
// let date = new Date(item.name);
|
||||
// let dateM = date.getMonth() + 1;
|
||||
// if (dateM < 10) {
|
||||
// dateM = "0" + dateM;
|
||||
// }
|
||||
// let dateD = date.getDate();
|
||||
// if (dateD < 10) {
|
||||
// dateD = "0" + dateD;
|
||||
// }
|
||||
// let monthDay = `${dateM}/${dateD}`;
|
||||
// if (monthDay === time) {
|
||||
// midIndex = index;
|
||||
// }
|
||||
// });
|
||||
// startIndex = midIndex - 1;
|
||||
// endIndex = midIndex + 1;
|
||||
// } else {
|
||||
// let [start, end] = dataObj.compareHoliday.split("-");
|
||||
// start = start.replace(".", "/");
|
||||
// end = end.replace(".", "/");
|
||||
// console.log("start", start);
|
||||
// console.log("end", end);
|
||||
// // 拿到开始结束时间的索引 因为年份不好添加 不好用开始结束时间去判断 所以直接用索引去取
|
||||
|
||||
dataObj.compareList.forEach((item, index) => {
|
||||
let date = new Date(item.name);
|
||||
let dateM = date.getMonth() + 1;
|
||||
if (dateM < 10) {
|
||||
dateM = "0" + dateM;
|
||||
}
|
||||
let dateD = date.getDate();
|
||||
if (dateD < 10) {
|
||||
dateD = "0" + dateD;
|
||||
}
|
||||
let monthDay = `${dateM}/${dateD}`;
|
||||
if (monthDay === start) {
|
||||
startIndex = index;
|
||||
}
|
||||
if (monthDay === end) {
|
||||
endIndex = index;
|
||||
}
|
||||
});
|
||||
}
|
||||
// dataObj.compareList.forEach((item, index) => {
|
||||
// let date = new Date(item.name);
|
||||
// let dateM = date.getMonth() + 1;
|
||||
// if (dateM < 10) {
|
||||
// dateM = "0" + dateM;
|
||||
// }
|
||||
// let dateD = date.getDate();
|
||||
// if (dateD < 10) {
|
||||
// dateD = "0" + dateD;
|
||||
// }
|
||||
// let monthDay = `${dateM}/${dateD}`;
|
||||
// if (monthDay === start) {
|
||||
// startIndex = index;
|
||||
// }
|
||||
// if (monthDay === end) {
|
||||
// endIndex = index;
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
// 截取出来的实际数据数组
|
||||
let list = dataObj.compareList.slice(startIndex, endIndex + 1);
|
||||
if (list && list.length > 0) {
|
||||
list.forEach((item) => {
|
||||
realCompareList.push(Number(item.value));
|
||||
compareList.push(Number(item.value) / 10000);
|
||||
const date = new Date(item.name);
|
||||
let m = date.getMonth() + 1;
|
||||
let d = date.getDate();
|
||||
let dateText = `${m}.${d}`;
|
||||
item.easyDate = dateText;
|
||||
compareDateList.push(moment(item.name).format("YYYY-MM-DD"));
|
||||
});
|
||||
}
|
||||
// // 截取出来的实际数据数组
|
||||
// let list = dataObj.compareList.slice(startIndex, endIndex + 1);
|
||||
// if (list && list.length > 0) {
|
||||
// list.forEach((item) => {
|
||||
// realCompareList.push(Number(item.value));
|
||||
// compareList.push(Number(item.value) / 10000);
|
||||
// const date = new Date(item.name);
|
||||
// let m = date.getMonth() + 1;
|
||||
// let d = date.getDate();
|
||||
// let dateText = `${m}.${d}`;
|
||||
// item.easyDate = dateText;
|
||||
// compareDateList.push(moment(item.name).format("YYYY-MM-DD"));
|
||||
// });
|
||||
// }
|
||||
}
|
||||
// 今年的具体日期
|
||||
let curDateList = [];
|
||||
@ -686,71 +696,83 @@ export default {
|
||||
let startIndex = 0;
|
||||
let endIndex = 0;
|
||||
if (dataObj && dataObj.curList && dataObj.curList.length > 0) {
|
||||
if (dataObj.curHoliday.indexOf("-") === -1) {
|
||||
let midIndex = 0;
|
||||
let time = dataObj.curHoliday.replace(".", "/");
|
||||
dataObj.curList.forEach((item, index) => {
|
||||
let date = new Date(item.name);
|
||||
let dateM = date.getMonth() + 1;
|
||||
if (dateM < 10) {
|
||||
dateM = "0" + dateM;
|
||||
}
|
||||
let dateD = date.getDate();
|
||||
if (dateD < 10) {
|
||||
dateD = "0" + dateD;
|
||||
}
|
||||
let monthDay = `${dateM}/${dateD}`;
|
||||
if (monthDay === time) {
|
||||
midIndex = index;
|
||||
}
|
||||
});
|
||||
startIndex = midIndex - 1;
|
||||
endIndex = midIndex + 1;
|
||||
} else {
|
||||
// 根据字段 拿到开始结束时间 月日 因为年份不好添加 所以只能用月日 来筛选开始结束时间
|
||||
let [start, end] = dataObj.curHoliday.split("-");
|
||||
start = start.replace(".", "/");
|
||||
end = end.replace(".", "/");
|
||||
console.log("start", start);
|
||||
console.log("end", end);
|
||||
dataObj.curList.forEach((item) => {
|
||||
realCurList.push(Number(item.value));
|
||||
curListList.push(Number(item.value) / 10000);
|
||||
const date = new Date(item.name);
|
||||
let m = date.getMonth() + 1;
|
||||
let d = date.getDate();
|
||||
let dateText = `${m}.${d}`;
|
||||
item.easyDate = dateText;
|
||||
curDateList.push(moment(item.name).format("YYYY-MM-DD"));
|
||||
});
|
||||
|
||||
dataObj.curList.forEach((item, index) => {
|
||||
let date = new Date(item.name);
|
||||
let dateM = date.getMonth() + 1;
|
||||
if (dateM < 10) {
|
||||
dateM = "0" + dateM;
|
||||
}
|
||||
let dateD = date.getDate();
|
||||
if (dateD < 10) {
|
||||
dateD = "0" + dateD;
|
||||
}
|
||||
let monthDay = `${dateM}/${dateD}`;
|
||||
if (monthDay === start) {
|
||||
startIndex = index;
|
||||
}
|
||||
if (monthDay === end) {
|
||||
endIndex = index;
|
||||
}
|
||||
});
|
||||
// 截取出来的实际数据数组
|
||||
let list = dataObj.curList.slice(startIndex, endIndex + 1);
|
||||
if (list && list.length > 0) {
|
||||
list.forEach((item) => {
|
||||
realCurList.push(Number(item.value));
|
||||
curListList.push(Number(item.value) / 10000);
|
||||
const date = new Date(item.name);
|
||||
let m = date.getMonth() + 1;
|
||||
let d = date.getDate();
|
||||
let dateText = `${m}.${d}`;
|
||||
item.easyDate = dateText;
|
||||
curDateList.push(moment(item.name).format("YYYY-MM-DD"));
|
||||
});
|
||||
}
|
||||
// if (dataObj.curHoliday.indexOf("-") === -1) {
|
||||
// let midIndex = 0;
|
||||
// let time = dataObj.curHoliday.replace(".", "/");
|
||||
// dataObj.curList.forEach((item, index) => {
|
||||
// let date = new Date(item.name);
|
||||
// let dateM = date.getMonth() + 1;
|
||||
// if (dateM < 10) {
|
||||
// dateM = "0" + dateM;
|
||||
// }
|
||||
// let dateD = date.getDate();
|
||||
// if (dateD < 10) {
|
||||
// dateD = "0" + dateD;
|
||||
// }
|
||||
// let monthDay = `${dateM}/${dateD}`;
|
||||
// if (monthDay === time) {
|
||||
// midIndex = index;
|
||||
// }
|
||||
// });
|
||||
// startIndex = midIndex - 1;
|
||||
// endIndex = midIndex + 1;
|
||||
// } else {
|
||||
// // 根据字段 拿到开始结束时间 月日 因为年份不好添加 所以只能用月日 来筛选开始结束时间
|
||||
// let [start, end] = dataObj.curHoliday.split("-");
|
||||
// start = start.replace(".", "/");
|
||||
// end = end.replace(".", "/");
|
||||
// console.log("start", start);
|
||||
// console.log("end", end);
|
||||
|
||||
console.log("startIndex", startIndex);
|
||||
console.log("endIndex", endIndex);
|
||||
console.log("list", list);
|
||||
}
|
||||
// dataObj.curList.forEach((item, index) => {
|
||||
// let date = new Date(item.name);
|
||||
// let dateM = date.getMonth() + 1;
|
||||
// if (dateM < 10) {
|
||||
// dateM = "0" + dateM;
|
||||
// }
|
||||
// let dateD = date.getDate();
|
||||
// if (dateD < 10) {
|
||||
// dateD = "0" + dateD;
|
||||
// }
|
||||
// let monthDay = `${dateM}/${dateD}`;
|
||||
// if (monthDay === start) {
|
||||
// startIndex = index;
|
||||
// }
|
||||
// if (monthDay === end) {
|
||||
// endIndex = index;
|
||||
// }
|
||||
// });
|
||||
|
||||
// console.log("startIndex", startIndex);
|
||||
// console.log("endIndex", endIndex);
|
||||
// console.log("list", list);
|
||||
// }
|
||||
|
||||
// // 截取出来的实际数据数组
|
||||
// let list = dataObj.curList.slice(startIndex, endIndex + 1);
|
||||
// if (list && list.length > 0) {
|
||||
// list.forEach((item) => {
|
||||
// realCurList.push(Number(item.value));
|
||||
// curListList.push(Number(item.value) / 10000);
|
||||
// const date = new Date(item.name);
|
||||
// let m = date.getMonth() + 1;
|
||||
// let d = date.getDate();
|
||||
// let dateText = `${m}.${d}`;
|
||||
// item.easyDate = dateText;
|
||||
// curDateList.push(moment(item.name).format("YYYY-MM-DD"));
|
||||
// });
|
||||
// }
|
||||
}
|
||||
console.log("compareDateMax", compareDateMax);
|
||||
console.log("compareDateList", compareDateList);
|
||||
@ -789,6 +811,7 @@ export default {
|
||||
}
|
||||
|
||||
this.res = normalData;
|
||||
this.res2 = normalData;
|
||||
this.opts = {
|
||||
categories: normalData.categories,
|
||||
series: normalData.series,
|
||||
@ -840,7 +863,11 @@ export default {
|
||||
},
|
||||
},
|
||||
};
|
||||
let phoneInfo = uni.getStorageSync("phoneInfo");
|
||||
console.log("phoneInfo", phoneInfo);
|
||||
this.opts2 = {
|
||||
width: phoneInfo.screenHeight + "px",
|
||||
height: 2 * phoneInfo.screenWidth + "px",
|
||||
categories: normalData.categories,
|
||||
series: normalData.series,
|
||||
animation: false,
|
||||
@ -883,6 +910,8 @@ export default {
|
||||
},
|
||||
},
|
||||
};
|
||||
console.log("this.opts2", this.opts2);
|
||||
console.log("this.res2", this.res2);
|
||||
uni.hideLoading();
|
||||
return;
|
||||
// let dateList = [];
|
||||
@ -1213,8 +1242,8 @@ export default {
|
||||
},
|
||||
};
|
||||
|
||||
let phoneInfo = uni.getStorageSync("phoneInfo");
|
||||
console.log("phoneInfo", phoneInfo);
|
||||
// let phoneInfo = uni.getStorageSync("phoneInfo");
|
||||
// console.log("phoneInfo", phoneInfo);
|
||||
let _this = this;
|
||||
this.opts2 = {
|
||||
// width:phoneInfo.screenHeight+'px',
|
||||
@ -1266,6 +1295,7 @@ export default {
|
||||
},
|
||||
handleShowAllScreen() {
|
||||
this.allScreen = !this.allScreen;
|
||||
console.log("this.allScreen", this.allScreen);
|
||||
},
|
||||
getSplitNumber(value) {
|
||||
if (value === 0 || value < 5) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user