Commit 7e3ce946 by 胡悦

园区店喜报战报

1 parent 8c354161
...@@ -14,3 +14,20 @@ Since TypeScript cannot handle type information for `.vue` imports, they are shi ...@@ -14,3 +14,20 @@ Since TypeScript cannot handle type information for `.vue` imports, they are shi
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette. 2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471). You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
# 众筹 (crowdfunding)
* activited:已结束战报
* activiting:进行中战报
* goodNews:喜报
# 膨胀金 (/expansiongold)
* activited:已结束战报
* activiting:进行中战报
* goodNews:喜报
# saas+ 企微推送 (/sass)
// 喜报
.wrapper-box {
font-size: 0;
}
.header-box {
position: relative;
.header-bg {
width: 100%;
}
.time-bg {
width: 435.9px;
height: 62px;
position: absolute;
left: 50%;
bottom: 18px;
transform: translateX(-50%);
}
.time {
position: absolute;
left: 50%;
bottom: 18px;
transform: translateX(-50%);font-weight: 600;
height: 60px;
line-height: 60px;
font-size: 26px;
color: #FFF2D0;
}
}
.content-box {
margin-top: -1px;
padding: 14px 16px 0;
font-size: 17px;
background-image: linear-gradient(180deg, #F36E23 0%, #EC3F26 100%);
.reel {
width: 726px;
height: 46px;
}
.content-bg {
margin-top: -7px;
background-image: url("@/assets/images/dj/content-bg.png");
background-repeat: repeat-y;
background-size: 726px 100%;
padding: 0 100px;
.content-list {
padding: 55px 6px 48px;
font-weight: 600;
font-size: 24px;
color: #493120;
border-bottom: 1px dashed #FD481B;
&:last-child {
border-bottom: none;
}
.content-item {
display: flex;
align-items: center;
margin-bottom: 32px;
&:last-child {
margin-bottom: 0;
}
.content-value {
display: flex;
align-items: center;
margin-left: 58px;
.number {
display: inline-block;
margin: 0 17px;
font-size: 48px;
color: #FC4614;
}
}
.price {
font-size: 48px;
color: #FC4614;
margin-left: 58px;
}
}
}
}
.logo {
display: flex;
width: 100%;
justify-content: center;
padding: 64px 0 100px;
img {
display: inline-block;
width: 216px;
height: 30px;
}
}
}
// 战报
.war-hearder {
position: relative;
width: 100%;
img {
width: 100%;
}
.header-time {
position: absolute;
right: 40px;
top: 60px;
font-size: 22px;
color: #FFF2D0;
border: 3px solid #FDD3A9;
border-radius: 24px;
padding: 0 16px;
line-height: 32px;
}
}
.war-box {
margin: 16px 46px 0;
background-image: linear-gradient(180deg, #FDECD2 1%, #FFE6C2 99%);
box-shadow: 0 10px 16px 4px rgba(229,54,16,0.60), inset 2px 2px 10px 0 #FFFFFF;
border-radius: 32px;
.order-item {
display: inline-block;
width: 50%;
text-align: center;
padding-top: 43px;
&.p-d {
padding-bottom: 48px;
}
.order-name {
display: inline-block;
width: 240px;
font-weight: 500;
font-size: 24px;
color: #CD5D26;
margin-bottom: 16px;
line-height: 44px;
background-image: linear-gradient(180deg, #FFDCB5 0%, #FED3BE 100%);
border-radius: 12px;
}
.order-value {
font-weight: 600;
font-size: 40px;
color: #7B3D32;
line-height: 56px;
}
}
}
.transform-box {
position: relative;
height: 432px;
.transform-title {
text-align: center;
img {
width: 280px;
height: 56px;
}
}
.funnel {
position: absolute;
top: 100px;
left: 132px;
img {
width: 440px;
height: 284px;
}
}
.funnel-label {
position: absolute;
left: 20px;
font-weight: 500;
font-size: 24px;
color: #CD5D26;
text-align: center;
width: 136px;
line-height: 40px;
background-image: linear-gradient(180deg, #FFDCB5 0%, #FED3BE 100%);
border-radius: 12px;
}
.foil {
top: 166px;
}
.experience {
top: 242px;
}
.deal {
top: 318px;
}
.funnel-value {
position: absolute;
width: 200px;
left: 255px;
text-align: center;
font-weight: 600;
font-size: 28px;
color: #7B3D32;
}
.foil-value {
top: 168px;
}
.experience-value {
top: 244px;
}
.deal-value {
top: 320px;
}
.order-transform {
position: absolute;
right: 48px;
bottom: 70px;
text-align: center;
font-weight: 600;
.order-rate {
font-size: 24px;
color: #F25D1E;
}
.order-value {
font-size: 40px;
color: #F25D1E;
}
}
}
.order-box {
.order-title {
text-align: center;
margin-bottom: 36px;
img {
width: 280px;
height: 56px;
}
}
.order-li {
box-sizing: border-box;
width: 100%;
padding: 0 12px 28px 32px;
.order-info {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
font-weight: 400;
font-size: 26px;
color: #CD5D26;
padding-right: 20px;
margin-bottom: 8px;
.order-user {
display: flex;
align-items: center;
}
.user-name {
display: inline-block;
margin-right: 16px;
max-width: 130px;
text-overflow :ellipsis;
overflow : hidden;
white-space :nowrap;
}
.user-brand {
display: inline-block;
max-width: 266px;
text-overflow :ellipsis;
overflow : hidden;
white-space :nowrap;
}
}
.order-shop {
font-weight: 500;
font-size: 28px;
color: #7B3D32;
background-image: linear-gradient(180deg, #FFDCB5 0%, #FED3BE 100%);
border-radius: 12px;
padding: 16px;
.shop-item {
display: flex;
justify-content: space-between;
margin-top: 12px;
&:first-child {
margin-top: 0;
}
.shop-name {
width: 276px;
text-overflow :ellipsis;
overflow : hidden;
white-space :nowrap;
}
.shop-price {
font-weight: 600;
font-size: 32px;
}
}
}
}
}
.war-report {
position: relative;
padding-bottom: 220px;
}
.war-logo {
position: absolute;
bottom: 104px;
left: 50%;
transform: translateX(-50%);
}
.bg-footer {
position: absolute;
bottom: 40.94px;
width: 100%;
height: 126px;
}
.bg-center {
position: absolute;
left: 27px;
top: 722px;
width: 718px;
height: 540px;
}
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-02-06 17:36:18 * @LastEditTime: 2023-02-09 14:57:03
*/ */
import HelloWorld from 'comps/HelloWorld.vue' import HelloWorld from 'comps/HelloWorld.vue'
...@@ -73,7 +73,22 @@ const staticRoutes = Object.freeze([ ...@@ -73,7 +73,22 @@ const staticRoutes = Object.freeze([
title: '已结束战报', title: '已结束战报',
backgroundColor: '#FE3C41' backgroundColor: '#FE3C41'
} }
},
// dj园区店喜报战报
{
path: '/dj/goodNews',
component: () => import('views/dj/goodNews.vue'),
meta: {
title: '订单喜报'
}
},
{
path: '/dj/warReport',
component: () => import('views/dj/warReport.vue'),
meta: {
title: '膜业战报',
backgroundColor: '#FA6031'
}
} }
]) ])
export default staticRoutes export default staticRoutes
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-08-23 11:04:56 * @Date: 2022-08-23 11:04:56
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-02-07 14:11:22 * @LastEditTime: 2023-02-07 15:14:49
*/ */
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios' import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios'
import { Toast } from 'vant'; import { Toast } from 'vant';
...@@ -57,7 +57,6 @@ service.interceptors.request.use((config: AxiosRequestConfig) => { ...@@ -57,7 +57,6 @@ service.interceptors.request.use((config: AxiosRequestConfig) => {
// 添加响应拦截器 // 添加响应拦截器
service.interceptors.response.use((r: AxiosResponse) => { service.interceptors.response.use((r: AxiosResponse) => {
console.log(r)
const { data: res, config: { returnAll } } = r const { data: res, config: { returnAll } } = r
const { code_key, code_success_value, data_key = 'data', errId = 'errId', code_error_value, errId_logout_value } = response const { code_key, code_success_value, data_key = 'data', errId = 'errId', code_error_value, errId_logout_value } = response
let codekey = Array.isArray(code_key) ? code_key.find(key => res.hasOwnProperty(key)) : code_key let codekey = Array.isArray(code_key) ? code_key.find(key => res.hasOwnProperty(key)) : code_key
......
...@@ -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-02-07 13:56:51 * @LastEditTime: 2023-02-07 15:33:05
--> -->
<template> <template>
<div class="bg-top-box"> <div class="bg-top-box">
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
<div class="wrapper-header"> <div class="wrapper-header">
<img src="@/assets/images/goodNews/ranking-header.png" alt="" /> <img src="@/assets/images/goodNews/ranking-header.png" alt="" />
</div> </div>
<div>360全景影像系统</div>
<div class="wrapper-content"> <div class="wrapper-content">
<div class="table-box ranking"> <div class="table-box ranking">
<div class="table-header"> <div class="table-header">
......
<template>
<div class="wrapper-box">
<div class="header-box">
<img class="header-bg" src="@/assets/images/dj/header-bg.png" alt="" />
<img class="time-bg" src="@/assets/images/dj/time-bg.png" alt="" />
<div class="time">2022-12-29 16:49:45</div>
</div>
<div class="content-box">
<img class="reel" src="@/assets/images/dj/reel.png" alt="" />
<div class="content-bg">
<div class="content-list">
<div class="content-item">
今日单量
<div class="content-value">
第
<span class="number">8</span>
单
</div>
</div>
<div class="content-item">
订单收款
<div class="price">¥5846.00</div>
</div>
</div>
<div class="content-list">
<div class="content-item">
累计单量
<div class="content-value">
第
<span class="number">8</span>
单
</div>
</div>
<div class="content-item">
累计产值
<div class="price">¥999999999.00</div>
</div>
</div>
</div>
<img class="reel" src="@/assets/images/dj/reel.png" alt="" />
<div class="logo">
<img src="@/assets/images/dj/logo.png" alt="" />
</div>
</div>
</div>
</template>
<script lang="ts" setup></script>
<style lang="scss" scoped>
@import "src/assets/styles/dj.scss";
</style>
<template>
<div class="wrapper-box war-report">
<div class="war-hearder">
<img src="@/assets/images/dj/war-header.png" alt="" />
<div class="header-time">数据生成时间为2022年12月29日 23:59:59</div>
</div>
<div class="war-box">
<div class="order-item">
<div class="order-name">昨日营业额/元</div>
<div class="order-value">¥5,846.00</div>
</div>
<div class="order-item">
<div class="order-name">昨日单量/单</div>
<div class="order-value">8</div>
</div>
<div class="order-item p-d">
<div class="order-name">本月累计营业额/元</div>
<div class="order-value">¥999999999.00</div>
</div>
<div class="order-item p-d">
<div class="order-name">本月累计单量/单</div>
<div class="order-value">1200</div>
</div>
</div>
<div class="war-box transform-box">
<div class="transform-title">
<img src="@/assets/images/dj/transform-title.png" alt="" />
</div>
<div class="funnel">
<img src="@/assets/images/dj/funnel.png" alt="" />
</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">9999999999</div>
<div class="funnel-value experience-value">80000</div>
<div class="funnel-value deal-value">18000</div>
<div class="order-transform">
<div class="order-value">68%</div>
<div class="order-rate">订单转化率</div>
</div>
</div>
<div class="war-box order-box">
<div class="order-title">
<img src="@/assets/images/dj/order-title.png" alt="" />
</div>
<div class="order-li">
<div class="order-info">
<div class="order-user">
<span class="user-name">张三</span
><span class="user-brand">比亚迪秦</span>
</div>
<div>12-29 20:36</div>
</div>
<div class="order-shop">
<div class="shop-item">
<div class="shop-name">福膜太阳膜V70前档</div>
<div class="shop-price">¥5,846.00</div>
</div>
</div>
</div>
<div class="order-li">
<div class="order-info">
<div class="order-user">
<span class="user-name">张三</span
><span class="user-brand">比亚迪秦</span>
</div>
<div>12-29 20:36</div>
</div>
<div class="order-shop">
<div class="shop-item">
<div class="shop-name">福膜太阳膜V70前档</div>
<div class="shop-price">¥5,846.00</div>
</div>
</div>
</div>
<div class="order-li">
<div class="order-info">
<div class="order-user">
<span class="user-name">张三张三张三</span
><span class="user-brand"
>比亚迪秦比亚迪秦比亚迪秦比亚迪秦比亚迪秦</span
>
</div>
<div>12-29 20:36</div>
</div>
<div class="order-shop">
<div class="shop-item">
<div class="shop-name">福膜太阳膜V70前档</div>
<div class="shop-price">¥5,846.00</div>
</div>
<div class="shop-item">
<div class="shop-name">福膜太阳膜V70前档</div>
<div class="shop-price">¥5,846.00</div>
</div>
</div>
</div>
</div>
<img class="war-logo" src="@/assets/images/dj/logo.png" alt="" />
<img class="bg-footer" src="@/assets/images/dj/bg-footer.png" alt="" />
<img class="bg-center" src="@/assets/images/dj/bg-center.png" alt="" />
</div>
</template>
<script lang="ts" setup></script>
<style lang="scss" scoped>
@import "src/assets/styles/dj.scss";
</style>
<!--
* @Description:
* @Author: huyue
* @Date: 2023-02-06 17:10:41
* @LastEditors: huyue
* @LastEditTime: 2023-02-07 16:18:17
-->
<template>
<div class="box"></div>
</template>
<style>
.box {
width: 100px;
height: 100px;
border: 2px solid;
/*设置线性渐变*/
border-image: linear-gradient(0deg, rgba(0, 216, 247, 0) 0%, #00afed 100%) 2 2
2 2;
}
</style>
<!--
* @Description: 喜报
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditTime: 2023-02-07 17:41:50
-->
<template>
<div class="bg-top-box">
<img class="bg-top" :src="getImageUrl('bg-top')" alt="" />
<div class="product-box x-center">
<div class="product-name">
<img
class="icon-left product-icon"
:src="getImageUrl('icon-left')"
alt=""
/>
<div>{{ data.storeInfo!.goodsName }}</div>
<img
class="icon-right product-icon"
:src="getImageUrl('icon-right')"
alt=""
/>
</div>
</div>
<div class="store-name x-center">{{ data.storeInfo!.merchantName }}</div>
<img
class="employee-avatar x-center"
:src="data.storeInfo!.avatar || getImageUrl('icon-avatar')"
alt=""
/>
<div class="ribbon x-center">
<div class="ribbon-content">
<img :src="getImageUrl('ribbon')" alt="" />
<div class="ribbon-text x-center">
<template v-if="data.storeInfo!.type == 2">
{{ data.storeInfo!.department }}
<span class="ribbon-name">{{ data.storeInfo!.name }}</span>
为团队助力
</template>
<template v-if="data.storeInfo!.type == 1">
<div class="ribbon-other-text">
<span>{{ data.storeInfo!.name }}</span
>为团队助力
</div>
</template>
</div>
</div>
</div>
<div class="sales x-center">
<div>第</div>
<div class="number">{{ data.storeInfo!.orderCount }}</div>
<div>单</div>
</div>
</div>
<div class="wrapper-bg">
<div class="wrapper-table">
<div class="table-bg">
<div class="wrapper-header">
<img src="@/assets/images/goodNews/ranking-header.png" alt="" />
</div>
<div>360全景影像系统</div>
<div class="wrapper-content">
<div class="table-box ranking">
<div class="table-header">
<div class="table-th">排名</div>
<div class="table-th">头像</div>
<div class="table-th">部门</div>
<div class="table-th">姓名</div>
<div class="table-th">单量</div>
</div>
<div class="table-body">
<div
class="table-item"
v-for="(item, index) in data.storeInfo!.orderRankList"
:key="index"
>
<template v-if="index < 3">
<div class="table-td first-ranking">
<img :src="getImageUrl(data.medals![index])" alt="" />
<span class="ranking-number" style="top: 44%">{{
index + 1
}}</span>
</div>
</template>
<template v-else>
<div class="table-td">
<span class="ranking-bg"></span>
<span class="ranking-number">{{ index + 1 }}</span>
</div>
</template>
<div class="table-td">
<img
class="table-avatar"
:src="item.avator || getImageUrl('icon-avatar')"
alt=""
/>
</div>
<div class="table-td">{{ item.department }}</div>
<div class="table-td">{{ item.name }}</div>
<div class="table-td sales-number">{{ item.orderCount }}</div>
</div>
</div>
</div>
</div>
<div class="wrapper-footer">
<img src="@/assets/images/goodNews/ranking-footer.png" alt="" />
</div>
</div>
<div class="bg-footer">
<img
class="left-footer"
src="@/assets/images/goodNews/left-footer.jpg"
alt=""
/>
<img
class="right-footer"
src="@/assets/images/goodNews/right-footer.png"
alt=""
/>
</div>
</div>
</div>
<div class="long-ribbon">
<img src="@/assets/images/goodNews/long-ribbon.png" alt="" />
</div>
<div class="left-ribbon">
<img :src="getImageUrl('left-ribbon')" alt="" />
</div>
<div class="right-ribbon">
<img :src="getImageUrl('right-ribbon')" alt="" />
</div>
<div class="bottom-ribbon">
<img src="@/assets/images/goodNews/bottom-ribbon.png" alt="" />
</div>
<div class="logo x-center">
<img :src="getImageUrl('logo', 'common')" alt="" />
</div>
</template>
<script lang="ts" setup>
import { reactive, onMounted, inject } from "vue";
import { req } from "../../utils/request";
import { useRoute } from "vue-router";
import { DataInfo, Params } from "./interface";
const route = useRoute();
// 获取全局对象
const global: any = inject("global");
let query: Params = {};
const data = reactive<Partial<DataInfo>>({
medals: ["first", "second", "third"],
storeInfo: {},
});
const getInfo = async () => {
data.storeInfo = await req(
"scrm.api.shopmall.activity.good.report.param",
query
);
};
const getImageUrl = (name: any, path = "goodNews") => {
return new URL(`./${path}/${name}.png?v=${global.version}`, global.$imgUrl)
.href;
};
onMounted(() => {
if (route.query) {
query = route.query;
getInfo();
}
});
</script>
<style lang="scss" scoped>
@import "src/assets/styles/goodNews.scss";
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!