update
This commit is contained in:
parent
7263d3cb28
commit
06c85a31bc
4
App.vue
4
App.vue
@ -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
|
||||||
|
|||||||
@ -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());
|
||||||
|
|||||||
@ -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">-->
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user