Commit de4ddd12 by 前端

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

合并Saas+v4.27.0代码

See merge request !41
2 parents d351707e 57f5ce55
...@@ -38,6 +38,6 @@ You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/ ...@@ -38,6 +38,6 @@ You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/
# 车损权益 # 车损权益
- 喜报 - 喜报:/equity/goodNews?id=39
- 门店战报 - 门店战报:/equity/storeReport?merchantId4s=44210895&merchantName4s=波波的单店门店
- 服务商战报 - 服务商战报:/equity/serviceReport?merchantId4s=44211113&merchantName4s=流程测试服务商
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
.banner-header {
width: 100%;
height: 100%;
background: url("#{$imgUrl}equity/service-banner.png") no-repeat;
background-size: 100%;
.data-time.service-time {
background: rgba(0, 0, 0, 0.1);
}
}
.service-report {
// min-height: 100vh;
.banner-store {
visibility: hidden;
}
.data-time {
position: relative;
margin-bottom: -47px;
display: inline-block;
float: right;
}
.service-name {
position: static;
height: 100px;
margin-top: -365px;
padding-left: 56px;
float: left;
}
}
.clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
content: "";
display: block;
height: 0;
clear:both;
visibility: hidden;
}
.service-name {
position: absolute;
left: 56px;
top: 424px;
width: 424px;
font-size: 28px;
color: #B8470F;
text-shadow: 0 2px 0 #FFFCD7;
}
.service-box {
&.wrapper-box {
background: #FCE8BA;
margin-top: -170px;
}
.wrapper-content {
padding-top: 0;
.wrapper-title {
top: -76px;
background-image: linear-gradient(104deg, #F3B355 0%, #E84525 62%);
border: 6px solid #F5B570;
border: 4px solid #FFDCA6;
border-radius: 32px 32px 0 0;
}
.wrapper-bg {
background: #FFFFFF;
border: 6px solid #E4BC89;
border: 4px solid #FBCE95;
border-radius: 32px;
.market-value,
.market-number {
background-image: -webkit-linear-gradient(bottom, #EE4D2F, #EE945B);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.market-value {
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
}
}
}
.output {
margin-bottom: 0;
}
}
.output.service-box { .output.service-box {
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
...@@ -11,12 +93,12 @@ ...@@ -11,12 +93,12 @@
justify-content: center; justify-content: center;
width: 64px; width: 64px;
height: 64px; height: 64px;
background-color: #FFE8E6; background-image: linear-gradient(38deg, #FFEFD6 48%, #FCE5CA 49%);
border-radius: 50%; border-radius: 50%;
margin: 8px 10px 16px; margin: 8px 10px 16px;
font-weight: 600; font-weight: 600;
font-size: 32px; font-size: 32px;
color: #FC422E; color: #E66820;
} }
.first-medal { .first-medal {
width: 84px; width: 84px;
...@@ -42,11 +124,12 @@ ...@@ -42,11 +124,12 @@
.name-box { .name-box {
position: relative; position: relative;
align-items: stretch !important; align-items: stretch !important;
// .price { .price {
// // position: absolute; color: #E66820 !important;
// right: 0; // position: absolute;
// bottom: -4px; // right: 0;
// } // bottom: -4px;
}
} }
} }
.service-ranking { .service-ranking {
...@@ -54,17 +137,15 @@ ...@@ -54,17 +137,15 @@
justify-content: space-between; justify-content: space-between;
padding: 32px; padding: 32px;
border-radius: 16px; border-radius: 16px;
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%); background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF4ED 100%);
&.first { &.first {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%); background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%);
margin-bottom: 32px;
.avatar-box { .avatar-box {
background-image: linear-gradient(180deg, #FFF1C3 0%, #FFE9A3 100%); background-image: linear-gradient(180deg, #FFF1C3 0%, #FFE9A3 100%);
} }
} }
&.second { &.second {
background-image: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 100%); background-image: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 100%);
margin-bottom: 32px;
.avatar-box { .avatar-box {
background-image: linear-gradient(180deg, #EDEFF0 0%, #E1E4E6 100%); background-image: linear-gradient(180deg, #EDEFF0 0%, #E1E4E6 100%);
} }
...@@ -80,6 +161,7 @@ ...@@ -80,6 +161,7 @@
font-size: 24px; font-size: 24px;
color: #999999; color: #999999;
margin-bottom: 8px; margin-bottom: 8px;
text-align: center;
} }
.ranking-value { .ranking-value {
font-size: 32px; font-size: 32px;
...@@ -93,4 +175,7 @@ ...@@ -93,4 +175,7 @@
.market-number { .market-number {
font-size: 40px !important; font-size: 40px !important;
} }
}
.firework {
top: 1557px !important;
} }
\ No newline at end of file \ No newline at end of file
...@@ -12,6 +12,17 @@ ...@@ -12,6 +12,17 @@
padding: 8px 24px; padding: 8px 24px;
background-color: rgba(255, 255, 255,0.25); background-color: rgba(255, 255, 255,0.25);
} }
.merchant-name {
position: absolute;
left: 56px;
top: 424px;
width: 424px;
font-weight: 500;
font-size: 28px;
color: #FC4632;
line-height: 36px;
text-shadow: 0 2px 0 #FFFCD7;
}
} }
.overview { .overview {
margin-bottom: 136px; margin-bottom: 136px;
...@@ -20,15 +31,15 @@ ...@@ -20,15 +31,15 @@
margin-bottom: 156px; margin-bottom: 156px;
} }
.wrapper-box { .wrapper-box {
position: relative; // position: relative;
width: 100%; width: 100%;
margin-top: -32px; margin-top: -12px;
padding-bottom: 160px; padding-bottom: 160px;
background-image: linear-gradient(180deg, #FF6352 0%, #FF6453 43%, #FF9D92 100%); background-image: linear-gradient(180deg, #FF6352 0%, #FF6453 43%, #FF9D92 100%);
} }
.wrapper-content { .wrapper-content {
position: relative; position: relative;
padding-top: 12px;
.wrapper-bg { .wrapper-bg {
position: relative; position: relative;
border-radius: 32px; border-radius: 32px;
...@@ -39,9 +50,21 @@ ...@@ -39,9 +50,21 @@
z-index: 1; z-index: 1;
padding: 48px 12px; padding: 48px 12px;
} }
.no-data {
width: calc(100% - 64px);
text-align: center;
img {
width: 160px;
height: 160px;
}
.no-data-text {
font-size: 28px;
color: #B6B6B8;
}
}
.wrapper-title { .wrapper-title {
position: absolute; position: absolute;
top: -76px; top: -64px;
left: 32px; left: 32px;
display: inline-block; display: inline-block;
height: 128px; height: 128px;
...@@ -169,12 +192,15 @@ ...@@ -169,12 +192,15 @@
border-radius: 20px; border-radius: 20px;
box-sizing: border-box; box-sizing: border-box;
padding: 24px 12px 28px; padding: 24px 12px 28px;
margin-bottom: 32px;
&:last-child {
margin-bottom: 0;
}
&-bg { &-bg {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%); background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
} }
&.first { &.first {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%); background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%);
margin-bottom: 32px;
.avatar-box { .avatar-box {
background-image: linear-gradient(180deg, #FFF1C3 0%, #FFE9A3 100%); background-image: linear-gradient(180deg, #FFF1C3 0%, #FFE9A3 100%);
} }
...@@ -184,7 +210,6 @@ ...@@ -184,7 +210,6 @@
} }
&.second { &.second {
background-image: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 100%); background-image: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 100%);
margin-bottom: 32px;
.avatar-box { .avatar-box {
background-image: linear-gradient(180deg, #EDEFF0 0%, #E1E4E6 100%); background-image: linear-gradient(180deg, #EDEFF0 0%, #E1E4E6 100%);
} }
...@@ -227,14 +252,14 @@ ...@@ -227,14 +252,14 @@
.ranking-bg { .ranking-bg {
position: absolute; position: absolute;
display: flex; display: flex;
left: 50%; left: 12px;
top: 50%; top: 12px;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 84px; width: 36px;
height: 84px; height: 36px;
background-color: rgba(255, 255, 255, .5); background-image: linear-gradient(38deg, #FFF0F0 48%, #FFDFDB 49%);
font-weight: 600; font-weight: 600;
font-size: 32px; font-size: 20px;
color: #FB6160; color: #FB6160;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -264,6 +289,7 @@ ...@@ -264,6 +289,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 20px; margin-top: 20px;
padding-right: 10px;
.ranking-item { .ranking-item {
.ranking-value { .ranking-value {
font-size: 32px; font-size: 32px;
...@@ -280,14 +306,31 @@ ...@@ -280,14 +306,31 @@
} }
} }
} }
.store-report {
position: relative;
// min-height: 100vh;
.data-time {
position: relative;
margin-bottom: -47px;
display: inline-block;
float: right;
}
.merchant-name {
position: static;
height: 165px;
margin-top: -165px;
padding-left: 56px;
color: #fff;
text-shadow: 0 2px 0 #fe4f39;
}
}
.firework { .firework {
position: absolute; position: absolute;
width: 686px; width: 686px;
height: 144px; height: 180px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
top: 925px; top: 1558px;
} }
.bg-footer { .bg-footer {
position: absolute; position: absolute;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-03-21 17:10:39 * @Date: 2023-03-21 17:10:39
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-09 15:55:12 * @LastEditTime: 2023-08-25 10:11:35
--> -->
<template> <template>
<div class="wrapper-box"> <div class="wrapper-box">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="statics-name">昨日产值/元</div> <div class="statics-name">昨日产值/元</div>
<div class="statics-list"> <div class="statics-list">
<div class="statics-item"> <div class="statics-item">
<div class="statics-number">¥{{ common.numAddSymbol(data.reportInfo!.shopMerchantYesterdayOrderNum) }}</div> <div class="statics-number">{{ common.numAddSymbol(data.reportInfo!.shopMerchantYesterdayOrderNum) }}</div>
<div class="statics-name">昨日升级/单</div> <div class="statics-name">昨日升级/单</div>
</div> </div>
<div class="statics-item"> <div class="statics-item">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="statics-name">本月产值/元</div> <div class="statics-name">本月产值/元</div>
</div> </div>
<div class="statics-item"> <div class="statics-item">
<div class="statics-number">¥{{ common.numAddSymbol(data.reportInfo!.shopMerchantMonthlyOrderNum) }}</div> <div class="statics-number">{{ common.numAddSymbol(data.reportInfo!.shopMerchantMonthlyOrderNum) }}</div>
<div class="statics-name">本月升级/单</div> <div class="statics-name">本月升级/单</div>
</div> </div>
</div> </div>
......
...@@ -3,102 +3,110 @@ ...@@ -3,102 +3,110 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-05-12 15:26:33 * @Date: 2023-05-12 15:26:33
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-05-23 16:30:52 * @LastEditTime: 2023-08-30 18:16:44
--> -->
<template> <template>
<div class="banner-header"> <div class="store-report">
<img class="banner-store" :src="getImageUrl('banner-store')" alt=""> <div class="banner-header">
<div class="data-time">数据生成于{{ data.reportInfo!.createTime }}</div> <div class="data-time">数据生成于{{ data.reportInfo!.createTime }}</div>
</div> <!-- <img class="banner-store" :src="getImageUrl('morning-banner')" alt=""> -->
<div class="wrapper-box"> <img class="banner-store" src="@/assets/images/equity/morning-banner.png" alt="">
<div class="wrapper-content overview"> <div class="merchant-name">{{ data.reportInfo!.merchantName4s }}</div>
<div class="wrapper-title">营销概览</div> </div>
<div class="wrapper-bg"> <div class="wrapper-box">
<div class="market"> <div class="wrapper-content overview">
<div class="market-item"> <div class="wrapper-title">营销概览</div>
<div class="market-label">昨日营业额</div> <div class="wrapper-bg">
<div class="market-value">¥<span class="market-number">{{data.reportInfo!.yesterdayTurnover}}</span></div> <div class="market">
</div> <div class="market-item">
<div class="market-item"> <div class="market-label">昨日营业额</div>
<div class="market-label">昨日单量</div> <div class="market-value">¥<span class="market-number">{{data.reportInfo!.yesterdayTurnover}}</span></div>
<div class="market-value chinese-value"><span class="market-number">{{data.reportInfo!.yesterdayOrderTotal}}</span>单</div> </div>
</div> <div class="market-item">
<div class="market-item"> <div class="market-label">昨日单量</div>
<div class="market-label">日均升级客单价</div> <div class="market-value chinese-value"><span class="market-number">{{data.reportInfo!.yesterdayOrderTotal}}</span>单</div>
<div class="market-value">¥<span class="market-number">{{data.reportInfo!.avgDayOrderPrice}}</span></div> </div>
</div> <div class="market-item">
</div> <div class="market-label">日均升级客单价</div>
<div class="market-border"></div> <div class="market-value">¥<span class="market-number">{{data.reportInfo!.avgDayOrderPrice}}</span></div>
<div class="market"> </div>
<div class="market-item">
<div class="market-label">本月营业额</div>
<div class="market-value">¥<span class="market-number">{{data.reportInfo!.monthTurnover}}</span></div>
</div>
<div class="market-item">
<div class="market-label">本月单量</div>
<div class="market-value chinese-value"><span class="market-number">{{ data.reportInfo!.monthOrderTotal }}</span>单</div>
</div> </div>
<div class="market-item"> <div class="market-border"></div>
<div class="market-label">月均升级客单价</div> <div class="market">
<div class="market-value">¥<span class="market-number">{{data.reportInfo!.avgMonthOrderPrice}}</span></div> <div class="market-item">
<div class="market-label">本月营业额</div>
<div class="market-value">¥<span class="market-number">{{data.reportInfo!.monthTurnover}}</span></div>
</div>
<div class="market-item">
<div class="market-label">本月单量</div>
<div class="market-value chinese-value"><span class="market-number">{{ data.reportInfo!.monthOrderTotal }}</span>单</div>
</div>
<div class="market-item">
<div class="market-label">月均升级客单价</div>
<div class="market-value">¥<span class="market-number">{{data.reportInfo!.avgMonthOrderPrice}}</span></div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> <div class="wrapper-content sales">
<div class="wrapper-content sales"> <div class="wrapper-title">销售漏斗(本月)</div>
<div class="wrapper-title">销售漏斗(本月)</div> <div class="wrapper-bg sales-content">
<div class="wrapper-bg sales-content"> <img class="sale-funnel" :src="getImageUrl('sale-funnel')" alt="">
<img class="sale-funnel" :src="getImageUrl('sale-funnel')" alt=""> <div class="sale-lable sale-up">推荐客户量</div>
<div class="sale-lable sale-up">推荐客户量</div> <div class="sale-value sale-up">{{data.reportInfo!.customerTotal}}</div>
<div class="sale-value sale-up">{{data.reportInfo!.customerTotal}}</div> <div class="sale-lable sale-down">成交客户量</div>
<div class="sale-lable sale-down">成交客户量</div> <div class="sale-value sale-down">{{data.reportInfo!.successCustomerTotal}}</div>
<div class="sale-value sale-down">{{data.reportInfo!.successCustomerTotal}}</div> <div class="sale-rate">
<div class="sale-rate"> 转化率
转化率 <div class="sale-number">{{data.reportInfo!.conversionRate}}</div>
<div class="sale-number">{{data.reportInfo!.conversionRate}}</div> </div>
</div> </div>
</div> </div>
</div> <div class="wrapper-content">
<div class="wrapper-content" v-if="data.reportInfo!.staffList && data.reportInfo!.staffList!.length > 0"> <div class="wrapper-title">产值排名(本月)</div>
<div class="wrapper-title">产值排名(本月)</div> <div v-if="data.reportInfo!.staffList && data.reportInfo!.staffList!.length > 0" class="wrapper-bg output-content">
<div class="wrapper-bg output-content"> <div class="output output-bg" :class="data.classList![index]" v-for="(item, index) in data.reportInfo!.staffList" :key="index">
<div class="output output-bg" :class="data.classList![index]" v-for="(item, index) in data.reportInfo!.staffList" :key="index"> <div class="avatar-box">
<div class="avatar-box"> <template v-if="index < 3">
<template v-if="index < 3"> <img class="icon-crown" :src="getImageUrl(`icon-${data.classList![index]}`)" alt="">
<img class="icon-crown" :src="getImageUrl(`icon-${data.classList![index]}`)" alt=""> </template>
</template> <template v-else>
<template v-else> <div class="ranking-bg">{{ index + 1 }}</div>
<div class="ranking-bg">{{ index + 1 }}</div> </template>
</template> <img class="avatar" :src="item.referrerWeChatAvatar || getImageUrl('avatar')" alt="">
<img class="avatar" :src="item.referrerWeChatAvatar || getImageUrl('avatar')" alt=""> </div>
</div> <div class="right-content">
<div class="right-content"> <div class="name-box"><div class="user-name">{{item.referrer}}</div><div class="price">¥{{ item.turnover }}</div></div>
<div class="name-box"><div class="user-name">{{item.referrer}}</div><div class="price">¥{{ item.turnover }}</div></div> <div class="ranking-list">
<div class="ranking-list"> <div class="ranking-item">
<div class="ranking-item"> <div class="ranking-value">{{item.customerTotal}}</div>
<div class="ranking-value">{{item.customerTotal}}</div> <div class="ranking-label">推荐客户</div>
<div class="ranking-label">推荐客户</div> </div>
</div> <div class="ranking-item">
<div class="ranking-item"> <div class="ranking-value">{{item.successCustomerTotal}}</div>
<div class="ranking-value">{{item.successCustomerTotal}}</div> <div class="ranking-label">成交客户</div>
<div class="ranking-label">成交客户</div> </div>
</div> <div class="ranking-item">
<div class="ranking-item"> <div class="ranking-value">{{item.conversionRate}}</div>
<div class="ranking-value">{{item.conversionRate}}</div> <div class="ranking-label">转化率</div>
<div class="ranking-label">转化率</div> </div>
</div> <div class="ranking-item">
<div class="ranking-item"> <div class="ranking-value">{{item.avgOrderPrice}}</div>
<div class="ranking-value">{{item.avgOrderPrice}}</div> <div class="ranking-label">客单价</div>
<div class="ranking-label">客单价</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="wrapper-bg no-data" v-else>
<img src="@/assets/images/equity/no-data.png" alt="">
<div class="no-data-text">暂无数据</div>
</div>
</div> </div>
<img class="firework" :src="getImageUrl('store-firework')" alt="">
<img class="bg-footer" :src="getImageUrl('bg-footer')" alt="">
<img class="logo" :src="getImageUrl('logo')" alt="">
</div> </div>
<img class="firework" :src="getImageUrl('firework')" alt="">
<img class="bg-footer" :src="getImageUrl('bg-footer')" alt="">
<img class="logo" :src="getImageUrl('logo')" alt="">
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!