Commit 0faea79b by 胡悦

Merge branch 'v3.0.2_fix' into v3.1.1

2 parents befaa8bb aef21367
@import './common.scss'; $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("#{$imgUrl}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;
...@@ -112,6 +113,7 @@ $good-color: #ffd2b2; ...@@ -112,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;
...@@ -138,8 +140,10 @@ $good-color: #ffd2b2; ...@@ -138,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;
...@@ -210,4 +214,104 @@ $good-color: #ffd2b2; ...@@ -210,4 +214,104 @@ $good-color: #ffd2b2;
top: 50%; top: 50%;
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
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-11-16 17:18:38 * @LastEditTime: 2022-11-21 10:08:12
*/ */
import { createApp } from 'vue' import { createApp } from 'vue'
import store from './store' import store from './store'
...@@ -18,7 +18,7 @@ import 'assets/styles/common.scss' ...@@ -18,7 +18,7 @@ import 'assets/styles/common.scss'
const app = createApp(App) const app = createApp(App)
let vConsole: object = {} let vConsole: object = {}
import { components } from './libs/vant' import { components } from './libs/vant'
components.forEach(component => app.use(component)); components.forEach(component => app.use(component));
// 自动注册全局组件 // 自动注册全局组件
const modules = import.meta.globEager('./components/**/index.ts') const modules = import.meta.globEager('./components/**/index.ts')
for (const path in modules) { for (const path in modules) {
...@@ -34,7 +34,7 @@ fetchConfig().then(res => { ...@@ -34,7 +34,7 @@ fetchConfig().then(res => {
app.use(store) app.use(store)
setupRouter(app) setupRouter(app)
router.isReady().then(() => { router.isReady().then(() => {
app.mount('#app') app.mount('#app')
}) })
}) })
...@@ -3,85 +3,133 @@ ...@@ -3,85 +3,133 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 15:26:23 * @Date: 2022-10-10 15:26:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-11-16 18:23:40 * @LastEditTime: 2022-11-21 10:11:12
--> -->
<template> <template>
<img class="bg" :src="getImageUrl('bg')" alt="" /> <div class="bg-top-box">
<div class="product-box x-center"> <img class="bg-top" :src="getImageUrl('bg-top')" alt="" />
<div class="product-name"> <div class="product-box x-center">
<img <div class="product-name">
class="icon-left product-icon" <img
:src="getImageUrl('icon-left')" class="icon-left product-icon"
alt="" :src="getImageUrl('icon-left')"
/> alt=""
<div>{{ data.storeInfo!.goodsName }}</div> />
<img <div>{{ data.storeInfo!.goodsName }}</div>
class="icon-right product-icon" <img
:src="getImageUrl('icon-right')" class="icon-right product-icon"
alt="" :src="getImageUrl('icon-right')"
/> 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
<img class="employee-avatar x-center" :src="data.storeInfo!.avatar" alt="" /> class="employee-avatar x-center"
<div class="ribbon x-center"> :src="data.storeInfo!.avatar"
<div class="ribbon-content"> alt=""
<img :src="getImageUrl('ribbon')" alt="" /> />
<div class="ribbon-text x-center"> <div class="ribbon x-center">
<template v-if="data.storeInfo!.type == 2"> <div class="ribbon-content">
{{ data.storeInfo!.department }} <img :src="getImageUrl('ribbon')" alt="" />
<span class="ribbon-name">{{ data.storeInfo!.name }}</span> <div class="ribbon-text x-center">
为团队助力 <template v-if="data.storeInfo!.type == 2">
</template> {{ data.storeInfo!.department }}
<template v-if="data.storeInfo!.type == 1"> <span class="ribbon-name">{{ data.storeInfo!.name }}</span>
<div class="ribbon-other-text"> 为团队助力
<span>{{ data.storeInfo!.name }}</span </template>
>为团队助力 <template v-if="data.storeInfo!.type == 1">
</div> <div class="ribbon-other-text">
</template> <span>{{ data.storeInfo!.name }}</span
>为团队助力
</div>
</template>
</div>
</div> </div>
</div> </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 class="table-box ranking x-center">
<div class="table-header">
<div class="table-th">排名</div>
<div class="table-th">头像</div>
<div class="table-th">部门</div>
<div class="table-th">姓名</div>
<div class="table-th">单量</div>
</div> </div>
<div class="table-body"> </div>
<div
class="table-item" <div class="wrapper-bg">
v-for="(item, index) in data.storeInfo!.orderRankList" <div class="wrapper-table">
:key="index" <div class="table-bg">
> <div class="wrapper-header">
<template v-if="index < 3"> <img src="@/assets/images/goodNews/ranking-header.png" alt="" />
<div class="table-td first-ranking"> </div>
<img :src="getImageUrl(data.medals![index])" alt="" /> <div class="wrapper-content">
<span class="ranking-number" style="top: 44%">{{ index + 1 }}</span> <div class="table-box ranking">
</div> <div class="table-header">
</template> <div class="table-th">排名</div>
<template v-else> <div class="table-th">头像</div>
<div class="table-td"> <div class="table-th">部门</div>
<span class="ranking-bg"></span> <div class="table-th">姓名</div>
<span class="ranking-number">{{ index + 1 }}</span> <div class="table-th">单量</div>
</div>
<div class="table-body">
<div
class="table-item"
v-for="(item, index) in data.storeInfo!.orderRankList"
:key="index"
>
<template v-if="index < 3">
<div class="table-td first-ranking">
<img :src="getImageUrl(data.medals![index])" alt="" />
<span class="ranking-number" style="top: 44%">{{
index + 1
}}</span>
</div>
</template>
<template v-else>
<div class="table-td">
<span class="ranking-bg"></span>
<span class="ranking-number">{{ index + 1 }}</span>
</div>
</template>
<div class="table-td">
<img class="table-avatar" :src="item.avator" alt="" />
</div>
<div class="table-td">{{ item.department }}</div>
<div class="table-td">{{ item.name }}</div>
<div class="table-td sales-number">{{ item.orderCount }}</div>
</div>
</div>
</div> </div>
</template>
<div class="table-td">
<img class="table-avatar" :src="item.avator" alt="" />
</div> </div>
<div class="table-td">{{ item.department }}</div> <div class="wrapper-footer">
<div class="table-td">{{ item.name }}</div> <img src="@/assets/images/goodNews/ranking-footer.png" alt="" />
<div class="table-td sales-number">{{ item.orderCount }}</div> </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>
</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>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-11-16 18:18:59 * @Date: 2022-11-16 18:18:59
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-11-16 18:24:04 * @LastEditTime: 2022-11-21 10:11:27
*/ */
export interface OrderInfo { export interface OrderInfo {
avator: string; avator: string;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!