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 5f6c0b34
authored
Mar 13, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改众筹喜报样式
1 parent
e36e34a2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
361 additions
and
205 deletions
src/assets/images/goodNews/title-icon.png
src/assets/styles/goodNews.scss
src/utils/config.ts
src/views/crowdfunding/goodNews.vue
src/assets/images/goodNews/title-icon.png
0 → 100644
View file @
5f6c0b3
194 Bytes
src/assets/styles/goodNews.scss
View file @
5f6c0b3
$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%
);
.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
;
}
.
banner
{
.
product-name
{
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
30px
;
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
;
}
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
;
}
}
// 员工信息
.user-box
{
position
:
relative
;
.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%
;
height
:
719px
;
margin-top
:
-120px
;
background
:
url("@/assets/images/goodNews/user-bg.png")
no-repeat
;
background-size
:
100%
;
z-index
:
1
;
.user-avatar
{
position
:
absolute
;
width
:
160px
;
height
:
160px
;
border-radius
:
50%
;
top
:
216px
;
left
:
50%
;
transform
:
translateX
(
-50%
)
;
text-align
:
center
;
}
.employee-avatar
{
top
:
700px
;
width
:
124px
;
height
:
124px
;
border-radius
:
50%
;
}
.ribbon
{
top
:
775px
;
img
{
width
:
610px
;
height
:
70px
;
}
.user-info
{
position
:
absolute
;
top
:
420px
;
&
-content
{
position
:
relative
;
}
&
-text
{
display
:
flex
;
align-items
:
baseline
;
justify-content
:
center
;
width
:
100%
;
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
;
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);
}
}
.user-order
{
position
:
absolute
;
bottom
:
100px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
&
-other-text
{
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
;
span
{
display
:
inline-block
;
max-width
:
180px
;
font-weight
:
800
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
.ranking-box
{
box-sizing
:
border-box
;
width
:
calc
(
100%
-
100px
);
margin
:
40px
50px
0
;
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
));
.shop-title
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
26px
;
background-image
:
-webkit-linear-gradient
(
bottom
,
#e73507
,
#f6721b
,
#f57300
);
-webkit-background-clip
:text
;
-webkit-text-fill-color
:transparent
;
.icon-title
{
width
:
17px
;
height
:
10px
;
}
.shop-name
{
margin
:
0
15px
;
text-overflow
:ellipsis
;
overflow
:
hidden
;
white-space
:nowrap
;
}
}
&
-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
:
100%
;
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
:
20
px
;
padding-top
:
4
px
;
font-size
:
20px
;
min-height
:
300px
;
}
&
-header
{
display
:
flex
;
align-items
:
center
;
height
:
43px
;
color
:
#A95E4A
;
font-weight
:
500
;
border-radius
:
21
.5px
21
.5px
21
.5px
21
.5px
;
background
:
rgba
(
255
,
237
,
209
,
1
);
height
:
45px
;
opacity
:
0
.7
;
}
&
-th
,
&
-td
{
...
...
@@ -169,12 +161,14 @@ $good-color: #ffd2b2;
display
:
flex
;
align-items
:
center
;
height
:
40px
;
color
:
#A95E4A
;
// margin-bottom: 16px;
height
:
60px
;
border
:
1px
solid
rgba
(
253
,
231
,
207
,
1
);
margin-bottom
:
16px
;
background-color
:
#830e13
;
border-radius
:
20px
;
}
// &-item:nth-child(odd) {
// background-color: #830e13;
// border-radius: 20px;
// }
&
-avatar
{
width
:
30px
;
height
:
30px
;
...
...
@@ -209,7 +203,7 @@ $good-color: #ffd2b2;
.ranking-bg
{
width
:
26px
;
height
:
26px
;
background-color
:
#
DF9866
;
background-color
:
#
bf1c20
;
border-radius
:
50%
;
}
.ranking-number
{
...
...
@@ -217,7 +211,6 @@ $good-color: #ffd2b2;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
color
:
#fff
;
}
.bg-top-box
{
height
:
1060px
;
...
...
@@ -226,9 +219,118 @@ $good-color: #ffd2b2;
height
:
100%
;
}
}
.icon-bottom
{
.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%
;
height
:
115px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
\ No newline at end of file
src/utils/config.ts
View file @
5f6c0b3
...
...
@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-
07 09:31:38
* @LastEditTime: 2023-03-
13 14:37:00
*/
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://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
())
}
// const $mockConfig = await fetchConfig()
export
default
fetchConfig
\ No newline at end of file
src/views/crowdfunding/goodNews.vue
View file @
5f6c0b3
...
...
@@ -3,108 +3,162 @@
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditTime: 2023-0
2-15 14:43:24
* @LastEditTime: 2023-0
3-13 15:17:17
-->
<
template
>
<div
class=
"wrapper-good"
>
<div
class=
"banner"
>
<img
:src=
"getImageUrl('banner')"
alt=
""
/>
<div
class=
"header-box"
>
<div
class=
"acitvity-box"
>
<div
class=
"activity-name"
>
{{
data
.
storeInfo
!
.
activityName
}}
</div>
</div>
<div
class=
"merchant-name"
>
{{
data
.
storeInfo
!
.
merchantName
}}
</div>
<div
class=
"bg-top-box"
>
<img
class=
"bg-top"
:src=
"getImageUrl('bg-top')"
alt=
""
/>
<div
class=
"product-box x-center"
>
<div
class=
"product-name"
>
<img
class=
"icon-left product-icon"
:src=
"getImageUrl('icon-left')"
alt=
""
/>
<div>
{{
data
.
storeInfo
!
.
activityName
}}
</div>
<img
class=
"icon-right product-icon"
:src=
"getImageUrl('icon-right')"
alt=
""
/>
</div>
</div>
<div
class=
"user-box"
>
<img
class=
"user-avatar"
:src=
"data.storeInfo!.avatar || getImageUrl('icon-avatar')"
alt=
""
/>
<div
class=
"user-info"
>
<span
v-if=
"data.storeInfo!.type == 2"
>
{{
data
.
storeInfo
!
.
department
}}
</span>
<div
class=
"user-name"
>
{{
data
.
storeInfo
!
.
name
}}
</div>
为团队助力
</div>
<div
class=
"user-order"
>
第
<div
class=
"order-value"
>
{{
data
.
storeInfo
!
.
orderCount
}}
</div>
单
<div
class=
"store-name x-center"
>
{{
data
.
storeInfo
!
.
merchantName
}}
</div>
<img
class=
"employee-avatar x-center"
:src=
"data.storeInfo!.avatar || getImageUrl('icon-avatar')"
alt=
""
/>
<div
class=
"ribbon x-center"
>
<div
class=
"ribbon-content"
>
<img
:src=
"getImageUrl('ribbon')"
alt=
""
/>
<div
class=
"ribbon-text x-center"
>
<template
v-if=
"data.storeInfo!.type == 2"
>
{{
data
.
storeInfo
!
.
department
}}
<span
class=
"ribbon-name"
>
{{
data
.
storeInfo
!
.
name
}}
</span>
为团队助力
</
template
>
<
template
v-if=
"data.storeInfo!.type == 1"
>
<div
class=
"ribbon-other-text"
>
<span>
{{
data
.
storeInfo
!
.
name
}}
</span
>
为团队助力
</div>
</
template
>
</div>
</div>
</div>
<div
class=
"sales x-center"
>
<div>
第
</div>
<div
class=
"number"
>
{{ data.storeInfo!.orderCount }}
</div>
<div>
单
</div>
</div>
</div>
<div
class=
"wrapper-bg"
>
<div
class=
"
ranking-box
"
class=
"
wrapper-table
"
v-for=
"(i, ind) in data.storeInfo!.orderRankList"
:key=
"ind"
>
<div
class=
"ranking-list"
>
<div
class=
"table-bg"
>
<div
class=
"wrapper-header"
>
<img
src=
"@/assets/images/goodNews/ranking-header.png"
alt=
""
/>
</div>
<div
class=
"shop-title"
>
<img
class=
"icon-title"
:src=
"getImageUrl('
icon-title
')"
alt=
""
/>
<img
class=
"icon-title"
:src=
"getImageUrl('
title-icon
')"
alt=
""
/>
<div
class=
"shop-name"
>
{{ i.goodsName }}
</div>
<img
class=
"icon-title"
:src=
"getImageUrl('
icon-title
')"
alt=
""
/>
<img
class=
"icon-title"
:src=
"getImageUrl('
title-icon
')"
alt=
""
/>
</div>
<div
class=
"table-box ranking"
>
<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
class=
"table-body"
>
<div
class=
"table-item"
v-for=
"(j, index) in i.rank"
: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=
"wrapper-content"
>
<div
class=
"table-box ranking"
>
<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
class=
"table-body"
>
<div
class=
"table-item"
v-for=
"(item, index) in i.rank"
: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"
>
<span
class=
"ranking-bg"
></span>
<span
class=
"ranking-number"
>
{{
index
+
1
}}
</span>
<img
class=
"table-avatar"
:src=
"item.avator || getImageUrl('icon-avatar')"
alt=
""
/>
</div>
</
template
>
<div
class=
"table-td"
>
<img
class=
"table-avatar"
:src=
"j.avator || getImageUrl('icon-avatar')"
alt=
""
/>
<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
class=
"table-td"
>
{{ j.department }}
</div>
<div
class=
"table-td"
>
{{ j.name }}
</div>
<div
class=
"table-td sales-number"
>
{{ j.orderCount }}
</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>
<img
class=
"icon-bottom"
:src=
"getImageUrl('icon-bottom')"
alt=
""
/>
</div>
</template>
<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>
<div
class=
"logo x-center"
>
<img
:src=
"getImageUrl('logo', 'common')"
alt=
""
/>
</div>
</template>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
onMounted
,
inject
}
from
"vue"
;
import
{
req
}
from
"../../utils/request"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
DataInfo
,
Params
}
from
"./interface"
;
const
route
=
useRoute
();
// 获取全局对象
const
global
:
any
=
inject
(
"global"
);
let
query
:
Params
=
{};
const
data
=
reactive
<
Partial
<
DataInfo
>>
({
medals
:
[
"first"
,
"second"
,
"third"
],
storeInfo
:
{},
});
const
getInfo
=
async
()
=>
{
data
.
storeInfo
=
await
req
(
"scrm.api.shopmall.activity.good.report.param"
,
...
...
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