Commit cea45bb1 by 杨明

Merge branch 'saas+v4.18.0_dev_huyue' into 'saas+v4.18.0'

Saas+v4.18.0 dev huyue

See merge request !25
2 parents 7cdf6c4c 53a79cfe
* {
font-size: 0;
}
@font-face {
font-family: 'Alibaba PuHuiTi 2.0 115';
src: url('../fonts/subset-AlibabaPuHuiTi_2_115_Black.woff2') format('woff2'),
url('../fonts/subset-AlibabaPuHuiTi_2_115_Black.woff') format('woff');
font-weight: 900;
font-style: normal;
font-display: swap;
}
.wrapper {
position: relative;
}
.wrapper-header {
position: relative;
.personal-header {
width: 100%;
height: 610px;
}
.merchant-name {
position: absolute;
width: 576px;
bottom: 18px;
left: 50%;
transform: translateX(-50%);
text-align: center;
font-weight: 600;
font-size: 32px;
color: #FFF7ED;
}
}
.user-box {
position: relative;
margin: auto;
width: 670px;
height: 516px;
background: #FFF6EE;
box-shadow: 0 20px 40px 0 #CC1C0F;
.month {
position: absolute;
right: 0;
top: 16px;
padding: 0 16px;
height: 34px;
line-height: 34px;
background: #FFEBD6;
border-radius: 17px 0 0 17px;
font-weight: 600;
font-size: 24px;
color: #E0895F;
}
.congratulation-title {
position: absolute;
top: 62px;
width: 100%;
height: 40px;
}
.user-info {
position: absolute;
top: 134px;
left: 50%;
width: 100%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
.avatar {
position: relative;
width: 54px;
height: 54px;
img {
width: 100%;
height: 100%;
border-radius: 50%;
}
.icon-crown{
position: absolute;
left: -10px;
top: -10px;
width: 32px;
height: 32px;
}
}
.user-name {
display: inline-flex;
margin-left: 4px;
align-items: baseline;
font-weight: 600;
font-size: 48px;
color: #FC4614;
.name {
font-weight: 600;
font-size: 48px;
color: #FC4614;
max-width: 432px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-job {
font-size: 24px;
}
}
}
.wheat {
position: absolute;
top: 240px;
width: 100%;
height: 132px;
}
.price-title {
position: absolute;
top: 230px;
text-align: center;
width: 100%;
font-size: 28px;
font-weight: 600;
color: #6E2714;
}
.price-number {
position: absolute;
top: 266px;
text-align: center;
width: 100%;
font-family: 'Alibaba PuHuiTi 2.0 115';
font-weight: 900;
font-size: 92px;
color: #FC4614;
}
.time {
position: absolute;
bottom: 40px;
font-weight: 600;
font-size: 24px;
color: #AC603B;
width: 100%;
text-align: center;
}
}
.customer-info {
margin: 20px 40px;
padding: 20px 50px;
background-image: linear-gradient(90deg, #FFB887 0%, #FFDDC0 30%, #FFDCB0 100%);
.customer-item {
display: flex;
width: 100%;
line-height: 34px;
font-weight: 400;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.label {
width: 96px;
font-size: 24px;
color: #AC603B;
}
.value {
flex: 1;
margin-left: 52px;
font-size: 24px;
color: #3B0000;
}
}
}
.tips-text {
width: 100%;
font-weight: 500;
font-size: 22px;
color: #FA6F4D;
letter-spacing: 3.66px;
text-align: center;
margin-top: 28px;
}
.logo {
width: 100%;
height: 152px;
text-align: center;
}
.red-logo {
margin-top: 64px;
width: 216px;
height: 30px;
}
.personal-gold {
position: absolute;
top: 610px;
width: 100%;
height: 616px;
}
.personal-footer {
position: absolute;
bottom: 0;
width: 100%;
height: 170px;
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-07 15:23:23
* @LastEditTime: 2023-03-22 13:46:36
*/
import HelloWorld from 'comps/HelloWorld.vue'
......@@ -97,6 +97,14 @@ const staticRoutes = Object.freeze([
title: '产值喜报',
backgroundColor: '#FA6031'
}
},
{
path: '/dj/personalGoodNews',
component: () => import('views/dj/personalGoodNews.vue'),
meta: {
title: '个人喜报',
backgroundColor: '#F84B2C'
}
}
])
export default staticRoutes
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-14 11:00:46
* @LastEditTime: 2023-03-21 17:39:21
*/
const fetchConfig = function (isEnv = true) {
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
......
......@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-09 16:22:40
* @LastEditTime: 2023-03-23 15:58:43
*/
const fetchConfig1 = function (isEnv = true) {
// return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig1
\ No newline at end of file
<!--
* @Description:
* @Author: huyue
* @Date: 2023-03-21 17:10:39
* @LastEditors: huyue
* @LastEditTime: 2023-03-21 17:49:31
-->
<!--
* @Description: 喜报
* @Author: huyue
* @Date: 2022-10-10 15:26:23
......
<template>
<div class="wrapper">
<div class="wrapper-header">
<img
class="personal-header"
src="@/assets/images/dj/personal-header.png"
alt=""
/>
<div class="merchant-name">{{ data.newsInfo!.merchantName }}</div>
</div>
<div class="user-box">
<div class="month">{{ data.newsInfo!.month }}月份</div>
<img
class="congratulation-title"
src="@/assets/images/dj/congratulation-title.png"
alt=""
/>
<div class="user-info">
<div class="avatar">
<img
:src="data.newsInfo!.staff!.avator || getImageUrl('avatar')"
alt=""
/>
<img
class="icon-crown"
src="@/assets/images/dj/icon-crown.png"
alt=""
/>
</div>
<div class="user-name">
<div class="name">{{ data.newsInfo!.staff!.staffName }}</div>
<div v-if="data.newsInfo!.staff!.staffJob" class="user-job">
({{ data.newsInfo!.staff!.staffJob }})
</div>
</div>
</div>
<img class="wheat" src="@/assets/images/dj/wheat.png" alt="" />
<div class="price-title">
为团队助力开单,{{
data.upgradeCount == 1
? "首单金额"
: data.upgradeCount <= 10
? `第${numberObj[data.upgradeCount]}笔`
: `第${data.upgradeCount}笔`
}}
</div>
<div class="price-number">{{ data.newsInfo!.totalPrice }}元</div>
<div class="time">- 开单时间 {{ data.newsInfo!.orderTime }} -</div>
</div>
<div class="customer-info">
<div class="customer-item">
<div class="label">客户姓名</div>
<div class="value">{{ data.newsInfo!.customerName }}</div>
</div>
<div class="customer-item">
<div class="label">客户车型</div>
<div class="value">
{{ data.newsInfo!.carBrand }} -
{{ data.newsInfo!.carChildsBrandName }} -
{{ data.newsInfo!.carSeriesName }}
</div>
</div>
</div>
<div class="tips-text">感谢您前期的铺垫和大力支持,加油!</div>
<div class="logo">
<img class="red-logo" src="@/assets/images/dj/red-logo.png" alt="" />
</div>
<img
class="personal-gold"
src="@/assets/images/dj/personal-gold.png"
alt=""
/>
<img
class="personal-footer"
src="@/assets/images/dj/personal-footer.png"
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, NewsInfo, StaffInfo } from "./personalInterface";
const route = useRoute();
// 获取全局对象
const global: any = inject("global");
let query: Params = {};
const numberObj = {
0: 0,
2: "贰",
3: "叁",
4: "肆",
5: "伍",
6: "陆",
7: "柒",
8: "捌",
9: "玖",
10: "拾",
};
const data = reactive<Partial<DataInfo>>({
newsInfo: <NewsInfo>{
staff: <StaffInfo>{},
},
upgradeCount: 0,
});
const getInfo = async () => {
data.newsInfo = await djReq(
"dj.api.smarcarlife.staffDayReport.getSaPersonalGoodNewsData",
query
);
data.upgradeCount = data.newsInfo?.staff?.upgradeCount;
};
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/personalGoodNews.scss";
</style>
/*
* @Description:
* @Author: huyue
* @Date: 2023-03-23 10:48:13
* @LastEditors: huyue
* @LastEditTime: 2023-03-23 15:15:11
*/
export interface Params {
orderCode?: string;
}
export interface DataInfo {
newsInfo: NewsInfo;
upgradeCount: number;
}
export interface NewsInfo {
month?: string;
staff?: StaffInfo;
totalPrice?: number;
carChildsBrandName?: string;
customerName?: string;
carBrand?: string;
merchantName?: string;
carSeriesName?: string;
orderTime?: string;
}
export interface StaffInfo {
staffName: string;
staffJob: string;
avator: string;
upgradeCount: number;
notUpgradeCount: number;
orderMoney: number;
unitPricePerCustomer: number;
conversionRate: number;
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!