This commit is contained in:
ylj20011123 2026-02-09 19:34:32 +08:00
parent 7263d3cb28
commit 06c85a31bc
6 changed files with 70 additions and 14 deletions

View File

@ -6,6 +6,9 @@ export default {
computed: { computed: {
...mapGetters({ user: "getUser" }), ...mapGetters({ user: "getUser" }),
}, },
globalData: {
isSkip: "",//
},
methods: { methods: {
...mapActions(["memberLogin", "getLoginCode"]), ...mapActions(["memberLogin", "getLoginCode"]),
...mapMutations(["setVisitChannels"]), ...mapMutations(["setVisitChannels"]),
@ -29,6 +32,7 @@ export default {
}, },
}, },
onLaunch: function (options) { onLaunch: function (options) {
uni.setStorageSync('isSkip', '')
uni.getSystemInfo({ uni.getSystemInfo({
success: function (e) { success: function (e) {
// #ifndef MP // #ifndef MP

View File

@ -4378,8 +4378,18 @@ export default {
} }
if (!this.isShowFestival) { if (!this.isShowFestival) {
this.isShowFestival = "other"; this.isShowFestival = "other";
uni.setStorageSync("festival", this.isShowFestival);
} else {
let isSkip = uni.getStorageSync('isSkip')
if (!isSkip) {
this.$util.toNextRoute(
"navigateTo",
`/pages/nationalPage/springTravel?selectType=2`
);
uni.setStorageSync('isSkip', true)
}
uni.setStorageSync("festival", this.isShowFestival);
} }
uni.setStorageSync("festival", this.isShowFestival);
await this.getData(this.option); await this.getData(this.option);
} }
@ -4448,10 +4458,22 @@ export default {
this.currentFestivalObj = obj this.currentFestivalObj = obj
} }
} }
if (!this.isShowFestival) { if (!this.isShowFestival) {
this.isShowFestival = "other"; this.isShowFestival = "other";
uni.setStorageSync("festival", this.isShowFestival);
} else {
let isSkip = uni.getStorageSync('isSkip')
if (!isSkip) {
this.$util.toNextRoute(
"navigateTo",
`/pages/nationalPage/springTravel?selectType=2`
);
uni.setStorageSync('isSkip', true)
}
uni.setStorageSync("festival", this.isShowFestival);
} }
uni.setStorageSync("festival", this.isShowFestival);
// //
this.single = timestampToTimeMonth(new Date(this.lastDay).getTime()); this.single = timestampToTimeMonth(new Date(this.lastDay).getTime());

View File

@ -43,7 +43,7 @@
<view class="content"> <view class="content">
<view class="uni-input">{{ <view class="uni-input">{{
springService.SERVERPART_NAME springService.SERVERPART_NAME
}}</view> }}</view>
<p class="area" v-if="springService.Serverpart_ID"> <p class="area" v-if="springService.Serverpart_ID">
{{ springService.SPREGIONTYPE_NAME }} {{ springService.SPREGIONTYPE_NAME }}
</p> </p>
@ -59,8 +59,8 @@
<image class="searchIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/searchIconService.svg" /> <image class="searchIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/searchIconService.svg" />
<text class="searchText">请输入想看的服务区</text> <text class="searchText">请输入想看的服务区</text>
</view> </view>
<image v-if="selectFestival === 1 || selectFestival === 2" class="titleSvg" :style="{ bottom: '-20rpx' }" <!-- <image v-if="selectFestival === 1 || selectFestival === 2" class="titleSvg" :style="{ bottom: '-20rpx' }"
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/serviceDetail.svg" /> src="https://eshangtech.com/ShopICO/ahyd-BID/examine/serviceDetail.svg" /> -->
</div> </div>
<!-- <scroll-view :style="{top:menu.bottom + 24 + 'px' }" scroll-x="true" class="headerNavList" :scrollIntoView="currentServerPart" :scroll-with-animation="true">--> <!-- <scroll-view :style="{top:menu.bottom + 24 + 'px' }" scroll-x="true" class="headerNavList" :scrollIntoView="currentServerPart" :scroll-with-animation="true">-->
@ -161,7 +161,7 @@
<!-- <text class="sortText">{{ `24年${type === 1 ? '销售' : type === 2 ? '营收' : type === 3 ? '车流' : ''}` }}</text>--> <!-- <text class="sortText">{{ `24年${type === 1 ? '销售' : type === 2 ? '营收' : type === 3 ? '车流' : ''}` }}</text>-->
<text class="sortText">{{ <text class="sortText">{{
`${curYear.toString().slice(2, 4)}` `${curYear.toString().slice(2, 4)}`
}}</text> }}</text>
<view class="sortIconBox" style="margin-right: 60rpx"> <view class="sortIconBox" style="margin-right: 60rpx">
<image class="upIcon" :style="{ <image class="upIcon" :style="{
transform: transform:
@ -194,7 +194,7 @@
<!-- <text class="sortText">{{ `23年${type === 1 ? '销售' : type === 2 ? '营收' : type === 3 ? '车流' : ''}` }}</text>--> <!-- <text class="sortText">{{ `23年${type === 1 ? '销售' : type === 2 ? '营收' : type === 3 ? '车流' : ''}` }}</text>-->
<text class="sortText">{{ <text class="sortText">{{
`${compareYear.toString().slice(2, 4)}` `${compareYear.toString().slice(2, 4)}`
}}</text> }}</text>
<view class="sortIconBox"> <view class="sortIconBox">
<image class="upIcon" :style="{ <image class="upIcon" :style="{
transform: transform:
@ -310,7 +310,7 @@
<div class="itemRight" :style="{ width: 'calc(100% - 128rpx)' }"> <div class="itemRight" :style="{ width: 'calc(100% - 128rpx)' }">
<div class="firstItemText">{{ <div class="firstItemText">{{
item.ServerpartShopName || "-" item.ServerpartShopName || "-"
}}</div> }}</div>
<div style="display: flex;"> <div style="display: flex;">
<div class="item" style="width: 110rpx">{{ <div class="item" style="width: 110rpx">{{

View File

@ -34,9 +34,9 @@
" :style="{ height: menu.height + menu.top + 'px', top: 0 + 'px' }"> " :style="{ height: menu.height + menu.top + 'px', top: 0 + 'px' }">
<image :style="{ bottom: (statusBarHeight - 24) / 4 + 'px' }" class="backArrow" <image :style="{ bottom: (statusBarHeight - 24) / 4 + 'px' }" class="backArrow"
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg" @click="handleBack" /> src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg" @click="handleBack" />
<image v-if="selectFestival === 1 || selectFestival === 2" <!-- <image v-if="selectFestival === 1 || selectFestival === 2"
:style="{ bottom: (statusBarHeight - 24) / 4 + 'px' }" class="titleSvg" :style="{ bottom: (statusBarHeight - 24) / 4 + 'px' }" class="titleSvg"
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/customerSales.svg" /> src="https://eshangtech.com/ShopICO/ahyd-BID/examine/customerSales.svg" /> -->
</div> </div>
</div> </div>
@ -838,6 +838,7 @@ export default {
let m = time.getMonth() + 1; let m = time.getMonth() + 1;
let d = time.getDate(); let d = time.getDate();
this.allDateDay = `${m < 10 ? "0" + m : m}${d < 10 ? "0" + d : d}`; this.allDateDay = `${m < 10 ? "0" + m : m}${d < 10 ? "0" + d : d}`;
} else { } else {
this.currentScroll = "item" + date; this.currentScroll = "item" + date;
const time = new Date(date); const time = new Date(date);

View File

@ -70,6 +70,10 @@
}}</span> }}</span>
<image class="changeIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/rightArrow.svg" /> <image class="changeIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/rightArrow.svg" />
</div> </div>
<view class="jumpBtn" @click.stop="goToRobot">
<image class="jumpBtnIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/AIAssistant.svg" />
数智助手
</view>
<!-- <image <!-- <image
:style="{ :style="{
width: width:
@ -187,7 +191,8 @@
? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/nationalDayAllData.png' ? 'https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/nationalDayAllData.png'
: '' : ''
" /> " />
<text class="titleNotice">/共统计节日数据{{ currentHoliday }}</text> <!-- <text class="titleNotice">/共统计节日数据{{ currentHoliday }}</text> -->
<text class="titleNotice">/共统计节日数据{{ currentDayNumber }}</text>
<!-- <text <!-- <text
class="titleNotice" class="titleNotice"
v-if="!isShowWarningTime && selectFestival === 0" v-if="!isShowWarningTime && selectFestival === 0"
@ -1755,7 +1760,7 @@
? 'scrollItem selectItem' ? 'scrollItem selectItem'
: 'scrollItem' : 'scrollItem'
" v-for="(item, index) in scrollList" :key="index" :id="'item' + item.value" " v-for="(item, index) in scrollList" :key="index" :id="'item' + item.value"
@click="handleChangeTime(item.value)"> @click="handleChangeTime(item.value, index)">
{{ item.label }} {{ item.label }}
</div> </div>
</scroll-view> </scroll-view>
@ -3651,6 +3656,7 @@ export default {
StatisticsDate: "", // StatisticsDate: "", //
currentHoliday: 0, // currentHoliday: 0, //
canSelectFestivalList: [], // canSelectFestivalList: [], //
currentDayNumber: 0,//
}; };
}, },
async onLoad(query) { async onLoad(query) {
@ -3750,6 +3756,7 @@ export default {
} }
this.currentHoliday = dayNumber; this.currentHoliday = dayNumber;
this.currentScroll = "item" + this.lastDay; this.currentScroll = "item" + this.lastDay;
this.currentDayNumber = dayNumber
this.StatisticsDate = this.lastDay; this.StatisticsDate = this.lastDay;
} else if (new Date(currentObj.endTime).getTime() <= nowTime) { } else if (new Date(currentObj.endTime).getTime() <= nowTime) {
// //
@ -3777,6 +3784,7 @@ export default {
this.StatisticsDate = moment(currentObj.startTime) this.StatisticsDate = moment(currentObj.startTime)
.add(dayNumber - 1, "days") .add(dayNumber - 1, "days")
.format("YYYY-MM-DD"); .format("YYYY-MM-DD");
this.currentDayNumber = dayNumber
} }
} }
console.log("dayList", dayList); console.log("dayList", dayList);
@ -4019,6 +4027,9 @@ export default {
uni.removeStorageSync("springService"); uni.removeStorageSync("springService");
}, },
methods: { methods: {
goToRobot() {
this.$util.toNextRoute("navigateTo", `/pages/robot/index`);
},
// //
async handleChangeFestival(e) { async handleChangeFestival(e) {
this.handleResest(); this.handleResest();
@ -4055,6 +4066,7 @@ export default {
} }
} }
this.currentHoliday = dayNumber; this.currentHoliday = dayNumber;
this.currentDayNumber = dayNumber
this.currentScroll = "item" + this.lastDay; this.currentScroll = "item" + this.lastDay;
this.StatisticsDate = this.lastDay; this.StatisticsDate = this.lastDay;
} else if (new Date(currentObj.endTime).getTime() <= nowTime) { } else if (new Date(currentObj.endTime).getTime() <= nowTime) {
@ -4074,6 +4086,7 @@ export default {
} }
} }
this.currentHoliday = dayNumber; this.currentHoliday = dayNumber;
this.currentDayNumber = dayNumber
this.currentScroll = "item" + moment(currentObj.startTime) this.currentScroll = "item" + moment(currentObj.startTime)
.add(dayNumber - 1, "days") .add(dayNumber - 1, "days")
.format("YYYY-MM-DD"); .format("YYYY-MM-DD");
@ -5153,13 +5166,14 @@ export default {
}); });
}, },
// //
async handleChangeTime(value) { async handleChangeTime(value, index) {
this.currentScroll = "item" + value; this.currentScroll = "item" + value;
this.StatisticsDate = value; this.StatisticsDate = value;
this.selectDateText = value; this.selectDateText = value;
this.pageData = null; this.pageData = null;
this.areaDataList = []; this.areaDataList = [];
this.handleReset(); this.handleReset();
this.currentDayNumber = index + 1
uni.showLoading({ uni.showLoading({
title: "正在加载...", title: "正在加载...",
}); });
@ -5579,6 +5593,7 @@ export default {
.festivalChangeBox { .festivalChangeBox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 32rpx; padding: 32rpx;
@ -5605,6 +5620,20 @@ export default {
} }
} }
.jumpBtn {
padding: 8rpx 16rpx;
background-color: #fff;
border-radius: 32rpx;
display: flex;
align-items: center;
.jumpBtnIcon {
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
}
// .festivalImg { // .festivalImg {
// width: 168rpx; // width: 168rpx;
// height: 68rpx; // height: 68rpx;

View File

@ -202,7 +202,7 @@
<view class="modle-title" style="margin-bottom: 12rpx;"> <view class="modle-title" style="margin-bottom: 12rpx;">
<image src="https://eshangtech.com/ShopICO/ahyd-BID/revenue/yestoday-region.png" mode="aspectFit"></image> <image src="https://eshangtech.com/ShopICO/ahyd-BID/revenue/yestoday-region.png" mode="aspectFit"></image>
<text>运营报表</text> <text>子公司报表</text>
</view> </view>