Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d8b4e4c
authored
Oct 19, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
fixed
2 parents
2c09aa13
8a7b2652
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
93 deletions
src/assets/styles/activity.scss
src/assets/styles/goodNews.scss
src/components/ReportTable/index.vue
src/views/crowdfunding/activiting.vue
src/views/crowdfunding/goodNews.vue
src/assets/styles/activity.scss
View file @
8d8b4e4
...
@@ -504,6 +504,9 @@
...
@@ -504,6 +504,9 @@
height
:
100%
;
height
:
100%
;
transform
:
skewX
(
15deg
);
transform
:
skewX
(
15deg
);
min-width
:
60px
;
min-width
:
60px
;
&
:last-child
{
min-width
:
105px
;
}
.funnel-value
{
.funnel-value
{
display
:
inline-flex
;
display
:
inline-flex
;
justify-content
:
center
;
justify-content
:
center
;
...
@@ -535,26 +538,32 @@
...
@@ -535,26 +538,32 @@
}
}
.arrow-left
{
.arrow-left
{
position
:
absolute
;
position
:
absolute
;
top
:
-
10
px
;
top
:
-
3
px
;
left
:
-3
0
px
;
left
:
-3
5
px
;
width
:
90px
;
width
:
90px
;
// }
transform
:
skewX
(
-3deg
);
img
{
img
{
width
:
81
px
;
width
:
70
px
;
height
:
2
80
px
;
height
:
2
04
px
;
}
}
}
}
.arrow-right
{
.arrow-right
{
position
:
absolute
;
position
:
absolute
;
<<<<<<<
HEAD
top
:
-19px
;
top
:
-19px
;
right
:
10px
;
right
:
10px
;
background-color
:
#fff6ea
;
background-color
:
#fff6ea
;
=======
top
:
-14px
;
right
:
-20px
;
background-color
:
#FFF6EA
;
>>>>>>>
8a7b26527bbe747a88f47e040a820b4051adbc4c
transform
:
skewX
(
-15deg
);
transform
:
skewX
(
-15deg
);
width
:
6
5px
;
width
:
7
5px
;
img
{
img
{
margin-left
:
2
0px
;
margin-left
:
1
0px
;
width
:
1
4
px
;
width
:
1
3
px
;
height
:
2
90
px
;
height
:
2
14
px
;
}
}
}
}
}
}
...
...
src/assets/styles/goodNews.scss
View file @
8d8b4e4
...
@@ -144,10 +144,15 @@ $good-color: #ffd2b2;
...
@@ -144,10 +144,15 @@ $good-color: #ffd2b2;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
&
-td
{
&
-td
{
display
:
flex
;
&
:first-child
{
align-items
:
center
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
justify-content
:
center
;
}
position
:
relative
;
position
:
relative
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
}
.sales-number
{
.sales-number
{
...
...
src/components/ReportTable/index.vue
View file @
8d8b4e4
...
@@ -3,12 +3,19 @@
...
@@ -3,12 +3,19 @@
* @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-1
4 15:24:50
* @LastEditTime: 2022-10-1
9 18:03:38
-->
-->
<
template
>
<
template
>
<div
class=
"table-box ranking"
>
<div
class=
"table-box ranking"
>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<div
class=
"table-th"
v-for=
"(item, index) in data.tableHeader"
:key=
"index"
>
{{
item
.
name
}}
</div>
<div
class=
"table-th"
v-for=
"(item, index) in data.tableHeader"
:key=
"index"
:style=
"
{ width: `${100 / data.column}%` }"
>
{{
item
.
name
}}
</div>
</div>
</div>
<div
class=
"table-body"
>
<div
class=
"table-body"
>
<div
<div
...
@@ -19,23 +26,30 @@
...
@@ -19,23 +26,30 @@
<template
v-for=
"(it, idx) in data.tableHeader"
:key=
"idx"
>
<template
v-for=
"(it, idx) in data.tableHeader"
:key=
"idx"
>
<template
v-if=
"it.prop === 'index'"
>
<template
v-if=
"it.prop === 'index'"
>
<template
v-if=
"index
< 3
"
>
<template
v-if=
"index
< 3
"
>
<div
class=
"table-td first-ranking"
>
<div
class=
"table-td first-ranking"
:style=
"
{ width: `${100 / data.column}%` }"
>
<img
<img
:src=
"`src/assets/images/goodNews/$
{data.medals[index]}.png`"
:src=
"`src/assets/images/goodNews/$
{data.medals[index]}.png`"
alt=""
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
>
<div
class=
"table-td"
>
<div
class=
"table-td"
:style=
"
{ width: `${100 / data.column}%` }"
>
<span
class=
"ranking-bg"
></span>
<span
class=
"ranking-bg"
></span>
<span
class=
"ranking-number"
>
{{
index
+
1
}}
</span>
<span
class=
"ranking-number"
>
{{
index
+
1
}}
</span>
</div>
</div>
</
template
>
</
template
>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<div
class=
"table-td"
>
{{
item
[
it
.
prop
]
}}
</div>
<div
class=
"table-td"
:style=
"
{ width: `${100 / data.column}%` }">
{{
item
[
it
.
prop
]
}}
</div>
</
template
>
</
template
>
</template>
</template>
<!-- <div class="table-td">{{ item.departement }}</div>
<!-- <div class="table-td">{{ item.departement }}</div>
...
@@ -60,78 +74,15 @@ interface Props {
...
@@ -60,78 +74,15 @@ interface Props {
export
default
defineComponent
({
export
default
defineComponent
({
name
:
"ReportTable"
,
name
:
"ReportTable"
,
props
:
[
'tableData'
,
'tableHeader'
],
props
:
[
"tableData"
,
"tableHeader"
],
setup
(
props
:
Props
)
{
setup
(
props
:
Props
)
{
console
.
log
(
props
.
tableData
);
console
.
log
(
props
.
tableData
);
console
.
log
(
props
.
tableHeader
)
console
.
log
(
props
.
tableHeader
)
;
const
data
=
reactive
({
const
data
=
reactive
({
tableData
:
props
.
tableData
,
tableData
:
props
.
tableData
,
tableHeader
:
props
.
tableHeader
,
tableHeader
:
props
.
tableHeader
,
// tableData: [
// {
// avatar:
// "https://tse3-mm.cn.bing.net/th/id/OIP-C.B6pZ8N_dG3MNAYppM-zX0AHaEo?pid=ImgDet&rs=1",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// {
// avatar: "",
// departement: "销售部",
// name: "曾详集",
// salesNumber: 19,
// },
// ],
medals
:
[
"first"
,
"second"
,
"third"
],
medals
:
[
"first"
,
"second"
,
"third"
],
column
:
Object
.
values
(
props
.
tableHeader
).
length
column
:
Object
.
values
(
props
.
tableHeader
).
length
,
});
});
return
{
return
{
data
,
data
,
...
@@ -159,7 +110,7 @@ export default defineComponent({
...
@@ -159,7 +110,7 @@ export default defineComponent({
}
}
&
-th
,
&
-th
,
&
-td
{
&
-td
{
width
:
20%
;
//
width
:
20%
;
text-align
:
center
;
text-align
:
center
;
}
}
&
-body
{
&
-body
{
...
@@ -172,14 +123,21 @@ export default defineComponent({
...
@@ -172,14 +123,21 @@ export default defineComponent({
border-bottom
:
1px
solid
rgba
(
255
,
142
,
67
,
0.15
);
border-bottom
:
1px
solid
rgba
(
255
,
142
,
67
,
0.15
);
}
}
&
-td
{
&
-td
{
display
:
flex
;
&:first-child
{
align-items
:
center
;
display
:
flex
;
justify-content
:
center
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
position
:
relative
;
position
:
relative
;
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333333
;
color
:
#333333
;
line-height
:
18px
;
//
line-height
:
18px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
}
.first-ranking
{
.first-ranking
{
...
...
src/views/crowdfunding/activiting.vue
View file @
8d8b4e4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @Date: 2022-10-11 17:41:38
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-10-19 1
1:28:05
* @LastEditTime: 2022-10-19 1
7:49:13
-->
-->
<
template
>
<
template
>
<!-- 战报产品 -->
<!-- 战报产品 -->
...
@@ -477,7 +477,7 @@ const getInfo = async () => {
...
@@ -477,7 +477,7 @@ const getInfo = async () => {
let
index
=
1
;
let
index
=
1
;
for
(
let
i
in
rankingList
)
{
for
(
let
i
in
rankingList
)
{
console
.
log
(
i
);
console
.
log
(
i
);
if
(
res
[
i
].
length
)
{
if
(
res
[
i
]
&&
res
[
i
]
.
length
)
{
rankingList
[
i
]
=
index
;
rankingList
[
i
]
=
index
;
index
++
;
index
++
;
}
}
...
...
src/views/crowdfunding/goodNews.vue
View file @
8d8b4e4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @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-1
7 15:09:3
3
* @LastEditTime: 2022-10-1
9 18:05:5
3
-->
-->
<
template
>
<
template
>
<img
class=
"bg"
src=
"@/assets/images/goodNews/bg.png"
alt=
""
/>
<img
class=
"bg"
src=
"@/assets/images/goodNews/bg.png"
alt=
""
/>
...
@@ -38,7 +38,9 @@
...
@@ -38,7 +38,9 @@
<span>
为团队助力
</span>
<span>
为团队助力
</span>
</
template
>
</
template
>
<
template
v-if=
"data.storeInfo.type == 1"
>
<
template
v-if=
"data.storeInfo.type == 1"
>
<div
class=
"ribbon-other-text"
>
{{
data
.
storeInfo
.
name
}}
为团队助力
</div>
<div
class=
"ribbon-other-text"
>
{{
data
.
storeInfo
.
name
}}
为团队助力
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment