231 lines
6.7 KiB
Vue
231 lines
6.7 KiB
Vue
![]() |
<script setup>
|
||
|
import { reactive, ref } from "vue"
|
||
|
import border from "../../../components/border.vue"
|
||
|
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']
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<border>
|
||
|
<div class="box">
|
||
|
<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">
|
||
|
<div class="head">
|
||
|
<div class="item">
|
||
|
<div class="c-circle">
|
||
|
<div class="c"></div>
|
||
|
</div>
|
||
|
<div>订单列表</div>
|
||
|
</div>
|
||
|
<div class="item">
|
||
|
<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 {
|
||
|
height: 92%;
|
||
|
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%;
|
||
|
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;
|
||
|
.head {
|
||
|
/* width: 100%; */
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
.item {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
& > div {
|
||
|
margin: 5px;
|
||
|
}
|
||
|
.c-circle {
|
||
|
border: 2px solid #5bdbf6;
|
||
|
width: 16px;
|
||
|
height: 16px;
|
||
|
border-radius: 50%;
|
||
|
background-color: rgba($color: #5bdbf6, $alpha: 0.1);
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
.c {
|
||
|
background-color: #5bdbf6;
|
||
|
width: 10px;
|
||
|
height: 10px;
|
||
|
border-radius: 50%;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
::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>
|