Commit d211133d by 胡悦

提交

1 parent 4d1bd294
.morning-header {
position: relative;
width: 100%;
height: 328px;
img {
width: 100%;
height: 100%;
}
.header-time {
position: absolute;
right: 40px;
top: 66px;
font-size: 22px;
color: #FFF2D0;
border: 3px solid #FDD3A9;
border-radius: 24px;
padding: 0 16px;
line-height: 32px;
}
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-22 13:46:36
* @LastEditTime: 2023-04-03 14:46:54
*/
import HelloWorld from 'comps/HelloWorld.vue'
......@@ -105,6 +105,14 @@ const staticRoutes = Object.freeze([
title: '个人喜报',
backgroundColor: '#F84B2C'
}
},
{
path: '/dj/morning',
component: () => import('views/dj/morning.vue'),
meta: {
title: '早报',
backgroundColor: '#FA6031'
}
}
])
export default staticRoutes
<!--
* @Description:
* @Author: huyue
* @Date: 2023-04-03 14:13:32
* @LastEditors: huyue
* @LastEditTime: 2023-04-03 14:45:55
-->
<template>
<div class="wrapper-box war-report">
<div class="morning-header">
<img src="@/assets/images/dj/morning-header.png" alt="" />
<div class="header-time">数据生成时间为2022年12月29日 23:59</div>
</div>
</div>
</template>
<script lang="ts" setup>
import { reactive, onMounted, inject } from "vue";
import { djReq } from "../../utils/request";
import { useRoute } from "vue-router";
import { WarParams, WarDataInfo, OrderDetail } from "./interface";
const route = useRoute();
// 获取全局对象
const global: any = inject("global");
let query: WarParams = {};
const data = reactive<Partial<WarDataInfo>>({
reportInfo: {
orderDetailList: [],
},
});
const getInfo = async () => {
data.reportInfo = await djReq(
"dj.api.smartcarlife.orderSummary.getYqMerchantOrderReport",
query
);
};
const getImageUrl = (name: any, path = "dj") => {
return new URL(`./${path}/${name}.png?v=${global.version}`, global.$imgUrl)
.href;
};
onMounted(() => {
if (route.query) {
query = route.query;
}
});
</script>
<style lang="scss" scoped>
@import "src/assets/styles/morning.scss";
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!