Commit 4f47408a by 胡悦

init

1 parent a37db600
Showing 100 changed files with 4237 additions and 0 deletions
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
\ No newline at end of file \ No newline at end of file
# Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
## Type Support For `.vue` Imports in TS
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
# 众筹 (crowdfunding)
* activited:已结束战报
* activiting:进行中战报
* goodNews:喜报
# 膨胀金 (/expansiongold)
* activited:已结束战报
* activiting:进行中战报
* goodNews:喜报
# saas+ 企微推送 (/sass)
# 嘀加(/dj)
- SA个人喜报:/dj/personalGoodNews?orderCode=230324172030364
- 早报:/dj/morning?merchantId=
- SA喜报:/dj/gladNews
- 喜报:/dj/goodNews
# 车损权益
- 喜报:/equity/goodNews?id=39
- 门店战报:/equity/storeReport?merchantId4s=44210895&merchantName4s=波波的单店门店
- 服务商战报:/equity/serviceReport?merchantId4s=44211113&merchantName4s=流程测试服务商
<!--
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2022-11-15 10:44:23
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>战报</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
{
"name": "vite-ts-project",
"private": true,
"version": "0.0.0",
"license": "ISC",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"axios": "^0.27.2",
"echarts": "^5.4.0",
"js-sha1": "^0.6.0",
"md5": "^2.3.0",
"pinia": "^2.0.17",
"pinia-plugin-persist": "^1.0.0",
"qs": "^6.11.0",
"sha1": "^1.1.1",
"tslib": "^2.4.0",
"vant": "^3.5.3",
"vconsole": "^3.7.0",
"vue": "^3.2.25",
"vue-router": "^4.1.1",
"vuex": "^4.0.2"
},
"devDependencies": {
"@types/node": "^18.6.3",
"@types/qs": "^6.9.7",
"@types/sha1": "^1.1.3",
"@vitejs/plugin-vue": "^2.3.3",
"postcss-loader": "^7.0.1",
"postcss-px-to-viewport": "^1.1.1",
"postcss-pxtorem": "^5.1.1",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"typescript": "^4.7.4",
"vite": "^2.9.9",
"vite-plugin-style-import": "^1.4.1",
"vue-tsc": "^0.34.7"
}
}
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2023-09-04 11:19:31
*/
module.exports = {
"plugins": {
// "postcss-pxtorem": {
// rootValue: 75, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
// unitPrecision: 6, // 计算结果保留 6 位小数
// selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px
// propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化
// replace: true, // 转换成 rem 以后,不保留原来的 px 单位属性
// mediaQuery: true, // 允许在媒体查询中转换 px
// minPixelValue: 2, // 设置要替换的最小像素值
// // exclude: /node_modules/i // 排除 node_modules 文件(node_modules 内文件禁止转换)
// }
'postcss-px-to-viewport': {
unitToConvert: "px", // 要转化的单位
viewportWidth: 750, // UI设计稿的宽度
unitPrecision: 6, // 转换后的精度,即小数点位数
propList: ["*"], // 指定转换的css属性的单位,*代表全部css属性的单位都进行转换
viewportUnit: "vw", // 指定需要转换成的视窗单位,默认vw
fontViewportUnit: "vw", // 指定字体需要转换成的视窗单位,默认vw selectorBlackList: ["wrap"], // 指定不转换为视窗单位的类名,
minPixelValue: 2, // 默认值1,小于或等于1px则不进行转换
mediaQuery: true, // 是否在媒体查询的css代码中也进行转换,默认false
replace: true, // 是否转换后直接更换属性值
exclude: [/node_modules/], // 设置忽略文件,用正则做目录名匹配
}
}
}
\ No newline at end of file \ No newline at end of file
No preview for this file type
<template>
<router-view />
</template>
<script lang="ts" setup></script>
<style>
#app {
height: 100vh;
background: #F84B2C;
}
.flex-grow {
flex-grow: 1;
}
</style>
//
// const modulesFiles = import.meta.globEager('./modules/*.ts')
// console.log(modulesFiles)
// const modules: any = {}
// for (const key in modulesFiles) {
// if (Object.prototype.hasOwnProperty.call(modulesFiles, key)) {
// modules[key.replace(/(\.\/modules\/|\.ts)/g, '')] = modulesFiles[key].default
// }
// }
// console.log(modules)
// export default modules
\ No newline at end of file \ No newline at end of file
// import request from "../../utils/request"
// const getList = ('/classify/getList', data)
// const getList = ( data: object ) => {
// return request({
// url: "/classify/getList",
// method: "get",
// data
// })
// }
// export default {
// getList
// }
\ No newline at end of file \ No newline at end of file
// 已结束
.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;
}
}
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
#app {
position: relative;
}
.bg {
position: absolute;
left: 0;
// right: 0;
top: 0;
// bottom: 0;
width: 100%;
z-index: -1;
// height: 100%;
}
div {
user-select: none;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.mrg-22{
margin:0 22px;
}
.flex{
display:flex;
}
.mgb19{
margin-bottom:19px;
}
.logo {
bottom: 60px;
width: 196px;
img {
width: 100%;
height: 43px;
}
}
// 喜报
.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
* {
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;
z-index: -1;
.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;
}
.sun-money {
position: absolute;
bottom: 98px;
text-align: center;
width: 100%;
font-weight: 600;
font-size: 24px;
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%);
word-wrap: break-word;
border-radius: 8px;
.customer-item {
display: flex;
align-items: baseline;
width: 100%;
line-height: 34px;
font-weight: 400;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.label {
width: 100px;
font-size: 24px;
color: #AC603B;
}
.value {
flex: 1;
margin-left: 52px;
font-size: 24px;
color: #3B0000;
opacity: 0.72;
.shop-name {
display: flex;
align-items: baseline;
flex-direction: column;
.icon-star {
display: inline-block;
font-size: 24px;
color: #3B0000;
margin-right: 5px;
}
.name {
display: inline-block;
font-weight: 400;
font-size: 24px;
color: #3B0000;
line-height: 44px;
}
}
}
}
}
.tips-text {
width: 100%;
font-weight: 500;
font-size: 22px;
color: rgb(255, 255, 255, 0.65);
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;
}
.store-title {
position: relative;
width: 100%;
text-align: center;
font-weight: 600;
font-size: 24px;
color: #6E2714;
img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 556px;
height: 18px;
}
}
.store-item {
font-size: 24px;
color: #AC603B;
margin-top: 16px;
.store-label {
display: inline-flex;
width: 144px;
margin-right: 20px;
font-size: 24px;
}
}
\ No newline at end of file \ No newline at end of file
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
import {
Button, Form, Field, CellGroup, List, Cell, PullRefresh, Toast
} from 'vant'
export const components = [
Button, Form, Field, CellGroup, List, Cell, PullRefresh, Toast
]
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-09-04 11:36:12
*/
import { createApp } from 'vue'
import store from './store'
// import apis from './api/index'
import router, { setupRouter } from './router'
import App from './App.vue'
import fetchConfig from './utils/config'
import fetchConfig1 from './utils/config1'
import VConsole from 'vconsole'
import 'assets/styles/common.scss'
const app = createApp(App)
let vConsole: object = {}
import { components } from './libs/vant'
components.forEach(component => app.use(component));
// 自动注册全局组件
const modules = import.meta.globEager('./components/**/index.ts')
for (const path in modules) {
app.use(modules[path].default)
}
fetchConfig().then(res => {
app.provide('global', {
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/',
version: res.version
})
localStorage.setItem('config', JSON.stringify(res))
fetchConfig1().then(result => {
localStorage.setItem('config1', JSON.stringify(result))
app.use(store)
setupRouter(app)
router.isReady().then(() => {
app.mount('#app')
})
})
// if (res.vconsole) vConsole = new VConsole()
})
import { createRouter, createWebHashHistory } from 'vue-router'
import type { App } from 'vue'
import routes from './routes'
const routerHistory = createWebHashHistory('./')
// createWebHashHistory hash 路由
// createWebHistory history 路由
// createMemoryHistory 带缓存history路由
const router = createRouter({
history: routerHistory,
routes: routes
})
router.beforeEach((to, from, next) => {
document.title = (to.meta.title as string) || ''
document.documentElement.style.backgroundColor = (to.meta.backgroundColor as string) || '#F8F6F5'
next()
})
// 删除/重置路由
export function resetRoute():void {
router.getRoutes().forEach(route => {
const {name} = route
if (name) {
router.hasRoute(name) && router.removeRoute(name)
}
})
}
export function setupRouter(app: App<Element>) {
app.use(router)
}
export default router
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-05-16 14:37:28
*/
const staticRoutes = Object.freeze([
{
path: '/',
component: () => import('views/goodNews.vue'),
meta: {
title: '喜报',
backgroundColor: '#F8F6F5'
}
},
{
path: '/goodNews',
component: () => import('views/goodNews.vue'),
meta: {
title: '喜报',
backgroundColor: '#F8F6F5'
}
}
])
export default staticRoutes
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
const store = createPinia()
store.use(piniaPluginPersist)
export default store
\ No newline at end of file \ No newline at end of file
import { defineStore } from 'pinia'
export const useUserStore = defineStore({
id: 'user',
state: () => ({
name: '',
sessionId: ''
}),
getters: {
getSession: state => {
if (!state.sessionId) {
state.sessionId = localStorage.getItem('sessionId') || ''
}
return state.sessionId
}
},
actions: {
updateSessionId(sessionId: string) {
this.sessionId = sessionId
localStorage.setItem('sessionId', sessionId)
},
logout() {
localStorage.removeItem('sessionId')
this.sessionId = ''
}
}
})
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 11:37:11
* @LastEditors: huyue
* @LastEditTime: 2023-08-08 10:52:01
*/
/** 三个数字加一个逗号 */
const numAddSymbol = (val: number | string | undefined) => {
return val ? (val + '').replace(/\B(?=(?:\d{3})+\b)/g, ',') : 0
}
export default {
numAddSymbol
}
\ No newline at end of file \ No newline at end of file
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-06-14 10:12:30
*/
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.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())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig
\ No newline at end of file \ No newline at end of file
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-05-24 14:27:33
*/
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('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=djposter-config').then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig1
\ 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
/*
* @Description:
* @Author: huyue
* @Date: 2022-08-23 11:04:56
* @LastEditors: huyue
* @LastEditTime: 2023-02-07 15:14:49
*/
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios'
import { Toast } from 'vant';
import qs from 'qs'
import { createSign } from './util'
const options: any = localStorage.getItem('config')
interface Config {
response: {
'code_key': string,
'code_success_value': 0,
'data_key': string,
'errId_logout_value': string,
'errId'?: string,
'code_error_value': string
},
request: {
baseURL: string
},
secret: string,
sign: object,
vconsole: boolean
}
const mockConfig: Config = JSON.parse(options)
const { response, request, sign, secret } = mockConfig
// axios.defaults.baseURL = request.baseURL
// 配置新建一个axios 实例
const service: AxiosInstance = axios.create({
timeout: 50000,
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}
})
// 添加请求拦截器
service.interceptors.request.use((config: AxiosRequestConfig) => {
let { data = {}, domain } = config
data = createSign(Object.assign({}, sign, data), secret)
config.baseURL = mockConfig[domain].baseURL
if (config.method) {
const method = config.method.toLowerCase()
if (method == 'get') {
config.params = data
} else if (method == 'post') {
config.data = qs.stringify(data)
}
}
return config
}, (error: AxiosError) => {
return Promise.reject(error)
})
// 添加响应拦截器
service.interceptors.response.use((r: AxiosResponse) => {
const { data: res, config: { returnAll } } = r
const { code_key, code_success_value, data_key = 'data', errId = 'errId', code_error_value, errId_logout_value } = response
let codekey = Array.isArray(code_key) ? code_key.find(key => res.hasOwnProperty(key)) : code_key
let code = res[codekey]
let errValue = res[errId]
// 特殊的code处理,可以增加
switch (code + '') {
case code_success_value + '':
if (returnAll) return res
break
case code_error_value + '':
if (errValue && errValue == errId_logout_value) {
localStorage.removeItem('sessionId')
const [href] = window.location.href.split('/#/')
location.href = `${href}/#/login`
}
Toast(res.message)
break
default:
Toast(res.message || res.msg || '出错了,请联系管理员')
break
}
if (returnAll) return res
return res[data_key]
}, error => {
Toast(error.message)
return Promise.reject(error)
})
export default service
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-08-23 11:04:56
* @LastEditors: huyue
* @LastEditTime: 2023-03-07 10:24:47
*/
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios'
import { Toast } from 'vant';
import qs from 'qs'
import { createSign } from './util'
const options: any = localStorage.getItem('config1')
interface Config {
response: {
'code_key': string,
'code_success_value': 0,
'data_key': string,
'errId_logout_value': string,
'errId'?: string,
'code_error_value': string
},
request: {
baseURL: string
},
secret: string,
sign: object,
vconsole: boolean
}
const mockConfig: Config = JSON.parse(options)
const { response, request, sign, secret } = mockConfig
// axios.defaults.baseURL = request.baseURL
// 配置新建一个axios 实例
const service: AxiosInstance = axios.create({
timeout: 50000,
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}
})
// 添加请求拦截器
service.interceptors.request.use((config: AxiosRequestConfig) => {
let { data = {}, domain } = config
data = createSign(Object.assign({}, sign, data), secret)
config.baseURL = mockConfig[domain].baseURL
if (config.method) {
const method = config.method.toLowerCase()
if (method == 'get') {
config.params = data
} else if (method == 'post') {
config.data = qs.stringify(data)
}
}
return config
}, (error: AxiosError) => {
return Promise.reject(error)
})
// 添加响应拦截器
service.interceptors.response.use((r: AxiosResponse) => {
const { data: res, config: { returnAll } } = r
const { code_key, code_success_value, data_key = 'data', errId = 'errId', code_error_value, errId_logout_value } = response
let codekey = Array.isArray(code_key) ? code_key.find(key => res.hasOwnProperty(key)) : code_key
let code = res[codekey]
let errValue = res[errId]
// 特殊的code处理,可以增加
switch (code + '') {
case code_success_value + '':
if (returnAll) return res
break
case code_error_value + '':
if (errValue && errValue == errId_logout_value) {
localStorage.removeItem('sessionId')
const [href] = window.location.href.split('/#/')
location.href = `${href}/#/login`
}
Toast(res.message)
break
default:
Toast(res.message || res.msg || '出错了,请联系管理员')
break
}
if (returnAll) return res
return res[data_key]
}, error => {
Toast(error.message)
return Promise.reject(error)
})
export default service
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-29 14:54:02
*/
let baseSize = 37.5
function setRem() {
const scale = document.documentElement.clientWidth / 375
document.documentElement.style.fontSize = baseSize * Math.min(scale, 3) + 'px'
}
function throttle(func, wait) {
let timeout
return function () {
if (!timeout) {
timeout = setTimeout(function () {
func()
timeout = null
}, wait)
}
}
}
setRem()
window.onresize = throttle(() => {
setRem()
}, 1000)
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-12-06 16:17:36
* @LastEditors: huyue
* @LastEditTime: 2023-03-07 10:26:01
*/
import http from './http'
import http1 from './http1'
import { useUserStore } from '../store/user'
const PATH = 'rop-scrm-shopmall/router'
const DJPATH = 'rop-dj-smartcarlife/router'
const req: any = (url: string, data: any = {}, returnAll = false, method = 'POST',) => {
data.method = url
const options = {
domain: 'request',
url: PATH,
method,
data,
returnAll
}
return http(options)
}
const djReq: any = (url: string, data: any = {}, returnAll = false, method = 'POST',) => {
data.method = url
const options = {
domain: 'otherRequest',
url: DJPATH,
method,
data,
returnAll
}
return http1(options)
}
export {
req,
djReq
}
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2022-10-20 10:12:09
*/
import sha1 from 'sha1'
import qs from 'qs'
export const Util = {
createSign: function(params: object, secret: string, noSignAttr = [], way = 'hexSha2') {
delete params.sign
params.timestamp = new Date().getTime()
var strQs = qs.stringify(params, { arrayFormat: 'indices', allowDots: true, encodeValuesOnly: true })
const objQs = strQs.split('&')
const collect = objQs.reduce((collect: any, item) => {
let [key, value] = item.split('=')
if (value === null) {
value = ''
} else if (typeof value === 'object') {
value = JSON.stringify(value)
}
collect[key] = decodeURIComponent(value)
return collect
}, {})
const keys = Object.keys(collect).sort()
const str = keys.reduce((col, key) => {
if (!noSignAttr.includes(key)) {
col.push(key, collect[key])
}
return col
}, [])
collect.sign = sha1(secret + str.join('') + secret).toUpperCase()
return collect
},
rgb: function(){//rgb颜色随机
const r = Math.floor(Math.random()*256);
const g = Math.floor(Math.random()*256);
const b = Math.floor(Math.random()*256);
return `rgb(${r},${g},${b})`;
}
}
export const createSign = Util.createSign
export default Util
\ No newline at end of file \ No newline at end of file
<template>
<div class="wrapper">
<div class="wrapper-header">
<img
class="personal-header"
:src="getImageUrl('personal-header')"
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="getImageUrl('congratulation-title')"
alt=""
/>
<div class="user-info">
<div class="avatar">
<img
:src="data.newsInfo!.staff!.avator || getImageUrl('avatar')"
alt=""
/>
<img class="icon-crown" :src="getImageUrl('icon-crown')" 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="getImageUrl('wheat')" alt="" />
<div class="price-title">
为团队助力开单,{{
data.upgradeCount == "一" ? "首单金额" : `第${data.upgradeCount}笔`
}}
</div>
<div class="price-number">{{ data.newsInfo!.totalPrice }}元</div>
<div class="sun-money" v-if="data.newsInfo!.sunshineInspiration">
阳光激励:¥{{ data.newsInfo!.sunshineInspiration }}
</div>
<div class="time">- 开单时间 {{ data.newsInfo!.orderTime }} -</div>
</div>
<div class="tips-text">感谢您前期的铺垫和大力支持,加油!</div>
<div class="logo">
<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="" />
</div>
</template>
<script lang="ts" setup>
import emoji from '../utils/emo';
import { ref, reactive, onMounted, inject } from "vue";
import { djReq } from "../utils/request";
import { useRoute } from "vue-router";
import { Params, DataInfo, NewsInfo, StaffInfo } from "./interface";
const route = useRoute();
// 获取全局对象
const global: any = inject("global");
let query: Params = {};
const data = reactive<Partial<DataInfo>>({
newsInfo: <NewsInfo>{
staff: <StaffInfo>{},
},
upgradeCount: 0,
content: "",
carTypeSwitch: true,
goodsSwitch: true,
payTypeSwitch: true,
scriptSwitch: true,
});
const getInfo = async () => {
// data.content = htmFormat(data.content)
data.newsInfo = await djReq(
"dj.api.smarcarlife.staffDayReport.getSaPersonalGoodNewsData",
query
);
data.upgradeCount = convertToChinaNum(data.newsInfo?.staff?.upgradeCount);
const switchList = data.newsInfo?.switchList || []
data.carTypeSwitch = switchList.find(item => item.switchType === 501)?.switchStatus === 'Y'
data.goodsSwitch = switchList.find(item => item.switchType === 502)?.switchStatus === 'Y'
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);
};
/**
* 功能:获取图片地址
* 参数:name:图片名称
* path:图片在服务器上的路径
*/
const getImageUrl = (name: any, path = "dj") => {
return new URL(`./${path}/${name}.png?v=${global.version}`, global.$imgUrl)
.href;
};
// 数字转汉字
const convertToChinaNum = (num: any) => {
var arr1 = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];
var arr2 = [
"",
"十",
"百",
"千",
"万",
"十",
"百",
"千",
"亿",
"十",
"百",
"千",
"万",
"十",
"百",
"千",
"亿",
];
if (!num || isNaN(num)) {
return "零";
}
var english = num.toString().split("");
var result = "";
for (var i = 0; i < english.length; i++) {
var des_i = english.length - 1 - i; //倒序排列设值
result = arr2[i] + result;
var arr1_index = english[des_i];
result = arr1[arr1_index] + result;
}
//将【零千、零百】换成【零】 【十零】换成【十】
result = result.replace(/零(千|百|十)/g, "零").replace(/十零/g, "十");
//合并中间多个零为一个零
result = result.replace(/零+/g, "零");
//将【零亿】换成【亿】【零万】换成【万】
result = result.replace(/零亿/g, "亿").replace(/零万/g, "万");
//将【亿万】换成【亿】
result = result.replace(/亿万/g, "亿");
//移除末尾的零
result = result.replace(/零+$/, "");
//将【零一十】换成【零十】
//result = result.replace(/零一十/g, '零十');//貌似正规读法是零一十
//将【一十】换成【十】
result = result.replace(/^一十/g, "十");
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(() => {
if (route.query) {
query = route.query;
getInfo();
}
});
</script>
<style lang="scss" scoped>
@import "src/assets/styles/personalGoodNews.scss";
</style>
<style lang="scss">
.html-info {
font-size: 24px;
color: #3B0000;
line-height: 34px;
// div {
// display: flex;
// align-items: center;
// }
.icon-emo {
width: 24px;
height: 24px;
vertical-align: middle;
// line-height: 24px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
export interface Params {
orderCode?: string;
}
export interface DataInfo {
newsInfo: NewsInfo;
upgradeCount: number | string;
content: string;
carTypeSwitch: boolean;
goodsSwitch: boolean;
payTypeSwitch: boolean;
scriptSwitch: boolean;
scriptText: string;
}
export interface NewsInfo {
month?: string;
staff?: StaffInfo;
totalPrice?: number;
carChildsBrandName?: string;
customerName?: string;
carBrand?: string;
merchantName?: string;
carSeriesName?: string;
orderTime?: string;
sunshineInspiration?: string;
goodsNames?: string[];
packageGoodsList?: PackageGoods[];
channelType?: number;
switchList: SwitchType[];
todayUpgradeCount: number;
todayOrderMoney: number;
monthUpgradeCount: number;
monthOrderMoney: number;
}
export interface PackageGoods {
packageCode: string;
packageName: string;
packageGoodsOrderList: PackageGoodsOrder[];
}
export interface PackageGoodsOrder {
upgradeGoodsAlias: string;
upgradeGoodsName: string;
}
export interface StaffInfo {
staffName: string;
staffJob: string;
avator: string;
upgradeCount: number;
notUpgradeCount: number;
orderMoney: number;
unitPricePerCustomer: number;
conversionRate: number;
}
export interface SwitchType {
switchType: number;
switchStatus: string;
switchText: string;
}
\ No newline at end of file \ No newline at end of file
{
"compilerOptions": {
"baseUrl": ".",
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"skipLibCheck": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
}
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-05-24 10:18:45
*/
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import styleImport, { VantResolve } from 'vite-plugin-style-import';
import path from 'path'
const resolve = (dir: string) => path.join(__dirname, dir)
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [
vue(),
styleImport({
resolves: [VantResolve()],
libs: [
{
libraryName: 'vant',
esModule: true,
resolveStyle: (name) => {
return `../es/${name}/style`
}
}
]
})
],
resolve: {
alias: {
'@': resolve('src'),
comps: resolve('src/components'),
apis: resolve('src/apis'),
views: resolve('src/views'),
routes: resolve('src/routes'),
assets: resolve('src/assets'),
utils: resolve('src/utils')
}
},
server: {
// 服务器主机名
host: '0.0.0.0',
// 端口号
port: 3000,
// 设为true时 端口已被占用则会直接退出,而不是尝试下一个可用端口
strictPort: false,
// 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名
open: false,
// 自定义代理规则
proxy: {
'/api': {
target: 'http://192.168.1.68:7001',
changeOrigin: true,
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!