Commit 363a98db by 胡悦

refactor: 移除无用图片资源及样式文件,优化代码结构

清理项目中未使用的图片资源和样式文件,简化代码结构
更新接口参数从orderCode改为msgId
调整全局配置添加baseUrl字段
修复personalGoodNews.scss中的样式问题
修改配置中心请求URL从h5-config改为single-posters
移除vite.config.ts中的代理配置
重构goodNews.vue组件,简化逻辑
1 parent 4f47408a
Showing 72 changed files with 48 additions and 2997 deletions
// 已结束
.box-report {
display: flex;
flex-wrap: wrap;
font-size: 22px;
text-align: center;
background: linear-gradient(0deg, #ffe1c8 0%, #fff2e0 100%);
border-radius: 10px;
padding: 10px;
margin-top: 30px;
.p-t-10 {
padding-top: 10px;
}
.report-item {
// display: flex;
// justify-content: center;
width: calc((100% - 5px) / 3);
.icon {
display: inline-block;
width: 50px;
height: 50px;
}
.icon-1 {
background: url("#{$imgUrl}activityReport/1.png") no-repeat;
background-size: 50px;
}
.icon-2 {
background: url("#{$imgUrl}activityReport/2.png") no-repeat;
background-size: 50px;
}
.icon-3 {
background: url("#{$imgUrl}activityReport/3.png") no-repeat;
background-size: 50px;
}
.icon-4 {
background: url("#{$imgUrl}activityReport/4.png") no-repeat;
background-size: 50px;
}
.icon-5 {
background: url("#{$imgUrl}activityReport/5.png") no-repeat;
background-size: 50px;
}
.icon-6 {
background: url("#{$imgUrl}activityReport/6.png") no-repeat;
background-size: 50px;
}
.report-name {
margin-bottom: 5px;
font-weight: 400;
color: #333333;
line-height: 32px;
}
.report-value {
display: inline-flex;
color: #ff333a;
align-items: flex-end;
margin-bottom: 10px;
.report-number {
font-size: 36px;
font-weight: 600;
margin-right: 8px;
line-height: 40px;
}
.report-number:last-child {
margin-right: 0;
}
.report-unit {
display: inline-block;
line-height: 36px;
}
}
}
.border-right {
border-right: 1px solid rgba(255, 208, 171, 0.8);
}
.border-bottom {
border-bottom: 1px solid rgba(255, 208, 171, 0.8);
}
}
.finish-activty {
margin-top: 50px;
text-align: center;
min-height: 85px;
.activty-text {
display: inline-block;
background: linear-gradient(0deg, #ffd7b7 0%, #ffebdb 100%);
border-radius: 8px;
padding: 13px 21px;
width: 460px;
font-size: 24px;
font-weight: 500;
color: #262525;
line-height: 32px;
.activty-flag {
color: #ff363b;
font-size: 32px;
font-weight: 500;
}
}
}
.icon-horn {
position: absolute;
bottom: 20px;
left: 0;
width: 157px;
height: 131px;
}
.icon-fireworks {
position: absolute;
bottom: 35px;
right: 4px;
width: 275px;
height: 205px;
}
.vs-bg {
position: absolute;
top: 80px;
width: 687px;
height: 356px;
z-index: 0;
}
.vs-box {
display: flex;
position: relative;
width: 687px;
.vs-item {
width: 50%;
text-align: center;
.vs-title {
div {
width: 260px;
}
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: 600;
color: #333333;
line-height: 32px;
height: 70px;
}
.vs-content {
margin-top: 16px;
padding: 24px 30px;
.content-item {
display: flex;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 22px;
margin-bottom: 15px;
.content-label {
margin-right: 30px;
}
.content-value {
color: #ff333a;
font-size: 22px;
.content-number {
display: inline-block;
min-width: 100px;
text-align: left;
font-size: 36px;
font-weight: 600;
font-style: italic;
}
}
}
.left-content {
background: linear-gradient(90deg, rgba(255, 211, 177, 0.7) 0%, rgba(255, 226, 205, 0) 100%);
// opacity: 0.7;
border-radius: 22px;
padding: 14px 20px 8px;
}
.right-content {
background: linear-gradient(270deg, rgba(255, 167, 152, 0.6) 0%, rgba(254, 177, 164, 0) 100%);
// opacity: 0.6;
border-radius: 22px;
padding: 14px 20px 8px;
display: flex;
justify-content: flex-end;
}
}
}
}
.summary {
font-size: 30px;
font-weight: 600;
color: #333333;
line-height: 30px;
text-align: center;
width: 100%;
margin-top: 40px;
margin-bottom: 10px;
}
.vs-tip {
display: flex;
justify-content: center;
font-size: 22px;
font-weight: 400;
text-align: center;
color: #333333;
line-height: 34px;
margin-bottom: -1px;
div {
width: 578px;
}
}
.box-body-head {
display: flex;
padding: 29px 0 21px 0;
font-size: 28px;
font-weight: 600;
color: #333333;
div {
flex: 1;
text-align: center;
}
}
.box-body-wrap {
display: flex;
justify-content: center;
&-vessel {
width: 50%;
height: 374px;
background: linear-gradient(0deg, #ffefe2 0%, #fff6ea 100%);
box-shadow: 0px 0px 10px 0px rgba(255, 193, 88, 0.2);
border-radius: 10px;
&:nth-child(1) {
margin-right: 13px;
}
.box-rate {
width: 203px;
height: 56px;
img {
width: 100%;
height: 100%;
}
}
.icon {
width: 8px;
height: 8px;
background: #ff664b;
border-radius: 50%;
margin-right: 10px;
}
.brand-wrap-container {
margin-top: 20px;
}
.brand-wrap {
margin: 0 24px 24px 30px;
}
.brand-text {
font-size: 20px;
font-weight: 400;
color: #333333;
align-items: center;
margin-bottom: 20px;
}
}
.box-body-details {
margin: 30px 35px 0px;
.info {
margin-bottom: 34px;
display: flex;
align-items: center;
justify-content: space-around;
.info-text {
min-width: 109px;
font-size: 22px;
font-weight: 400;
color: #333333;
text-align: left;
white-space: nowrap;
}
span {
font-size: 36px;
font-family: PingFang SC;
font-weight: 600;
font-style: italic;
color: #ff333a;
line-height: 32px;
min-width: 130px;
text-align: left;
label {
font-size: 22px;
font-weight: 400;
color: #ff343a;
line-height: 32px;
margin-left: 8px;
}
}
}
.icon {
width: 8px;
height: 8px;
background: #ff664b;
border-radius: 50%;
margin-right: 11px;
&.color_f {
background: #ffc154;
}
}
.statistical-text {
font-size: 20px;
font-weight: 400;
color: #333333;
align-items: center;
width: 70%;
text-align: left;
margin: 2px auto 19px auto;
span {
flex: 1;
}
}
}
}
.box-body-summary {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
text-align: center;
.title {
font-size: 30px;
font-weight: 600;
color: #333333;
line-height: 30px;
margin-bottom: 14px;
}
.content {
// text-align: center;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 34px;
width: 578px;
}
}
// 喜报
.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;
}
.wrapper-box {
position: relative;
min-height: 100vh;
.war-hearder {
position: relative;
z-index: -1;
img {
width: 100%;
height: 484px;
}
.header-time {
position: absolute;
right: 0;
top: 60px;
padding: 6px 32px;
height: 44px;
line-height: 44px;
background-image: linear-gradient(90deg, #F95A2E 0%, #F97E2E 100%);
border-radius: 24px 0 0 24px;
font-size: 22px;
color: #FFFFFF;
}
.service-name {
position: absolute;
bottom: 46px;
width: 100%;
padding: 7px 0;
text-align: center;
font-weight: 900;
font-size: 32px;
font-family: 狮尾B2加糖宋体,Swei B2 Sugar CJK SC,獅尾B2加糖宋體SC,獅尾B2加糖宋體SC-Regular;
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;
font-family: 'Alibaba PuHuiTi 2.0 115';
&::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,
.month {
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;
}
.month::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%;
background-color: #FFF6E5;
font-size: 24px;
padding: 24px 0 32px;
&-item {
width: 20%;
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-month {
color: rgba(40, 34, 34, 0.37);
}
}
}
&: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
.banner {
.banner-bg {
height: 769px;
}
}
.equity-box {
.banner .header-box {
top: 402px;
.merchant-name {
color: #F7432B;
font-size: 28px;
}
}
.user-box .user-order {
top: 480px;
background-image: linear-gradient(bottom, #ED4216, #f6721b, #FF9C20);
}
}
// 订单统计
.order-box {
box-sizing: border-box;
width: calc(100% - 96px);
margin: 36px 48px;
padding: 18px;
border-radius: 12px;
border: 1px solid #FFD894;
background: linear-gradient(-180deg, rgb(255, 169, 105), rgb(255, 137, 85));
.order-side {
width: calc(100% - 34px);
padding: 20px 17px;
border-radius: 10px;
background: #FFF9EA;
.title {
width: 100%;
text-align: center;
font-weight: 600;
font-size: 32px;
color: #FEEACE;
margin-top: 20px;
background-image: -webkit-linear-gradient(bottom,#F57300,#ee4831,#E73507);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
.order-list {
margin: 20px;
border-radius: 10px 10px 10px 10px;
background: #FFEFDB;
padding: 40px;
.order-item {
display: flex;
align-items: center;
background: linear-gradient(90deg, #fbd8b7, #feebd4, transparent);
border-radius: 20px;
padding: 10px 20px;
font-size: 22px;
color: #3A3A3A;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.order-label {
display: inline-block;
width: 200px;
}
.order-value {
display: inline-flex;
font-size: 34px;
color: #F2383B;
font-style: italic;
font-weight: 600;
align-items: baseline;
.order-unit {
font-size: 26px;
font-style: normal;
margin-left: 8px;
font-weight: 400;
}
}
}
}
.goods {
margin: 20px;
&-title {
background: #FFEFDB;
border-radius: 10px 10px 0 0;
font-size: 22px;
line-height: 32px;
padding: 10px 24px;
span {
font-weight: 600;
color: #FEEACE;
background-image: -webkit-linear-gradient(bottom,#F57300,#ee4831,#E73507);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
}
&-list {
padding: 24px 40px;
font-size: 22px;
color: #3A3A3A;
line-height: 32px;
background: #FFE6CC;
border-radius: 0 0 10px 10px;
}
&-item {
display: flex;
justify-content: space-between;
margin-bottom: 16px;
&:last-child {
margin-bottom: 0;
}
}
&-name {
max-width: 310px;
}
&-price {
font-weight: 500;
font-size: 24px;
color: #F2383B;
font-weight: 600;
}
&-unit {
display: inline-block;
margin-left: 6px;
font-weight: normal;
}
}
}
}
$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 {
flex-direction: column;
align-items: stretch;
}
.service-info {
display: flex;
.medal-bg {
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
background-image: linear-gradient(38deg, #FFEFD6 48%, #FCE5CA 49%);
border-radius: 50%;
margin: 8px 10px 16px;
font-weight: 600;
font-size: 32px;
color: #E66820;
}
.first-medal {
width: 84px;
height: 96px;
}
.store-name {
display: -webkit-box;
word-break: break-all;
text-overflow:ellipsis;
overflow: hidden;
white-space: pre-line;
-webkit-box-orient: vertical;
-webkit-line-clamp:2;
font-weight: 600;
font-size: 32px;
color: #121314;
}
.resident-sales {
margin-top: 4px;
font-size: 24px;
color: #999999;
}
.name-box {
position: relative;
align-items: stretch !important;
.price {
color: #E66820 !important;
// position: absolute;
// right: 0;
// bottom: -4px;
}
}
}
.service-ranking {
display: flex;
justify-content: space-between;
padding: 32px;
border-radius: 16px;
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF4ED 100%);
&.first {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%);
.avatar-box {
background-image: linear-gradient(180deg, #FFF1C3 0%, #FFE9A3 100%);
}
}
&.second {
background-image: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 100%);
.avatar-box {
background-image: linear-gradient(180deg, #EDEFF0 0%, #E1E4E6 100%);
}
}
&.third {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FAF2E6 100%);
.avatar-box {
background-image: linear-gradient(180deg, #FFF0DF 0%, #F6DABD 100%);
}
}
.ranking-item {
.ranking-label {
font-size: 24px;
color: #999999;
margin-bottom: 8px;
text-align: center;
}
.ranking-value {
font-size: 32px;
color: #121314;
text-align: center;
}
}
}
.service-market {
.market-number {
font-size: 40px !important;
}
}
.firework {
top: 1460px !important;
}
\ No newline at end of file \ No newline at end of file
.banner-header {
position: relative;
.banner-store {
width: 100%;
}
.data-time {
position: absolute;
right: 0;
top: 40px;
color: #fff;
font-size: 24px;
padding: 8px 24px;
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 {
margin-bottom: 136px;
}
.sales {
margin-bottom: 156px;
}
.wrapper-box {
// position: relative;
width: 100%;
margin-top: -12px;
padding-bottom: 160px;
background-image: linear-gradient(180deg, #FF6352 0%, #FF6453 43%, #FF9D92 100%);
}
.wrapper-content {
position: relative;
padding-top: 12px;
.wrapper-bg {
position: relative;
border-radius: 32px;
width: calc(100% - 64px);
background: #FFFFFF;
box-sizing: border-box;
margin: 0 32px;
z-index: 1;
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 {
position: absolute;
top: -64px;
left: 32px;
display: inline-block;
height: 128px;
background-image: linear-gradient(210deg, #FEC5A9 1%, #FC422E 40%);
box-shadow: inset 0 0 12px 4px #fef9dee6;
border-radius: 32px;
font-weight: 500;
font-size: 38px;
color: #FFFFFF;
line-height: 48px;
padding: 16px 66px 12px 32px;
z-index: 1;
}
.market {
display: flex;
.market-item {
position: relative;
width: 33%;
text-align: center;
width: 25%;
&::after {
content: '';
display: inline-block;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 2px;
height: 64px;
background-color: #DEEAFC;
}
&:first-child {
width: 40%;
}
&:last-child {
width: 35%;
&::after {
display: none;
}
}
.market-label {
font-size: 26px;
color: #1B233D;
margin-bottom: 16px;
}
.market-value {
font-size: 28px;
color: #FC5540;
&.chinese-value {
font-size: 26px;
}
}
.market-number {
display: inline-block;
margin-left: 4px;
margin-right: 4px;
font-size: 40px;
font-weight: 700;
background-image: -webkit-linear-gradient(bottom, #FC422E, #FE836B);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.market-border {
margin: 23px 0 32px;
border-bottom: 3px dashed #DEEAFC;
background: linear-gradient(white, white) padding-box, repeating-linear-gradient(-45deg, #DEEAFC 0, #DEEAFC 0.5em, #DEEAFC, white 0.75em);
}
// 销售漏斗
.funnel-content {
height: 620px;
padding: 48px 32px;
.funnel-img {
width: 598px;
}
.sale-number {
width: 190px;
text-align: center;
position: absolute;
display: inline-block;
font-size: 24px;
color: #E62F12;
.value {
font-weight: 700;
margin-top: 8px;
}
}
.sale-rate {
width: 190px;
text-align: center;
position: absolute;
display: inline-block;
font-size: 20px;
color: #1B233D;
.value {
display: inline-block;
font-size: 24px;
margin-left: 8px;
}
}
.left {
left: 32px;
}
.middle {
left: 232px;
// left: 50%;
// transform: translateX(-50%);
}
.right {
right: 60px;
}
.first {
top: 56px;
}
.second {
top: 176px;
}
.total-second {
top: 154px;
}
.third {
top: 260px;
}
.fourth {
top: 380px;
}
.fivth {
top: 464px;
}
.sixth {
// bottom: 60px;
top: 596px;
}
.sale-lable {
left: 60px;
}
.sale-value {
left: 60px;
}
}
}
.sales-content {
position: relative;
width: 100%;
height: 408px;
&.sale-transform {
height: 500px;
}
.sale-funnel {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 372px;
height: 280px;
}
.sale-lable {
position: absolute;
left: 60px;
font-size: 24px;
color: #323436;
&.sale-up {
top: 118px;
}
&.sale-down {
bottom: 110px;
}
}
.sale-value {
position: absolute;
font-size: 28px;
left: 50%;
transform: translateX(-50%);
font-weight: 700;
&.sale-up {
top: 118px;
color: #E62F12;
}
&.sale-down {
bottom: 110px;
color: #FFFFFF;
}
}
.sale-rate {
position: absolute;
right: 40px;
top: 50%;
width: 100px;
transform: translateY(-50%);
font-size: 24px;
color: #E62F12;
line-height: 36px;
margin-bottom: 4px;
.sale-number {
font-weight: 700;
font-size: 40px;
color: #FC4728;
line-height: 56px;
}
}
&.sale-transform {
padding: 64px 12px;
.sale-funnel {
width: 394px;
height: 376px;
}
.sale-lable {
left: 30px;
&.sale-up {
top: 120px;
}
&.sale-down {
bottom: 90px;
}
.sale-number {
font-weight: 700;
font-size: 40px;
color: #FC4728;
line-height: 56px;
margin-top: 4px;
}
}
.sale-value {
text-align: center;
font-size: 24px;
.label {
font-weight: 400;
}
&.sale-up {
top: 100px;
}
&.sale-down {
bottom: 90px;
}
&.sale-middle {
top: 220px;
color: #E62F12;
}
}
}
}
.output-content {
padding: 48px 26px 56px !important;
.output {
display: flex;
align-items: center;
border-radius: 20px;
box-sizing: border-box;
padding: 24px 12px 28px;
margin-bottom: 32px;
&:last-child {
margin-bottom: 0;
}
&-bg {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
}
&.first {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%);
.avatar-box {
background-image: linear-gradient(180deg, #FFF1C3 0%, #FFE9A3 100%);
}
.user-name {
color: #EB9C00;
}
}
&.second {
background-image: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 100%);
.avatar-box {
background-image: linear-gradient(180deg, #EDEFF0 0%, #E1E4E6 100%);
}
.user-name {
color: #788597;
}
}
&.third {
background-image: linear-gradient(180deg, #FFFFFF 0%, #FAF2E6 100%);
.avatar-box {
background-image: linear-gradient(180deg, #FFF0DF 0%, #F6DABD 100%);
}
.user-name {
color: #B87142;
}
}
.avatar-box {
position: relative;
width: 96px;
height: 96px;
border-radius: 50%;
margin-left: 16px;
background-image: linear-gradient(180deg, #FFF0F0 0%, #FFDFDB 100%);
.avatar {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 84px;
height: 84px;
border-radius: 50%;
}
.icon-crown {
position: absolute;
width: 48px;
height: 48px;
left: -15px;
top: -15px;
}
.ranking-bg {
position: absolute;
display: flex;
left: 12px;
top: 12px;
transform: translate(-50%, -50%);
width: 36px;
height: 36px;
background-image: linear-gradient(38deg, #FFF0F0 48%, #FFDFDB 49%);
font-weight: 600;
font-size: 20px;
color: #FB6160;
align-items: center;
justify-content: center;
z-index: 1;
border-radius: 50%;
}
}
.right-content {
flex: 1;
margin-left: 20px;
.name-box {
display: flex;
align-items: center;
justify-content: space-between;
.user-name {
font-weight: 600;
font-size: 32px;
}
.price {
font-weight: 700;
font-size: 36px;
color: #FC4728;
// margin-right: 20px;
}
}
.ranking-list {
display: flex;
justify-content: space-between;
margin-top: 20px;
padding-right: 10px;
.ranking-item {
.ranking-value {
font-size: 32px;
color: #121314;
margin-bottom: 8px;
}
.ranking-label {
color: #999999;
font-size: 24px;
}
}
}
}
}
}
.store-report {
position: relative;
}
.firework {
position: absolute;
width: 686px;
height: 180px;
left: 50%;
transform: translateX(-50%);
top: -130px;
}
.bg-footer {
position: absolute;
bottom: 0;
width: 100%
}
.logo {
position: absolute;
bottom: 64px;
left: 50%;
transform: translateX(-50%);
width: 148px;
height: 32px;
}
\ No newline at end of file \ No newline at end of file
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
$v: '1.0.2';
$good-color: #ffd2b2;
.wrapper-good {
min-height: 100vh;
box-sizing: border-box;
padding-bottom: 100px;
background-image: linear-gradient(180deg, #f46538 0%, #f92b36 100%);
}
.banner {
position: relative;
img {
width: 100%;
height: 688px;
}
.header-box {
position: absolute;
top: 275px;
left: 50%;
width: 100%;
transform: translateX(-50%);
text-align: center;
.acitvity-box {
display: inline-block;
font-size: 26px;
padding: 6px 36px;
color: #FEEACE;
border-radius: 44px 44px 44px 44px;
background: linear-gradient(-180deg, rgba(253,243,219,100), rgba(252,234,180,100));
.activity-name {
font-size: 26px;
color: #FEEACE;
background-image: -webkit-linear-gradient(bottom,#dd0719,#ee4831,#f76a3e);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
}
.merchant-name {
text-align: center;
font-size: 22px;
color: #F7432B;
margin-top: 14px;
}
}
}
// 员工信息
.user-box {
position: relative;
.out-box {
width: calc(100% - 102px);
box-sizing: border-box;
// height: 719px;
margin: -100px 50px 0;
background-color: #FF8955;
border: 1px solid #FFD895;
border-radius: 10px;
padding: 16px;
}
.user-header {
position: absolute;
width: 100%;
height: 130px;
top: -28px;
}
.empty-bg {
width: 100%;
height: 624px; // 图片高度554 + 图片top: 70
}
.user-bg {
position: absolute;
left: 0;
top: 70px;
width: 100%;
height: 554px;
}
.inside-box {
width: 100%;
// height: 700px;
padding-bottom: 30px;
background-color: #FFF6DF;
border-radius: 10px;
}
.user-avatar {
position: absolute;
width: 160px;
height: 160px;
border-radius: 50%;
top: 188px;
left: 50%;
transform: translateX(-50%);
z-index: 1;
}
.user-info {
position: absolute;
top: 390px;
display: flex;
align-items: baseline;
justify-content: center;
width: calc(100% - 102px);
color: rgba(254, 234, 206, 1);
font-weight: 500;
font-size: 26px;
height: 40px;
background-image:-webkit-linear-gradient(bottom,#e73507,#f6721b,#f57300);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
.user-name {
color: rgba(254, 234, 206, 1);
font-weight: 600;
font-size: 32px;
margin: 0 16px;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.user-order {
position: absolute;
// bottom: 100px;
top: 460px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: baseline;
justify-content: center;
font-size: 36px;
background-image:-webkit-linear-gradient(bottom,#e73507,#f6721b,#f57300);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
.order-value {
font-style: italic;
font-size: 120px;
padding: 0 20px;
font-weight: 600;
}
}
.order-number {
position: absolute;
top: 600px;
left: 50%;
transform: translateX(-50%);
width: 280px;
height: 27px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 13.5px;
background: #fefaf1ff;
font-weight: 600;
.number {
font-size: 22px;
// color: #FEEACE;
background-image: -webkit-linear-gradient(top,#f76a3e,#ea382b,#dd0719);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
}
.shop-name {
font-size: 22px;
width: 100%;
color: #EE502C;
text-align: center;
line-height: 22px;
.name-item {
margin-bottom: 12px;
&:last-child {
margin-bottom: 0;
}
}
}
}
.ranking-box {
box-sizing: border-box;
width: calc(100% - 100px);
margin: 15px 50px;
padding: 16px;
border-radius: 10px 10px 10px 10px;
background: linear-gradient(-180deg, rgba(255,169,105,100), rgba(255,137,85,100));
.ranking-list {
width: calc(100% - 34px);
padding: 20px 17px;
border-radius: 10px 10px 10px 10px;
background: linear-gradient(-180deg, rgba(255,249,235,100), rgba(255,240,196,100));
.ranking-title {
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
height: 43px;
color: #A95E4A;
background-color: #FFEDD1;
border-radius: 21.5px;
}
.ranking-item {
display: flex;
align-items: baseline;
border-bottom: 2px solid #FDE7CF;
padding: 15px 0;
.ranking-index {
position: relative;
width: 67px;
height: 33px;
.ranking-medals {
position: absolute;
width: 40px;
height: 33px;
right: 0;
top: 0;
}
.ranking-number {
display: inline-flex;
justify-content: center;
align-items: center;
width: 40px;
height: 33px;
position: absolute;
right: 0;
top: 40%;
transform: translateY(-50%);
font-size: 20px;
color: #fff;
}
}
.ranking-bg {
position: relative;
width: 67px;
height: 33px;
// box-shadow: 0 2px 5px 0 #b34d0880,0 2px 0 0 #af621740;
.ranking-number {
display: inline-flex;
justify-content: center;
align-items: center;
width: 40px;
height: 33px;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
font-size: 20px;
color: #666;
}
}
.user-content {
width: 100%;
color: #A95E4A;
margin-left: 20px;
padding-right: 20px;
.user-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
.user-left {
display: inline-flex;
align-items: center;
font-size: 20px;
}
.user-right {
font-size: 32px;
font-weight: 600;
}
.user-avatar {
width: 30px;
height: 30px;
margin-right: 14px;
}
}
.user-order {
display: flex;
.order-item {
width: 33.3%;
font-size: 20px;
border-right: 1px solid #A95E4A;
&:last-child {
border-right: 0;
text-align: right;
}
}
}
}
&:last-child {
border-bottom: 0;
}
}
}
}
.icon-bottom {
position: absolute;
bottom: 0;
width: 100%;
height: 115px;
}
.dj-logo {
position: absolute;
left: 50%;
bottom: 50px;
transform: translateX(-50%);
width: 205px;
height: 28px;
}
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
$v: '1.0.2';
$good-color: #ffd2b2;
.product-box {
top: 395px;
display: inline-block;
background: url("#{$imgUrl}goodNews/line-bg.png?v=#{$v}");
background-repeat: repeat-x;
background-size: 4px 57px;
width: auto;
// margin: 0 43px;
font-size: 23px;
color: $good-color;
line-height: 30px;
}
.product-name {
position: relative;
padding: 14px 0;
box-sizing: border-box;
div {
// width: 100%;
box-sizing: border-box;
max-width: 425px;
padding: 0 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.product-icon {
position: absolute;
width: 30px;
height: 57px;
}
.icon-left {
left: -29px;
top: 0;
}
.icon-right {
right: -29px;
top: 0;
}
.store-name {
top: 466px;
color: $good-color;
font-size: 22px;
font-weight: 500;
width: 100%;
text-align: center;
}
.employee-avatar {
top: 700px;
width: 124px;
height: 124px;
border-radius: 50%;
}
.ribbon {
top: 775px;
img {
width: 610px;
height: 70px;
}
&-content {
position: relative;
}
&-text {
display: flex;
bottom: 7px;
color: $good-color;
font-size: 22px;
height: 30px;
line-height: 30px;
span {
display: inline-block;
vertical-align: middle;
text-align: center;
}
span:first-child {
display: inline-block;
// transform: rotate(6deg);
}
span:last-child {
display: inline-block;
// transform: rotate(-6deg);
}
}
&-other-text {
display: flex;
justify-content: center;
align-items: baseline;
span {
display: inline-block;
max-width: 180px;
font-weight: 800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
&-name {
flex: 1;
vertical-align: -webkit-baseline-middle;
// line-height: 46px;
padding: 0 12px;
font-weight: 800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.ranking {
top: 1123px;
color: $good-color;
width: 405px;
background-color: #860a0f;
}
.sales {
display: flex;
align-items: baseline;
top: 850px;
color: $good-color;
font-size: 30px;
font-weight: 600;
// text-shadow: 0px 2px 5px rgba(50, 0, 0, 0.3);
div {
background-image: linear-gradient(-18deg, #ffb376 0%, #ffe6af 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.number {
display: inline-block;
font-size: 100px;
flex: 1;
padding: 0 16px;
font-weight: 800;
font-style: italic;
}
}
.table {
&-box {
display: inline-block;
padding-top: 4px;
font-size: 20px;
min-height: 300px;
}
&-header {
display: flex;
align-items: center;
height: 45px;
opacity: 0.7;
}
&-th,
&-td {
width: 20%;
text-align: center;
}
&-body {
width: 100%;
}
&-item {
display: flex;
align-items: center;
height: 40px;
margin-bottom: 16px;
background-color: #830e13;
border-radius: 20px;
}
// &-item:nth-child(odd) {
// background-color: #830e13;
// border-radius: 20px;
// }
&-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
}
&-td {
&:first-child {
display: flex;
align-items: center;
justify-content: center;
}
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.sales-number {
font-size: 32px;
font-weight: 600;
}
.first-ranking {
position: relative;
img {
width: 40px;
height: 33px;
}
.ranking-number {
color: #ffffff;
}
}
.ranking-bg {
width: 26px;
height: 26px;
background-color: #bf1c20;
border-radius: 50%;
}
.ranking-number {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.bg-top-box {
height: 1060px;
.bg-top {
width: 100%;
height: 100%;
}
}
.wrapper-bg {
position: relative;
background-color: #860a0f;
padding-bottom: 90px;
}
.wrapper-table {
// padding-top: 40px;
background: url("#{$imgUrl}goodNews/bg-line.png?v=#{$v}");
background-repeat: repeat-y;
background-size: 100% 10px;
text-align: center;
// margin-bottom: 90px;
margin-top: -1px;
.wrapper-header {
top: 1131px;
width: 100%;
img {
width: 100%;
}
}
.wrapper-footer {
width: 100%;
height: 110px;
img {
width: 100%;
height: 100%;
}
}
}
.table-bg {
background: url("@/assets/images/goodNews/ranking-line.png");
background-repeat: repeat-y;
background-size: 100% 10px;
}
.bg-footer {
width: 100%;
// position: relative;
// bottom: 0;
// left: 0;
// right: 0;
// height: 500px;
// z-index: -1;
.left-footer,
.right-footer {
width: 107px;
height: 500px;
position: absolute;
bottom: 0;
}
.left-footer {
left: 0;
}
.right-footer {
right: 0;
}
}
.long-ribbon {
position: absolute;
top: 222px;
width: 100%;
img {
width: 100%;
}
}
.left-ribbon {
position: absolute;
left: -4px;
top: 1070px;
width: 100%;
img {
width: 100%;
}
}
.right-ribbon {
position: absolute;
right: 0;
top: 1270px;
width: 100%;
img {
width: 100%;
}
}
.bottom-ribbon {
position: absolute;
bottom: 0;
height: 150px;
width: 100%;
img {
width: 100%;
height: 100%;
}
}
\ No newline at end of file \ No newline at end of file
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
$v: '1.0.2';
$good-color: #ffd2b2;
.product-box {
top: 395px;
display: inline-block;
background: url("#{$imgUrl}goodNews/line-bg.png?v=#{$v}");
background-repeat: repeat-x;
background-size: 4px 57px;
width: auto;
// margin: 0 43px;
font-size: 23px;
color: $good-color;
line-height: 30px;
}
.product-name {
position: relative;
padding: 14px 0;
box-sizing: border-box;
div {
// width: 100%;
box-sizing: border-box;
max-width: 425px;
white-space: nowrap;
padding: 0 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.product-icon {
position: absolute;
width: 30px;
height: 57px;
}
.icon-left {
left: -29px;
top: 0;
}
.icon-right {
right: -29px;
top: 0;
}
.store-name {
top: 466px;
color: $good-color;
font-size: 22px;
font-weight: 500;
width: 100%;
text-align: center;
}
.employee-avatar {
top: 700px;
width: 124px;
height: 124px;
border-radius: 50%;
}
.ribbon {
top: 775px;
img {
width: 610px;
height: 70px;
}
&-content {
position: relative;
}
&-text {
display: flex;
bottom: 7px;
color: $good-color;
font-size: 22px;
height: 30px;
line-height: 30px;
span {
display: inline-block;
vertical-align: middle;
text-align: center;
}
span:first-child {
display: inline-block;
// transform: rotate(6deg);
}
span:last-child {
display: inline-block;
// transform: rotate(-6deg);
}
}
&-other-text {
display: flex;
justify-content: center;
span {
display: inline-block;
max-width: 180px;
font-weight: 800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
&-name {
flex: 1;
vertical-align: -webkit-baseline-middle;
// line-height: 46px;
padding: 0 12px;
font-weight: 800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.ranking {
top: 1123px;
color: $good-color;
width: 405px;
background-color: #860a0f;
}
.sales {
display: flex;
align-items: baseline;
top: 850px;
color: $good-color;
font-size: 30px;
font-weight: 600;
// text-shadow: 0px 2px 5px rgba(50, 0, 0, 0.3);
div {
background-image: linear-gradient(-18deg, #ffb376 0%, #ffe6af 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.number {
display: inline-block;
font-size: 100px;
flex: 1;
padding: 0 16px;
font-weight: 800;
font-style: italic;
}
.arrive {
margin: 0 20px;
}
}
.table {
&-box {
display: inline-block;
padding-top: 4px;
font-size: 20px;
min-height: 300px;
}
&-header {
display: flex;
align-items: center;
height: 45px;
opacity: 0.7;
}
&-th,
&-td {
width: 20%;
text-align: center;
}
&-body {
width: 100%;
}
&-item {
display: flex;
align-items: center;
height: 40px;
margin-bottom: 16px;
background-color: #830e13;
border-radius: 20px;
}
// &-item:nth-child(odd) {
// background-color: #830e13;
// border-radius: 20px;
// }
&-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
}
&-td {
&:first-child {
display: flex;
align-items: center;
justify-content: center;
}
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.sales-number {
font-size: 32px;
font-weight: 600;
}
.first-ranking {
position: relative;
img {
width: 40px;
height: 33px;
}
.ranking-number {
color: #ffffff;
}
}
.ranking-bg {
width: 26px;
height: 26px;
background-color: #bf1c20;
border-radius: 50%;
}
.ranking-number {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.bg-top-box {
height: 1060px;
.bg-top {
width: 100%;
height: 100%;
}
}
.wrapper-bg {
position: relative;
background-color: #860a0f;
padding-bottom: 90px;
.shop-title {
display: flex;
justify-content: center;
align-items: center;
font-size: 26px;
color: #ffd2b2;
margin-top: 10px;
margin-bottom: 15px;
.icon-title {
width: 17px;
height: 10px;
}
.shop-name{
margin: 0 15px;
max-width: 350px;
text-overflow :ellipsis;
overflow : hidden;
white-space :nowrap;
}
}
}
.wrapper-table {
// padding-top: 40px;
background: url("#{$imgUrl}goodNews/bg-line.png?v=#{$v}");
background-repeat: repeat-y;
background-size: 100% 10px;
text-align: center;
// margin-bottom: 90px;
margin-top: -1px;
.wrapper-header {
top: 1131px;
width: 100%;
img {
width: 100%;
}
}
.wrapper-footer {
width: 100%;
height: 110px;
img {
width: 100%;
height: 100%;
}
}
}
.table-bg {
background: url("@/assets/images/goodNews/ranking-line.png");
background-repeat: repeat-y;
background-size: 100% 10px;
}
.bg-footer {
width: 100%;
// position: relative;
// bottom: 0;
// left: 0;
// right: 0;
// height: 500px;
// z-index: -1;
.left-footer,
.right-footer {
width: 106px;
height: 500px;
position: absolute;
bottom: 0;
}
.left-footer {
left: 0;
}
.right-footer {
right: 0;
}
}
.long-ribbon {
position: absolute;
top: 222px;
width: 100%;
img {
width: 100%;
}
}
.left-ribbon {
position: absolute;
left: -4px;
top: 1070px;
width: 100%;
img {
width: 100%;
}
}
.right-ribbon {
position: absolute;
right: 0;
top: 1270px;
width: 100%;
img {
width: 100%;
}
}
.bottom-ribbon {
position: absolute;
bottom: 0;
height: 150px;
width: 100%;
img {
width: 100%;
height: 100%;
}
}
\ No newline at end of file \ No newline at end of file
.morning-header {
position: relative;
width: 100%;
height: 328px;
text-align: center;
img {
width: 100%;
height: 100%;
}
.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;
box-sizing: border-box;
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;
padding: 0 14px;
.title-name {
width: 280px;
height: 56px;
}
.mold-title {
position: relative;
width: 100%;
text-align: center;
margin-bottom: 18px;
.merchant-img {
width: 617px;
height: 56px;
}
.merchant-name {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 500;
font-size: 28px;
color: #944213;
&.name {
width: 100%;
}
}
}
.mold-content {
display: flex;
width: 100%;
box-sizing: border-box;
padding: 10px 0 36px;
&: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-border {
margin-bottom: 18px;
border-bottom: 3px dashed #F0CBB9;
background: linear-gradient(white, white) padding-box,
repeating-linear-gradient(-45deg,#F0CBB9 0, #F0CBB9 0.5em, white 0, white 0.75em);
}
.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: 1180px;
right: 20px;
width: 200px;
height: 116px;
}
\ No newline at end of file \ No newline at end of file
* {
box-sizing: border-box;
-moz-box-sizing: border-box; /* Firefox */
-webkit-box-sizing: border-box; /* Safari */
}
html,
body,
p {
margin: 0;
padding: 0;
}
.layout.no-rem {
box-sizing: border-box;
width: 520px;
height: 416px;
background-image: linear-gradient(180deg, #f8fbff 0%, #eff5fe 100%);
padding: 20px;
color: #3582ee;
font-size: 24px;
}
.title.no-rem {
font-weight: 600;
font-size: 28px;
margin-bottom: 40px;
height: 80px;
}
.money-title.no-rem {
margin: 0 auto;
width: 140px;
height: 44px;
line-height: 44px;
background: #e5f0ff;
border-radius: 24px;
font-size: 24px;
text-align: center;
}
.money-txt.no-rem {
margin: 6px auto 52px;
font-weight: 600;
font-size: 50px;
text-align: center;
}
.form.no-rem {
color: #666666;
margin-bottom: 8px;
}
\ No newline at end of file \ No newline at end of file
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
} }
.wrapper { .wrapper {
position: relative; position: relative;
height: 100%;
} }
.wrapper-header { .wrapper-header {
position: relative; position: relative;
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
height: 516px; height: 516px;
background: #FFF6EE; background: #FFF6EE;
box-shadow: 0 20px 40px 0 #CC1C0F; box-shadow: 0 20px 40px 0 #CC1C0F;
z-index: -1; // z-index: -1;
.month { .month {
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -206,6 +207,8 @@ ...@@ -206,6 +207,8 @@
margin-top: 28px; margin-top: 28px;
} }
.logo { .logo {
position: absolute;
bottom: 0;
width: 100%; width: 100%;
height: 152px; height: 152px;
text-align: center; text-align: center;
......
...@@ -26,7 +26,8 @@ for (const path in modules) { ...@@ -26,7 +26,8 @@ for (const path in modules) {
fetchConfig().then(res => { fetchConfig().then(res => {
app.provide('global', { app.provide('global', {
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/', $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/',
version: res.version version: res.version,
baseUrl: res.otherRequest.baseURL
}) })
localStorage.setItem('config', JSON.stringify(res)) localStorage.setItem('config', JSON.stringify(res))
fetchConfig1().then(result => { fetchConfig1().then(result => {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
const fetchConfig = function (isEnv = true) { const fetchConfig = function (isEnv = true) {
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json()) // return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json()) // return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=h5-config').then(res => res.json()) return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=single-posters').then(res => res.json())
} }
// const $mockConfig = await fetchConfig() // const $mockConfig = await fetchConfig()
export default fetchConfig export default fetchConfig
\ No newline at end of file \ No newline at end of file
/*
* @Description: 表情列表
* @Author: huyue
* @Date: 2023-06-08 17:32:17
* @LastEditors: huyue
* @LastEditTime: 2023-06-08 17:32:40
*/
const emoji = [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹']
]
export default emoji
\ No newline at end of file \ No newline at end of file
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
:src="getImageUrl('personal-header')" :src="getImageUrl('personal-header')"
alt="" alt=""
/> />
<div class="merchant-name">{{ data.newsInfo!.merchantName }}</div> <!-- <div class="merchant-name">{{ orderInfo.productName }}</div> -->
</div> </div>
<div class="user-box"> <div class="user-box">
<div class="month">{{ data.newsInfo!.month }}月份</div> <div class="month">{{ month }}</div>
<img <img
class="congratulation-title" class="congratulation-title"
:src="getImageUrl('congratulation-title')" :src="getImageUrl('congratulation-title')"
...@@ -18,29 +18,29 @@ ...@@ -18,29 +18,29 @@
<div class="user-info"> <div class="user-info">
<div class="avatar"> <div class="avatar">
<img <img
:src="data.newsInfo!.staff!.avator || getImageUrl('avatar')" :src="getImageUrl('avatar')"
alt="" alt=""
/> />
<img class="icon-crown" :src="getImageUrl('icon-crown')" alt="" /> <img class="icon-crown" :src="getImageUrl('icon-crown')" alt="" />
</div> </div>
<div class="user-name"> <div class="user-name">
<div class="name">{{ data.newsInfo!.staff!.staffName }}</div> <div class="name">{{orderInfo.staffName}}</div>
<div v-if="data.newsInfo!.staff!.staffJob" class="user-job"> <!-- <div class="user-job">
({{ data.newsInfo!.staff!.staffJob }}) 植物
</div> </div> -->
</div> </div>
</div> </div>
<img class="wheat" :src="getImageUrl('wheat')" alt="" /> <img class="wheat" :src="getImageUrl('wheat')" alt="" />
<div class="price-title"> <div class="price-title">
为团队助力开单,{{ 为团队助力开单,{{
data.upgradeCount == "一" ? "首单金额" : `第${data.upgradeCount}笔` upgradeCount == "一" ? "首单金额" : `第${upgradeCount}笔`
}} }}
</div> </div>
<div class="price-number">{{ data.newsInfo!.totalPrice }}元</div> <div class="price-number">{{orderInfo.orderAmount}}元</div>
<div class="sun-money" v-if="data.newsInfo!.sunshineInspiration"> <!-- <div class="sun-money">
阳光激励:¥{{ data.newsInfo!.sunshineInspiration }} 阳光激励:¥6556
</div> </div> -->
<div class="time">- 开单时间 {{ data.newsInfo!.orderTime }} -</div> <div class="time">- {{ orderInfo.productName }} -</div>
</div> </div>
<div class="tips-text">感谢您前期的铺垫和大力支持,加油!</div> <div class="tips-text">感谢您前期的铺垫和大力支持,加油!</div>
<div class="logo"> <div class="logo">
...@@ -51,42 +51,33 @@ ...@@ -51,42 +51,33 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import emoji from '../utils/emo';
import { ref, reactive, onMounted, inject } from "vue"; import { ref, reactive, onMounted, inject } from "vue";
import { djReq } from "../utils/request";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { Params, DataInfo, NewsInfo, StaffInfo } from "./interface"; import { Params, DataInfo, NewsInfo, StaffInfo } from "./interface";
const route = useRoute(); const route = useRoute();
// 获取全局对象 // 获取全局对象
const global: any = inject("global"); const global: any = inject("global");
let query: Params = {}; let query: Params = {};
const data = reactive<Partial<DataInfo>>({ const orderInfo = ref({
newsInfo: <NewsInfo>{ title: "喜报",
staff: <StaffInfo>{}, orderNum: 1,
}, orderAmount: 398,
upgradeCount: 0, productName: '商品名称',
content: "", staffName: "测试一下"
carTypeSwitch: true, })
goodsSwitch: true, const upgradeCount = ref('0')
payTypeSwitch: true, const month = ref(`${new Date().getMonth() + 1}月份`)
scriptSwitch: true,
});
const getInfo = async () => { const getInfo = async () => {
// data.content = htmFormat(data.content) upgradeCount.value = convertToChinaNum(orderInfo.value.orderNum);
data.newsInfo = await djReq( window.fetch(global.baseUrl + '/open/report/data/' + query.msgId, {
"dj.api.smarcarlife.staffDayReport.getSaPersonalGoodNewsData", method: 'GET',
query headers: {
); 'Content-Type': 'application/json'
data.upgradeCount = convertToChinaNum(data.newsInfo?.staff?.upgradeCount); }
const switchList = data.newsInfo?.switchList || [] }).then(res => res.json()).then(json => {
data.carTypeSwitch = switchList.find(item => item.switchType === 501)?.switchStatus === 'Y' orderInfo.value = json.data
data.goodsSwitch = switchList.find(item => item.switchType === 502)?.switchStatus === 'Y' console.log(json)
data.payTypeSwitch = switchList.find(item => item.switchType === 503)?.switchStatus === 'Y' })
const scriptSwitch = switchList.find(item => item.switchType === 504)
data.scriptSwitch = scriptSwitch?.switchStatus === 'Y' && !!scriptSwitch.switchText
if (data.scriptSwitch) data.content = htmFormat(switchList.find(item => item.switchType === 504)?.switchText)
// if (data.scriptSwitch) data.content = '<div>[晕][调皮][惊讶]的首发式地方时尚短发[发呆]\n打法十大啊\n恭喜发财啊![玫瑰]\n[太阳]\n[拥抱][爱情]</div>'
console.log(data.scriptSwitch);
}; };
/** /**
* 功能:获取图片地址 * 功能:获取图片地址
...@@ -146,21 +137,6 @@ const convertToChinaNum = (num: any) => { ...@@ -146,21 +137,6 @@ const convertToChinaNum = (num: any) => {
result = result.replace(/^一十/g, "十"); result = result.replace(/^一十/g, "十");
return result; return result;
}; };
// 格式化内容
const htmFormat = (val: any) => {
let htm = val.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
return `<img class="icon-emo" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png" alt="" />`
}).replace(/\n/gi, '<br/></div><div>')
return htm
}
onMounted(() => { onMounted(() => {
if (route.query) { if (route.query) {
query = route.query; query = route.query;
......
export interface Params { export interface Params {
orderCode?: string; msgId?: string;
} }
export interface DataInfo { export interface DataInfo {
newsInfo: NewsInfo; newsInfo: NewsInfo;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import styleImport, { VantResolve } from 'vite-plugin-style-import'; import styleImport, { VantResolve } from 'vite-plugin-style-import';
import path from 'path' import * as path from 'path'
const resolve = (dir: string) => path.join(__dirname, dir) const resolve = (dir: string) => path.join(__dirname, dir)
// https://vitejs.dev/config/ // https://vitejs.dev/config/
...@@ -50,15 +50,12 @@ export default defineConfig({ ...@@ -50,15 +50,12 @@ export default defineConfig({
// 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名 // 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名
open: false, open: false,
// 自定义代理规则 // 自定义代理规则
proxy: { // proxy: {
'/api': { // '/api': {
target: 'http://192.168.1.68:7001', // target: 'http://192.168.1.117:6180',
changeOrigin: true, // changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '') // rewrite: path => path.replace(/^\/api/, '')
}
}
},
// build: {
// target:['edge90','chrome90','firefox90','safari15']
// } // }
// }
},
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!