Commit cad8d6b2 by 胡悦

提交膜页战报

1 parent 7eed52ed

199 KB | W: | H:

380 KB | W: | H:

src/assets/images/dj/war-header.png
src/assets/images/dj/war-header.png
src/assets/images/dj/war-header.png
src/assets/images/dj/war-header.png
  • 2-up
  • Swipe
  • Onion skin
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
#app {
position: relative;
}
.bg {
position: absolute;
left: 0;
// right: 0;
top: 0;
// bottom: 0;
width: 100%;
z-index: -1;
// height: 100%;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.mrg-22{
margin:0 22px;
}
.flex{
display:flex;
}
.mgb19{
margin-bottom:19px;
}
.logo {
bottom: 60px;
width: 196px;
img {
width: 100%;
height: 43px;
}
}
\ No newline at end of file \ No newline at end of file
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
#app {
position: relative;
}
.bg {
position: absolute;
left: 0;
// right: 0;
top: 0;
// bottom: 0;
width: 100%;
z-index: -1;
// height: 100%;
}
div {
user-select: none;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.mrg-22{
margin:0 22px;
}
.flex{
display:flex;
}
.mgb19{
margin-bottom:19px;
}
.logo {
bottom: 60px;
width: 196px;
img {
width: 100%;
height: 43px;
}
}
.wrapper-box {
position: relative;
.war-hearder {
position: relative;
z-index: -1;
img {
width: 100%;
height: 484px;
}
.header-time {
position: absolute;
right: 0;
top: 30px;
padding: 3px 16px;
height: 22px;
line-height: 22px;
background-image: linear-gradient(90deg, #F95A2E 0%, #F97E2E 100%);
border-radius: 12px 0 0 12px;
font-size: 11px;
color: #FFFFFF;
}
.service-name {
position: absolute;
bottom: 46px;
width: 100%;
padding: 7px 0;
text-align: center;
font-weight: 900;
font-size: 32px;
font-family: '宋体';
letter-spacing: 1px;
color: #FFFFFF;
background-image: linear-gradient(270deg, #ff735b00 0%, #F84919 55%, #ff735b00 100%);
border-radius: 4px;
}
}
}
.icon-money {
position: absolute;
left: 0;
top: 434px;
width: 164px;
height: 176px;
z-index: 1;
}
.statics-box {
position: relative;
margin: -24px 12px 0;
width: calc(100% - 24px);
height: 386px;
background: #FFF6ED;
z-index: 1;
border: 2px solid #FCF77D;
border-radius: 16px;
.statics-total {
position: relative;
margin-top: 40px;
width: 100%;
height: 84px;
text-align: center;
font-family: 'Alibaba PuHuiTi 2.0 115';
font-weight: 900;
font-size: 60px;
color: #F9572E;
text-align: center;
text-shadow: 2px 2px 0 #FFEFD2;
z-index: 1;
&::before {
content: '';
display: inline-block;
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: 144px;
height: 30px;
background-image: linear-gradient(270deg, #FFF6ED 0%, #FCD7B2 55%, #FFF6ED 100%);
z-index: -1;
}
}
.statics-name {
font-size: 32px;
color: #664141;
text-align: center;
margin-top: 8px;
}
.statics-list {
position: absolute;
display: flex;
bottom: 44px;
left: 0;
width: 100%;
.statics-item {
width: 33.33%;
.statics-number {
position: relative;
font-weight: 900;
font-size: 48px;
color: #F9572E;
text-align: center;
&::before {
content: '';
display: inline-block;
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: 144px;
height: 30px;
background-image: linear-gradient(270deg, #FFF6ED 0%, #FCD7B2 55%, #FFF6ED 100%);
z-index: -1;
}
}
}
}
}
.store-box {
margin: 32px 12px 0;
width: calc(100% - 24px);
background: #FFF6ED;
z-index: 1;
border: 2px solid #FCF77D;
border-radius: 16px;
.store-title {
position: relative;
text-align: center;
padding: 16px 0 12px;
img {
width: 172px;
height: 44px;
}
.store-legend {
display: flex;
align-items: center;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 184px;
height: 50px;
background: #FFE1C3;
border-radius: 26px 0 0 26px;
.text {
font-weight: 400;
font-size: 24px;
color: rgba(102, 65, 65, .8);
padding-left: 36px;
}
.yesterday,
.today {
position: relative;
&::after {
content: '';
position: absolute;
display: inline-block;
width: 12px;
height: 12px;
left: 16px;
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
}
}
.yesterday::after {
background-color: #282222;
}
.today::after {
background-color: rgba(40, 34, 34, 0.37);
}
}
}
.title-line {
width: 100%;
height: 12px;
background-color: #F97E2E;
}
}
.store-list {
.store-item {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.store-name {
box-sizing: border-box;
font-size: 24px;
color: #664141;
width: 100%;
height: 60px;
line-height: 60px;
background-image: linear-gradient(90deg, #FFE7B9 0%, #FFEFD1 100%);
border-radius: 4px 4px 0 0;
padding-left: 16px;
.store-rank {
padding-right: 16px;
}
}
.store-info {
display: flex;
width: 100%;
// height: 184px;
background-color: #FFF6E5;
font-size: 24px;
padding: 24px 0 32px;
&-item {
width: 144px;
text-align: center;
margin-right: 2px;
&:last-child {
margin-right: 0;
}
.info-name {
color: #282222;
margin-bottom: 8px;
}
.info-yesterday {
font-weight: 600;
font-size: 28px;
color: #282222;
margin-bottom: 12px;
}
.info-today {
color: #282222;
}
}
}
&:last-child {
.store-info {
border-radius: 0 0 16px 16px;
}
}
}
}
.logo {
display: flex;
width: 100%;
justify-content: center;
padding: 60px 0;
img {
display: inline-block;
width: 216px;
height: 30px;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -135,6 +135,9 @@ $good-color: #ffd2b2; ...@@ -135,6 +135,9 @@ $good-color: #ffd2b2;
font-weight: 800; font-weight: 800;
font-style: italic; font-style: italic;
} }
.arrive {
margin: 0 20px;
}
} }
.table { .table {
&-box { &-box {
......
/* /*
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 11:37:11 * @Date: 2022-10-10 11:37:11
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-10 15:38:16 * @LastEditTime: 2023-08-07 15:02:02
*/ */
/** 三个数字加一个逗号 */
const numAddSymbol = (val: number | string) => {
return val ? (val + '').replace(/\B(?=(?:\d{3})+\b)/g, ',') : 0
}
export default {
numAddSymbol
}
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 15:26:23 * @Date: 2022-10-10 15:26:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-03-20 14:37:30 * @LastEditTime: 2023-08-03 17:25:36
--> -->
<template> <template>
<div class="bg-top-box"> <div class="bg-top-box">
...@@ -49,8 +49,14 @@ ...@@ -49,8 +49,14 @@
</div> </div>
<div class="sales x-center"> <div class="sales x-center">
<div>第</div> <div>第</div>
<div class="number">{{ data.storeInfo!.orderCount }}</div> <div class="number">{{ data.storeInfo!.orderCount }}</div>
<div>单</div> <div>单</div>
<template v-if="amount">
<div class="arrive">—</div>
<div>第</div>
<div class="number">{{ amount }}</div>
<div>单</div>
</template>
</div> </div>
</div> </div>
<div class="wrapper-bg"> <div class="wrapper-bg">
...@@ -145,7 +151,7 @@ ...@@ -145,7 +151,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, onMounted, inject } from "vue"; import { ref, reactive, onMounted, inject } from "vue";
import { req } from "../../utils/request"; import { req } from "../../utils/request";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { DataInfo, Params } from "./interface"; import { DataInfo, Params } from "./interface";
...@@ -157,6 +163,7 @@ const data = reactive<Partial<DataInfo>>({ ...@@ -157,6 +163,7 @@ const data = reactive<Partial<DataInfo>>({
medals: ["first", "second", "third"], medals: ["first", "second", "third"],
storeInfo: {}, storeInfo: {},
}); });
const amount = ref(6)
const getInfo = async () => { const getInfo = async () => {
data.storeInfo = await req( data.storeInfo = await req(
"scrm.api.shopmall.activity.good.report.param", "scrm.api.shopmall.activity.good.report.param",
......
<!--
* @Description:
* @Author: huyue
* @Date: 2023-03-21 17:10:39
* @LastEditors: huyue
* @LastEditTime: 2023-08-07 15:03:31
-->
<template> <template>
<div class="wrapper-box war-report"> <div class="wrapper-box">
<div class="war-hearder"> <div class="war-hearder">
<img :src="getImageUrl('war-header')" alt="" /> <img src="../../assets/images/dj/war-header.png" alt="" />
<div class="header-time"> <div class="header-time">
数据生成时间为{{ data.reportInfo!.yesterdayDate }} 2023年12月29日
</div> </div>
<div class="service-name">天津海博雅汽车用品有限公司</div>
</div> </div>
<div class="war-box"> <div class="statics-box">
<div class="order-item"> <div class="statics-total">¥10846</div>
<div class="order-name">昨日营业额/元</div> <div class="statics-name">昨日产值/元</div>
<div class="order-value"> <div class="statics-list">
¥{{ data.reportInfo!.yesterdayOrderMoneyTotal || 0 }} <div class="statics-item">
<div class="statics-number">¥6</div>
<div class="statics-name">昨日升级/单</div>
</div> </div>
</div> <div class="statics-item">
<div class="order-item"> <div class="statics-number">¥468280</div>
<div class="order-name">昨日单量/单</div> <div class="statics-name">本月产值/元</div>
<div class="order-value">
{{ data.reportInfo!.yesterdayOrderNum || 0 }}
</div>
</div>
<div class="order-item p-d">
<div class="order-name">本月累计营业额/元</div>
<div class="order-value">
¥{{ data.reportInfo!.monthlyOrderMoneyTotal || 0 }}
</div> </div>
</div> <div class="statics-item">
<div class="order-item p-d"> <div class="statics-number">¥6</div>
<div class="order-name">本月累计单量/单</div> <div class="statics-name">本月升级/单</div>
<div class="order-value">
{{ data.reportInfo!.monthlyOrderNum || 0 }}
</div> </div>
</div> </div>
</div> </div>
<div class="war-box transform-box"> <div class="store-box">
<div class="transform-title"> <div class="store-title">
<img :src="getImageUrl('transform-title')" alt="" /> <img src="../../assets/images/dj/store-title.png" alt="">
</div> <div class="store-legend">
<div class="funnel"> <div class="text yesterday">昨日</div>
<img :src="getImageUrl('funnel')" alt="" /> <div class="text today">今日</div>
</div>
<div class="funnel-label foil">贴膜台次</div>
<div class="funnel-label experience">体验量</div>
<div class="funnel-label deal">成交量</div>
<div class="funnel-value foil-value">
{{ data.reportInfo!.filmTimes || 0 }}
</div>
<div class="funnel-value experience-value">
{{ data.reportInfo!.experienceTotal || 0 }}
</div>
<div class="funnel-value deal-value">
{{ data.reportInfo!.upgradeTotal || 0 }}
</div>
<div class="order-transform">
<div class="order-value">{{ data.reportInfo!.upgradeRate || 0 }}%</div>
<div class="order-rate">订单转化率</div>
</div>
</div>
<div
class="war-box order-box"
v-if="data.reportInfo!.orderDetailList!.length"
>
<div class="order-title">
<img :src="getImageUrl('order-title')" alt="" />
</div>
<div
class="order-li"
v-for="(item,index) in data.reportInfo!.orderDetailList"
:key="index"
>
<div class="order-info">
<div class="order-user">
<span class="user-name">{{ item.customerName }}</span
><span class="user-brand">{{ item.carTypeName }}</span>
</div>
<div style="white-space: nowrap">{{ item.payDate }}</div>
</div> </div>
<div class="order-shop"> </div>
<div <div class="title-line"></div>
class="shop-item" <div class="store-list">
v-for="(i, idx) in item.goodsNameList" <div class="store-item">
:key="idx" <div class="store-name">
> <span class="store-rank">1</span>
<div class="shop-name">{{ i }}</div> 山西香山瑞驰汽贸有限公司</div>
<div class="shop-price">¥{{ item.orderMoney[idx] }}</div> <div class="store-info">
<div class="store-info-item">
<div class="info-name">产值</div>
<div class="info-yesterday">¥18,228</div>
<div class="info-today">¥258,228</div>
</div>
<div class="store-info-item">
<div class="info-name">升级/单</div>
<div class="info-yesterday">2,228</div>
<div class="info-today">1,228</div>
</div>
<div class="store-info-item">
<div class="info-name">战败/单</div>
<div class="info-yesterday">228</div>
<div class="info-today">228</div>
</div>
<div class="store-info-item">
<div class="info-name">客单价</div>
<div class="info-yesterday">¥228</div>
<div class="info-today">¥228</div>
</div>
<div class="store-info-item">
<div class="info-name">转化率</div>
<div class="info-yesterday">28%</div>
<div class="info-today">28%</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<img class="war-logo" :src="getImageUrl('logo')" alt="" /> <div class="logo">
<img class="bg-footer" :src="getImageUrl('bg-footer')" alt="" /> <img :src="getImageUrl('logo')" alt="" />
<img class="bg-center" :src="getImageUrl('bg-center')" alt="" /> </div>
<img class="icon-money" src="../../assets/images/dj/icon-money.png" alt="">
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
...@@ -124,5 +114,5 @@ onMounted(() => { ...@@ -124,5 +114,5 @@ onMounted(() => {
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "src/assets/styles/dj.scss"; @import "src/assets/styles/dj/warReport.scss";
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!