232 lines
6.6 KiB
Vue
Raw Normal View History

2023-11-27 17:18:03 +08:00
<script setup>
import { reactive, ref } from "vue"
import border from "../../../components/border.vue"
2023-11-28 18:35:14 +08:00
import { useRoute, useRouter } from "vue-router";
2023-11-27 17:18:03 +08:00
const list = reactive({
header: ['ID', '收件人', '收件人电话', '商品信息', '收货地址'],
data: [
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
['<span>1233</span>', '<span>张某某</span>', '<span>15566667777</span>', '<span>南瓜饼</span>', '<span>莲花池街道实打实打算</span>'],
],
// index: true,
headerBGC: 'rgba(0, 168, 255, 0.76)',
oddRowBGC: 'rgba(91, 219, 246, 0.20)',
evenRowBGC: 'rgba(0, 168, 255, 0.16)',
// columnWidth: [50],
align: ['center'],
rowNum: 7
})
const cell1 = reactive({
value: 66,
label: '66.66%',
count: 66542,
borderWidth: 1,
borderGap: 1,
borderRadius: 3,
colors: ['#66FFFF', '#FEDB65']
})
2023-11-28 18:35:14 +08:00
const route = useRouter()
const navToDelivery = () => {
route.push('/delivery')
}
2023-11-27 17:18:03 +08:00
</script>
<template>
<border>
2023-11-28 18:35:14 +08:00
<div class="box" @click="navToDelivery">
2023-11-27 17:18:03 +08:00
<div class="title">今日订单数</div>
<div class="my-day-num">
<div class="my-num-item">0</div>
<div class="my-num-item">0</div>
<div class="my-num-item">5</div>
<div class="my-num-item">2</div>
<div class="my-num-item">4</div>
<div class="my-num-item">1</div>
</div>
<div class="order-list">
2023-11-28 18:35:14 +08:00
<div class="top">
<div class="t-right">
<img src="/src/assets/img/item.png" />
<div>今日订单</div>
2023-11-27 17:18:03 +08:00
</div>
2023-11-28 18:35:14 +08:00
<div class="flex">
2023-11-27 17:18:03 +08:00
<div>查看更多</div>
<div>{{ "〉" }}</div>
</div>
</div>
<dv-scroll-board :config="list" style="width: 100%; height: 18rem" />
</div>
<div class="cylinder">
<div class="cy">
<div class="text">
<div class="top">
已完成<span class="sapn">{{ cell1.label }}</span>
</div>
<div class="num">{{ cell1.count }}</div>
</div>
<dv-percent-pond :config="cell1" class="cell" />
<div class="type">待取货订单数</div>
</div>
<div class="cy">
<div class="text">
<div>
已完成<span class="sapn">{{ cell1.label }}</span>
</div>
<div class="num">{{ cell1.count }}</div>
</div>
<dv-percent-pond :config="cell1" class="cell" />
<div class="type">未配送订单数</div>
</div>
<div class="cy">
<div class="text">
<div>
已完成<span class="sapn">{{ cell1.label }}</span>
</div>
<div class="num">{{ cell1.count }}</div>
</div>
<dv-percent-pond :config="cell1" class="cell" />
<div class="type">已完成订单数</div>
</div>
</div>
</div>
</border>
</template>
<style scoped lang="scss">
.box {
2023-11-28 18:35:14 +08:00
height: calc(100% - 40px);
2023-11-27 17:18:03 +08:00
width: 100%;
padding: 20px 20px;
font-size: 0.8rem;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
& > div {
width: calc(100% - 40px);
}
.title {
width: 100%;
background-image: url(../../../assets/img/title.png);
background-size: 100% 100%;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
font-family: "ifonts";
font-size: 1.2rem;
}
.my-day-num {
display: flex;
justify-content: center;
width: 100%;
2023-11-28 18:35:14 +08:00
height: 10%;
2023-11-27 17:18:03 +08:00
margin-top: 10px;
.my-num-item {
margin-right: 10px;
width: 4rem;
height: 4rem;
background-image: url(../../../assets/img/day_num.png);
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 2.2rem;
font-family: "ifonts";
}
}
.order-list {
height: 55%;
width: 100%;
margin-top: 10px;
2023-11-28 18:35:14 +08:00
.top {
height: 10%;
width: 100%;
2023-11-27 17:18:03 +08:00
display: flex;
justify-content: space-between;
align-items: center;
2023-11-28 18:35:14 +08:00
.t-right {
2023-11-27 17:18:03 +08:00
display: flex;
align-items: center;
2023-11-28 18:35:14 +08:00
img {
width: 1rem;
height: 1rem;
margin-right: 0.5rem;
2023-11-27 17:18:03 +08:00
}
2023-11-28 18:35:14 +08:00
}
.flex {
display: flex;
cursor: pointer;
div {
margin-left: 0.5rem;
2023-11-27 17:18:03 +08:00
}
}
}
::v-deep .dv-scroll-board .rows .row-item {
margin-bottom: 0.6rem;
}
}
.cylinder {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: 20px;
height: 20%;
.cy {
width: 30%;
height: 100%;
background-image: url(../../../assets/img/cylinder.png);
background-size: 100% 100%;
position: relative;
.text {
height: 70%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.top {
margin-top: 1rem;
}
.num {
font-size: 1.5rem;
font-family: "ifonts";
}
.sapn {
color: #fee165;
}
}
.type {
height: 30%;
display: flex;
justify-content: center;
align-items: center;
font-size: 1rem;
}
.cell {
transform: rotate(-90deg);
width: 3rem;
height: 1rem;
position: absolute;
right: -0.5rem;
top: 2rem;
}
::v-deep .dv-percent-pond text {
display: none;
}
}
}
}
</style>