Commit f9a320f5 by 前端

Merge branch 'v3.1.1' into 'master'

V3.1.1

See merge request !3
2 parents bab7a79f 485838f1
Showing 86 changed files with 399 additions and 81 deletions
<!--
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2022-11-15 10:44:23
-->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>Vite App</title> <title>战报</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -21,27 +21,27 @@ ...@@ -21,27 +21,27 @@
height: 50px; height: 50px;
} }
.icon-1 { .icon-1 {
background: url("@/assets/images/activityReport/1.png") no-repeat; background: url("#{$imgUrl}activityReport/1.png") no-repeat;
background-size: 50px; background-size: 50px;
} }
.icon-2 { .icon-2 {
background: url("@/assets/images/activityReport/2.png") no-repeat; background: url("#{$imgUrl}activityReport/2.png") no-repeat;
background-size: 50px; background-size: 50px;
} }
.icon-3 { .icon-3 {
background: url("@/assets/images/activityReport/3.png") no-repeat; background: url("#{$imgUrl}activityReport/3.png") no-repeat;
background-size: 50px; background-size: 50px;
} }
.icon-4 { .icon-4 {
background: url("@/assets/images/activityReport/4.png") no-repeat; background: url("#{$imgUrl}activityReport/4.png") no-repeat;
background-size: 50px; background-size: 50px;
} }
.icon-5 { .icon-5 {
background: url("@/assets/images/activityReport/5.png") no-repeat; background: url("#{$imgUrl}activityReport/5.png") no-repeat;
background-size: 50px; background-size: 50px;
} }
.icon-6 { .icon-6 {
background: url("@/assets/images/activityReport/6.png") no-repeat; background: url("#{$imgUrl}activityReport/6.png") no-repeat;
background-size: 50px; background-size: 50px;
} }
......
@import './common.scss';
.wrapper-header { .wrapper-header {
position: relative; position: relative;
.img-title { .img-title {
...@@ -16,14 +17,34 @@ ...@@ -16,14 +17,34 @@
width: 623px; width: 623px;
bottom: 90px; bottom: 90px;
} }
.activity-box {
width: 100%;
top: 279px;
text-align: center;
.activity-name {
display: inline-flex;
box-sizing: border-box;
align-items: center;
justify-content: center;
padding: 0 21px;
height: 44px;
font-size: 24px;
font-weight: 500;
color: #FF4933;
background: linear-gradient(to bottom, #fff1ee, #ffe2da);
box-shadow: 0px -2px 8px 0px #FF9860, 0px 0px 10px 0px rgba(255,97,84,0.15), 0px 0px 10px 0px rgba(255,97,84,0.15), 0px 0px 10px 0px rgba(255,97,84,0.15);
border-radius: 22px;
}
}
.store-name { .store-name {
top: 242px; // top: 242px;
font-size: 30px; top: 339px;
font-weight: 600; font-size: 24px;
color: #ffffff; font-weight: 500;
color: #FF4933;
line-height: 32px; line-height: 32px;
text-shadow: 6px 0px 8px #db4427; // text-shadow: 6px 0px 8px #db4427;
letter-spacing: 4px; // letter-spacing: 4px;
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
...@@ -69,7 +90,7 @@ ...@@ -69,7 +90,7 @@
} }
} }
.box-body { .box-body {
background-image: url("@/assets/images/activityReport/box-bg.png"); background-image: url("#{$imgUrl}activityReport/box-bg.png");
background-repeat: repeat-y; background-repeat: repeat-y;
background-size: 100%; background-size: 100%;
// height: 1000px; // height: 1000px;
...@@ -167,7 +188,7 @@ ...@@ -167,7 +188,7 @@
display: inline-block; display: inline-block;
width: 17px; width: 17px;
height: 24px; height: 24px;
background: url("@/assets/images/activityReport/icon-flash.png") no-repeat; background: url("#{$imgUrl}activityReport/icon-flash.png") no-repeat;
background-size: 17px 24px; background-size: 17px 24px;
margin-right: 10px; margin-right: 10px;
} }
...@@ -210,7 +231,7 @@ ...@@ -210,7 +231,7 @@
display: inline-block; display: inline-block;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: url("@/assets/images/activityReport/icon-line.png"); background-image: url("#{$imgUrl}activityReport/icon-line.png");
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: 56px 40px; background-size: 56px 40px;
} }
...@@ -292,7 +313,7 @@ ...@@ -292,7 +313,7 @@
.department { .department {
width: 120px; width: 120px;
height: 32px; height: 32px;
background: url("@/assets/images/activityReport/bg-department.png") no-repeat; background: url("#{$imgUrl}activityReport/bg-department.png") no-repeat;
background-size: 120px 32px; background-size: 120px 32px;
font-size: 22px; font-size: 22px;
font-weight: 400; font-weight: 400;
...@@ -340,6 +361,7 @@ ...@@ -340,6 +361,7 @@
margin-right: 0; margin-right: 0;
} }
.employee-name { .employee-name {
height: 36px;
top: 55px; top: 55px;
background: linear-gradient(0deg, #FF2F37 0%, #FF9A77 100%); background: linear-gradient(0deg, #FF2F37 0%, #FF9A77 100%);
border-radius: 20px; border-radius: 20px;
...@@ -382,21 +404,21 @@ ...@@ -382,21 +404,21 @@
top: -33px; top: -33px;
width: 140px; width: 140px;
height: 140px; height: 140px;
background: url("@/assets/images/activityReport/first-avatar-bg.png") no-repeat; background: url("#{$imgUrl}activityReport/first-avatar-bg.png") no-repeat;
background-size: 140px; background-size: 140px;
} }
.second-avatar-bg { .second-avatar-bg {
top: -32px; top: -32px;
width: 120px; width: 120px;
height: 120px; height: 120px;
background: url("@/assets/images/activityReport/second-avatar-bg.png") no-repeat; background: url("#{$imgUrl}activityReport/second-avatar-bg.png") no-repeat;
background-size: 120px; background-size: 120px;
} }
.third-avatar-bg { .third-avatar-bg {
top: -32px; top: -32px;
width: 120px; width: 120px;
height: 120px; height: 120px;
background: url("@/assets/images/activityReport/third-avatar-bg.png") no-repeat; background: url("#{$imgUrl}activityReport/third-avatar-bg.png") no-repeat;
background-size: 120px; background-size: 120px;
} }
.avatar { .avatar {
...@@ -441,7 +463,7 @@ ...@@ -441,7 +463,7 @@
} }
} }
.box-footer { .box-footer {
margin-top: 0; margin-top: -1px;
img { img {
width: 100%; width: 100%;
} }
...@@ -612,19 +634,19 @@ ...@@ -612,19 +634,19 @@
margin-right: 10px; margin-right: 10px;
} }
.icon-custom { .icon-custom {
background: url("@/assets/images/activityReport/icon-custom.png") no-repeat; background: url("#{$imgUrl}activityReport/icon-custom.png") no-repeat;
background-size: 25px; background-size: 25px;
} }
.icon-visite { .icon-visite {
background: url("@/assets/images/activityReport/icon-visite.png") no-repeat; background: url("#{$imgUrl}activityReport/icon-visite.png") no-repeat;
background-size: 25px; background-size: 25px;
} }
.icon-order { .icon-order {
background: url("@/assets/images/activityReport/icon-order.png") no-repeat; background: url("#{$imgUrl}activityReport/icon-order.png") no-repeat;
background-size: 25px; background-size: 25px;
} }
.icon-conversion { .icon-conversion {
background: url("@/assets/images/activityReport/icon-conversion.png") no-repeat; background: url("#{$imgUrl}activityReport/icon-conversion.png") no-repeat;
background-size: 25px; background-size: 25px;
} }
.label-name { .label-name {
...@@ -638,3 +660,26 @@ ...@@ -638,3 +660,26 @@
} }
} }
} }
.loading {
position: relative;
height: 100vh;
font-size: 30px;
color: #fff;
background-color: #ff6b71;
img {
width: 100%;
}
div {
position: fixed;
top: 50%;
width: 100%;
text-align: center;
}
.bg-footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
}
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
#app { #app {
position: relative; position: relative;
} }
......
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
$v: '1.0.2';
$good-color: #ffd2b2; $good-color: #ffd2b2;
.product-box { .product-box {
top: 395px; top: 395px;
display: inline-block; display: inline-block;
background: url("@/assets/images/goodNews/line-bg.png"); background: url("#{$imgUrl}goodNews/line-bg.png?v=#{$v}");
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: 4px 57px; background-size: 4px 57px;
width: auto; width: auto;
...@@ -110,6 +113,7 @@ $good-color: #ffd2b2; ...@@ -110,6 +113,7 @@ $good-color: #ffd2b2;
top: 1123px; top: 1123px;
color: $good-color; color: $good-color;
width: 405px; width: 405px;
background-color: #860a0f;
} }
.sales { .sales {
display: flex; display: flex;
...@@ -128,7 +132,7 @@ $good-color: #ffd2b2; ...@@ -128,7 +132,7 @@ $good-color: #ffd2b2;
display: inline-block; display: inline-block;
font-size: 100px; font-size: 100px;
flex: 1; flex: 1;
padding: 0 6px; padding: 0 16px;
font-weight: 800; font-weight: 800;
font-style: italic; font-style: italic;
} }
...@@ -136,8 +140,10 @@ $good-color: #ffd2b2; ...@@ -136,8 +140,10 @@ $good-color: #ffd2b2;
.table { .table {
&-box { &-box {
display: inline-block;
padding-top: 4px; padding-top: 4px;
font-size: 20px; font-size: 20px;
} }
&-header { &-header {
display: flex; display: flex;
...@@ -209,3 +215,103 @@ $good-color: #ffd2b2; ...@@ -209,3 +215,103 @@ $good-color: #ffd2b2;
left: 50%; left: 50%;
transform: translate(-50%, -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;
img {
width: 100%;
height: 100%;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2022-10-14 18:32:54 * @Date: 2022-10-14 18:32:54
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: huyue
* @LastEditTime: 2022-10-26 17:41:24 * @LastEditTime: 2022-11-16 17:57:37
--> -->
<template> <template>
<div :ref="id" class="canvas"></div> <div :ref="id" class="canvas"></div>
...@@ -87,7 +87,7 @@ const getChartSetOption = () => { ...@@ -87,7 +87,7 @@ const getChartSetOption = () => {
<style scoped> <style scoped>
.canvas { .canvas {
width: 100%; width: 50vw;
height: 160px; height: 160px;
} }
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 16:21:55 * @Date: 2022-10-10 16:21:55
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-20 17:47:04 * @LastEditTime: 2022-11-16 17:19:56
--> -->
<template> <template>
<div class="table-box ranking"> <div class="table-box ranking">
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, computed, reactive } from "vue"; import { defineComponent, computed, reactive, inject } from "vue";
interface Props { interface Props {
iconClass: string; iconClass: string;
...@@ -75,6 +75,8 @@ export default defineComponent({ ...@@ -75,6 +75,8 @@ export default defineComponent({
setup(props: Props) { setup(props: Props) {
console.log(props.tableData); console.log(props.tableData);
console.log(props.tableHeader); console.log(props.tableHeader);
// 获取全局对象
const global: any = inject("global");
const data = reactive({ const data = reactive({
tableData: props.tableData, tableData: props.tableData,
tableHeader: props.tableHeader, tableHeader: props.tableHeader,
...@@ -84,7 +86,7 @@ export default defineComponent({ ...@@ -84,7 +86,7 @@ export default defineComponent({
return { return {
data, data,
getImageUrl(name: any) { getImageUrl(name: any) {
return new URL(`./images/${name}.png`, import.meta.url).href; return new URL(`./common/${name}.png`, global.$imgUrl).href;
}, },
}; };
}, },
......
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-13 10:13:46 * @LastEditTime: 2022-11-21 10:08:12
*/ */
import { createApp } from 'vue' import { createApp } from 'vue'
import store from './store' import store from './store'
import axios from 'axios'
// import apis from './api/index' // import apis from './api/index'
import router, { setupRouter } from './router' import router, { setupRouter } from './router'
import App from './App.vue' import App from './App.vue'
...@@ -25,17 +24,17 @@ const modules = import.meta.globEager('./components/**/index.ts') ...@@ -25,17 +24,17 @@ const modules = import.meta.globEager('./components/**/index.ts')
for (const path in modules) { for (const path in modules) {
app.use(modules[path].default) app.use(modules[path].default)
} }
fetchConfig().then(res => { fetchConfig().then(res => {
// axios.defaults.baseURL = res.request.baseURL app.provide('global', {
$imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/',
version: res.version
})
localStorage.setItem('config', JSON.stringify(res)) localStorage.setItem('config', JSON.stringify(res))
if (res.vconsole) vConsole = new VConsole() // if (res.vconsole) vConsole = new VConsole()
app.use(store) app.use(store)
setupRouter(app) setupRouter(app)
router.isReady().then(() => { router.isReady().then(() => {
app.mount('#app') app.mount('#app')
}) })
}) })
// app.config.globalProperties.$axios = apis
// setupStore(app)
import exp from "constants";
/*
* @Description:
* @Author: huyue
* @Date: 2022-11-16 18:25:15
* @LastEditors: huyue
* @LastEditTime: 2022-11-23 09:52:44
*/
export interface Params {
activityId?: number | string;
}
export interface ActivitedInfo {
predictVolume: number
conversionRate: string
orderCount: number
activityName: string
shareCount: number
goodsCategory: number,
goodsName: string,
merchantName: string,
departmentOrderRank: departmentOrder[],
departmentRank: []
userOrderRank: userOrder[],
userRank: []
qrcodeUrl: string,
coverRate: string,
seriesRank: series[],
touchVisitorCount: [],
touchOrderCount: [],
touchConversionRate: [],
workWechatMomentsRate: string,
workWechatShareRate: string,
coverRateValue: coverRate[],
workWechatRate: string,
wechatMomentsRate: string,
wechatShareRate: string,
WechatRate: string,
targetStock: number
fansCount: number
customerAssetSummary: string
volumeRate: string
volume: number
browseCount: number
volumeWan: number
signMerchantShareCount: number
signMerchantBrowseCount: number
signMerchantVisitorCount: number
signMerchantOrderCount: number
signMerchantProduceCount: number
days: number,
produceReportSummary: number
}
export interface departmentOrder {
department: string,
orderCount: number,
volume: number
}
export interface userOrder {
avator: string
name: string
orderCount: number
volume: number
}
export interface series {
name: string;
rate: string;
}
export interface coverRate {
name: string
value: number
}
export interface Header {
name: string,
prop: string,
}
export interface DataInfo {
colorList: string[]
seriesRankColor: string[]
widthList: number[]
custemData: number[]
total: number
activitedInfo: Partial<ActivitedInfo>
activityInfo: Partial<ActivitedInfo>
departmentHeader: Header[]
orderHeader: Header[]
loading: boolean
}
...@@ -3,39 +3,44 @@ ...@@ -3,39 +3,44 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 15:26:23 * @Date: 2022-10-10 15:26:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-25 17:51:32 * @LastEditTime: 2022-11-21 10:11:12
--> -->
<template> <template>
<img class="bg" src="@/assets/images/goodNews/bg.png" alt="" /> <div class="bg-top-box">
<img class="bg-top" :src="getImageUrl('bg-top')" alt="" />
<div class="product-box x-center"> <div class="product-box x-center">
<div class="product-name"> <div class="product-name">
<img <img
class="icon-left product-icon" class="icon-left product-icon"
src="@/assets/images/goodNews/icon-left.png" :src="getImageUrl('icon-left')"
alt="" alt=""
/> />
<div>{{ data.storeInfo.goodsName }}</div> <div>{{ data.storeInfo!.goodsName }}</div>
<img <img
class="icon-right product-icon" class="icon-right product-icon"
src="@/assets/images/goodNews/icon-right.png" :src="getImageUrl('icon-right')"
alt="" alt=""
/> />
</div> </div>
</div> </div>
<div class="store-name x-center">{{ data.storeInfo.merchantName }}</div> <div class="store-name x-center">{{ data.storeInfo!.merchantName }}</div>
<img class="employee-avatar x-center" :src="data.storeInfo.avatar" alt="" /> <img
class="employee-avatar x-center"
:src="data.storeInfo!.avatar"
alt=""
/>
<div class="ribbon x-center"> <div class="ribbon x-center">
<div class="ribbon-content"> <div class="ribbon-content">
<img src="@/assets/images/goodNews/ribbon.png" alt="" /> <img :src="getImageUrl('ribbon')" alt="" />
<div class="ribbon-text x-center"> <div class="ribbon-text x-center">
<template v-if="data.storeInfo.type == 2"> <template v-if="data.storeInfo!.type == 2">
{{ data.storeInfo.department }} {{ data.storeInfo!.department }}
<span class="ribbon-name">{{ data.storeInfo.name }}</span> <span class="ribbon-name">{{ data.storeInfo!.name }}</span>
为团队助力 为团队助力
</template> </template>
<template v-if="data.storeInfo.type == 1"> <template v-if="data.storeInfo!.type == 1">
<div class="ribbon-other-text"> <div class="ribbon-other-text">
<span>{{ data.storeInfo.name }}</span <span>{{ data.storeInfo!.name }}</span
>为团队助力 >为团队助力
</div> </div>
</template> </template>
...@@ -44,10 +49,19 @@ ...@@ -44,10 +49,19 @@
</div> </div>
<div class="sales x-center"> <div class="sales x-center">
<div>第</div> <div>第</div>
<div class="number">{{ data.storeInfo.orderCount }}</div> <div class="number">{{ data.storeInfo!.orderCount }}</div>
<div>单</div> <div>单</div>
</div> </div>
<div class="table-box ranking x-center"> </div>
<div class="wrapper-bg">
<div class="wrapper-table">
<div class="table-bg">
<div class="wrapper-header">
<img src="@/assets/images/goodNews/ranking-header.png" alt="" />
</div>
<div class="wrapper-content">
<div class="table-box ranking">
<div class="table-header"> <div class="table-header">
<div class="table-th">排名</div> <div class="table-th">排名</div>
<div class="table-th">头像</div> <div class="table-th">头像</div>
...@@ -58,13 +72,15 @@ ...@@ -58,13 +72,15 @@
<div class="table-body"> <div class="table-body">
<div <div
class="table-item" class="table-item"
v-for="(item, index) in data.storeInfo.orderRankList" v-for="(item, index) in data.storeInfo!.orderRankList"
:key="index" :key="index"
> >
<template v-if="index < 3"> <template v-if="index < 3">
<div class="table-td first-ranking"> <div class="table-td first-ranking">
<img :src="getImageUrl(data.medals[index])" alt="" /> <img :src="getImageUrl(data.medals![index])" alt="" />
<span class="ranking-number" style="top: 44%">{{ index + 1 }}</span> <span class="ranking-number" style="top: 44%">{{
index + 1
}}</span>
</div> </div>
</template> </template>
<template v-else> <template v-else>
...@@ -82,35 +98,54 @@ ...@@ -82,35 +98,54 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="wrapper-footer">
<img src="@/assets/images/goodNews/ranking-footer.png" alt="" />
</div>
</div>
<div class="bg-footer">
<img
class="left-footer"
src="@/assets/images/goodNews/left-footer.jpg"
alt=""
/>
<img
class="right-footer"
src="@/assets/images/goodNews/right-footer.png"
alt=""
/>
</div>
</div>
</div>
<div class="long-ribbon">
<img src="@/assets/images/goodNews/long-ribbon.png" alt="" />
</div>
<div class="left-ribbon">
<img :src="getImageUrl('left-ribbon')" alt="" />
</div>
<div class="right-ribbon">
<img :src="getImageUrl('right-ribbon')" alt="" />
</div>
<div class="bottom-ribbon">
<img src="@/assets/images/goodNews/bottom-ribbon.png" alt="" />
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, onMounted } from "vue"; import { reactive, onMounted, inject } from "vue";
import req from "../../utils/request"; import req from "../../utils/request";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { DataInfo, Params } from "./interface";
const route = useRoute(); const route = useRoute();
interface params { // 获取全局对象
activityId?: number | string; const global: any = inject("global");
orderCode?: number | string;
} let query: Params = {};
type listStyle = { const data = reactive<Partial<DataInfo>>({
avator?: string;
department?: string;
name?: string;
orderCount?: number;
};
let query: params = {};
const data = reactive({
medals: ["first", "second", "third"], medals: ["first", "second", "third"],
storeInfo: { storeInfo: {},
merchantName: "",
goodsName: "",
orderCount: "",
name: "",
orderRankList: [],
department: "",
},
}); });
const getInfo = async () => { const getInfo = async () => {
...@@ -120,7 +155,8 @@ const getInfo = async () => { ...@@ -120,7 +155,8 @@ const getInfo = async () => {
); );
}; };
const getImageUrl = (name: any) => { const getImageUrl = (name: any) => {
return new URL(`./images/${name}.png`, import.meta.url).href; return new URL(`./goodNews/${name}.png?v=${global.version}`, global.$imgUrl)
.href;
}; };
onMounted(() => { onMounted(() => {
if (route.query) { if (route.query) {
......
/*
* @Description:
* @Author: huyue
* @Date: 2022-11-16 18:18:59
* @LastEditors: huyue
* @LastEditTime: 2022-11-21 10:11:27
*/
export interface OrderInfo {
avator: string;
department: string;
name: string;
orderCount: number;
}
export interface StoreInfo {
merchantName?: string;
goodsName?: string;
orderCount?: string;
name?: string;
orderRankList?: OrderInfo[];
department?: string;
avatar?: string;
type?: number;
}
export interface DataInfo {
medals: string[];
storeInfo: StoreInfo;
}
export interface Params {
activityId?: number | string;
orderCode?: number | string;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!