Commit f41bc108 by 前端

Merge branch 'saas+v4.19.0' into 'master'

合并线上版本Saas+v4.19.0

See merge request !31
2 parents 4d1bd294 7b968025
.morning-header {
position: relative;
width: 100%;
height: 328px;
text-align: center;
margin-bottom: 74px;
img {
width: 100%;
height: 100%;
}
.service-merchant {
display: inline-block;
line-height: 42px;
height: 42px;
background: #F13E00;
border-radius: 22px;
font-weight: 500;
font-size: 24px;
color: #FFC4A2;
padding: 4px 36px;
}
.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;
}
}
.mold-box {
position: relative;
width: calc(100% - 48px);
text-align: center;
margin: 12px 24px 20px;
background-image: linear-gradient(180deg, #FDECD2 1%, #FFE6C2 99%);
box-shadow: 0 10px 16px 4px #e5361099, inset 2px 2px 10px 0 #FFFFFF;
border-radius: 32px;
.title-name {
width: 280px;
height: 56px;
}
.mold-title {
position: relative;
width: 100%;
text-align: center;
.merchant-img {
width: 584px;
height: 56px;
}
.merchant-name {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 500;
font-size: 30px;
color: #944213;
}
}
.mold-content {
display: flex;
width: 100%;
box-sizing: border-box;
padding: 50px 14px 0;
&:last-child {
padding-bottom: 50px;
}
.mold-item {
display: inline-block;
width: calc(33% - 20px);
text-align: center;
margin-right: 30px;
&:nth-child(3),
&:nth-child(6)
&:nth-child(9) {
margin-right: 0;
}
.item-title {
width: 100%;
height: 44px;
line-height: 44px;
background-image: linear-gradient(180deg, #FFDCB5 0%, #FED3BE 100%);
border-radius: 12px;
font-weight: 500;
font-size: 24px;
color: #CD5D26;
}
.item-value {
display: inline-flex;
align-items: center;
margin-top: 12px;
font-weight: 600;
font-size: 36px;
color: #7B3D32;
text-align: center;
height: 50px;
}
.icon-arrow {
width: 28px;
height: 28px;
margin-right: 10px;
}
.veer {
transform: rotate(180deg);
}
}
}
.mold-follow {
margin: 40px 16px 32px;
width: calc(100% - 72px);
background-image: linear-gradient(180deg, #FFDCB5 0%, #FED3BE 100%);
border-radius: 12px;
padding: 20px;
.follow-title {
display: flex;
align-items: center;
text-align: left;
font-weight: 500;
font-size: 28px;
color: #CD5D26;
img {
width: 24px;
height: 24px;
margin-right: 8px;
}
}
.follow-custome {
margin-top: 16px;
background: #FFF8EE;
border-radius: 12px;
padding: 20px;
text-align: left;
.custome-header {
display: flex;
font-weight: 500;
font-size: 24px;
color: #944213;
padding-bottom: 6px;
.custome-li {
width: 50%;
}
}
.custome-content {
display: flex;
font-weight: 500;
font-size: 28px;
color: #944213;
padding-bottom: 6px;
&:last-child {
padding-bottom: 0;
}
.custome-li {
width: 50%;
}
}
}
}
.mold-tips {
padding: 0 22px 0 38px;
font-weight: 500;
font-size: 26px;
color: #CD5D26;
text-align: left;
margin-top: 40px;
}
.qr-box {
display: flex;
margin-right: 80px;
}
.qr-left {
flex: 1;
}
.qr-code {
width: 228px;
height: 228px;
img {
width: 100%;
height: 100%;
}
}
.code-tips {
font-weight: 500;
font-size: 24px;
color: #944213;
text-align: left;
margin-bottom: 70px;
padding: 0 22px 0 38px;
margin-top: 28px;
}
}
.wrapper-box {
position: relative;
padding-bottom: 184px;
}
.logo {
position: absolute;
bottom: 66px;
left: 50%;
transform: translateX(-50%);
}
.morning-footer {
position: absolute;
bottom: 39px;
width: 100%;
height: 126px;
}
.ribbon {
margin-top: -90px;
width: 100%;
height: 122px;
}
.icon-ribbon {
position: absolute;
top: 870px;
right: 20px;
width: 200px;
height: 116px;
}
\ No newline at end of file
......@@ -169,7 +169,7 @@
width: 100%;
font-weight: 500;
font-size: 22px;
color: #FA6F4D;
color: rgb(255, 255, 255, 0.65);
letter-spacing: 3.66px;
text-align: center;
margin-top: 28px;
......
......@@ -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
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-28 09:57:28
* @LastEditTime: 2023-04-07 14:23:47
*/
const fetchConfig1 = function (isEnv = true) {
// return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
......
<!--
* @Description:
* @Author: huyue
* @Date: 2023-04-03 14:13:32
* @LastEditors: huyue
* @LastEditTime: 2023-04-10 16:56:48
-->
<!--
* @Description:
* @Author: huyue
* @Date: 2023-04-03 14:13:32
* @LastEditors: huyue
* @LastEditTime: 2023-04-10 14:45:29
-->
<template>
<div class="wrapper-box">
<div class="morning-header">
<img :src="getImageUrl('morning-header')" alt="" />
<div class="service-merchant">
{{ data.posterInfo!.partnerMerchantName }}
</div>
<div class="header-time">
数据生成时间为{{ data.posterInfo!.yesterdayDate }}
</div>
</div>
<div class="mold-box">
<div class="mold-title">
<img class="merchant-img" :src="getImageUrl('merchant-name')" alt="" />
<div class="merchant-name">{{ data.posterInfo!.merchantName }}</div>
</div>
<div class="mold-content">
<div class="mold-item">
<div class="item-title">昨日营业额/元</div>
<div class="item-value">
¥{{ data.posterInfo!.yesterdayOrderMoneyTotal }}
</div>
</div>
<div class="mold-item">
<div class="item-title">昨日单量/单</div>
<div class="item-value">{{ data.posterInfo!.yesterdayOrderNum }}</div>
</div>
<div class="mold-item">
<div class="item-title">日均客单价</div>
<div class="item-value">
¥{{ data.posterInfo!.dailyAveragePrice }}
</div>
</div>
</div>
<div class="mold-content">
<div class="mold-item">
<div class="item-title">昨日转化率</div>
<div class="item-value">{{ data.posterInfo!.dailyUpgradeRate }}%</div>
</div>
<div class="mold-item">
<div class="item-title">月累计营业额/元</div>
<div class="item-value">
¥{{ data.posterInfo!.monthlyOrderMoneyTotal }}
</div>
</div>
<div class="mold-item">
<div class="item-title">月累计单量/单</div>
<div class="item-value">{{ data.posterInfo!.monthlyOrderNum }}</div>
</div>
</div>
<div class="mold-content">
<div class="mold-item">
<div class="item-title">月转化率</div>
<div class="item-value">
{{ data.posterInfo!.monthlyUpgradeRate }}%
</div>
</div>
<div class="mold-item">
<div class="item-title">月均客户价</div>
<div class="item-value">
¥{{ data.posterInfo!.monthAveragePrice }}
</div>
</div>
<div class="mold-item">
<div class="item-title">环比上月同期产值</div>
<div class="item-value">
<template v-if="data.posterInfo!.monthlyOrderMoneyTotalGrowthExist">
<img
class="icon-arrow"
:class="
data.posterInfo!.monthlyOrderMoneyTotalGrowth > 0 ? 'veer' : ''
"
:src="getImageUrl('icon-arrow')"
alt=""
/>
{{ data.posterInfo!.monthlyOrderMoneyTotalGrowth }}%
</template>
<template v-else>-</template>
</div>
</div>
</div>
</div>
<div class="mold-box" style="padding-bottom: 48px">
<div class="mold-title">
<img class="title-name" :src="getImageUrl('title-name')" alt="" />
<div class="merchant-name">客户跟进</div>
</div>
<div class="mold-content">
<div class="mold-item">
<div class="item-title">昨日发券</div>
<div class="item-value">
{{ data.posterInfo!.yesterdayCouponNum }}
</div>
</div>
<div class="mold-item">
<div class="item-title">昨日预约</div>
<div class="item-value">
{{ data.posterInfo!.yesterdayInvitationNum }}
</div>
</div>
<div class="mold-item">
<div class="item-title">尚待预约</div>
<div class="item-value">{{ data.posterInfo!.waitToInviteNum }}</div>
</div>
</div>
<div
class="mold-follow"
v-if="data.posterInfo!.customerInvitationList!.length > 0"
>
<div class="follow-title">
<img :src="getImageUrl('icon-tips')" alt="" />
昨日精品顾问预约了{{
data.posterInfo!.customerInvitationList!.length
}}个客户
</div>
<div class="follow-custome">
<div class="custome-header">
<div class="custome-li">预约客户:</div>
<div class="custome-li">预约时间:</div>
</div>
<div
class="custome-content"
v-for="item in data.posterInfo!.customerInvitationList"
>
<div class="custome-li">{{ item.customerName }}</div>
<div class="custome-li">{{ item.toShopTime }}</div>
</div>
</div>
</div>
<img class="ribbon" :src="getImageUrl('ribbon')" alt="" />
<div class="qr-box" v-if="data.posterInfo!.waitToInviteNum > 0">
<div class="qr-left">
<div class="mold-tips">
截止目前待跟进预约的客户档案有{{
data.posterInfo!.waitToInviteNum
}}个,请尽快处理!
</div>
<div class="code-tips">扫码进入小程序>></div>
</div>
<div class="qr-code">
<img :src="getImageUrl('qr-code')" alt="" />
</div>
</div>
</div>
<img class="icon-ribbon" :src="getImageUrl('icon-ribbon')" alt="" />
<img class="logo" :src="getImageUrl('logo')" alt="" />
<img class="morning-footer" :src="getImageUrl('morning-footer')" alt="" />
</div>
</template>
<script lang="ts" setup>
import { reactive, onMounted, inject } from "vue";
import { djReq } from "../../utils/request";
import { useRoute } from "vue-router";
import { Params, DataInfo } from "./morningInterface";
const route = useRoute();
// 获取全局对象
const global: any = inject("global");
let query: Params = {};
const data = reactive<Partial<DataInfo>>({
posterInfo: {
customerInvitationList: [],
monthlyOrderMoneyTotalGrowth: 0,
waitToInviteNum: 0,
},
});
const getInfo = async () => {
data.posterInfo = await djReq(
"dj.api.smartcarlife.orderSummary.getShopMerchantOrderReport",
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;
}
getInfo();
});
</script>
<style lang="scss" scoped>
@import "src/assets/styles/morning.scss";
</style>
export interface Params {
merchantId?: number | string;
}
export interface DataInfo {
posterInfo: PosterInfo;
}
export interface PosterInfo {
dailyUpgradeRate?: number;
monthlyOrderMoneyTotal?: number;
monthlyOrderNum?: number;
dailyAveragePrice?: number;
yesterdayInvitationNum?: number;
monthlyOrderMoneyTotalGrowth: number;
monthAveragePrice?: number;
waitToInviteNum: number;
monthlyUpgradeRate?: number;
yesterdayDate?: string;
yesterdayOrderMoneyTotal?: number;
merchantName?: string;
customerInvitationList?: CustomerList[];
yesterdayOrderNum?: number;
yesterdayCouponNum?: number;
partnerMerchantName?: string;
monthlyOrderMoneyTotalGrowthExist?: boolean;
}
export interface CustomerList {
customerName?: string;
toShopTime?: string;
}
\ No newline at end of file
......@@ -55,7 +55,7 @@
</div>
<div class="tips-text">感谢您前期的铺垫和大力支持,加油!</div>
<div class="logo">
<img class="red-logo" :src="getImageUrl('red-logo')" alt="" />
<img class="red-logo" :src="getImageUrl('logo')" alt="" />
</div>
<img class="personal-gold" :src="getImageUrl('personal-gold')" alt="" />
<img class="personal-footer" :src="getImageUrl('personal-footer')" alt="" />
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-03-23 10:48:13
* @LastEditors: huyue
* @LastEditTime: 2023-03-23 15:15:11
* @LastEditTime: 2023-04-06 11:13:36
*/
export interface Params {
orderCode?: string;
......@@ -11,8 +11,7 @@ export interface Params {
export interface DataInfo {
newsInfo: NewsInfo;
upgradeCount: number | string
;
upgradeCount: number | string;
}
export interface NewsInfo {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!