Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
2
20250711_TBGuardingLife
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
20250711_TBGuardingLife
Commits
c836a912
Commit
c836a912
authored
Jul 16, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
d521ba70
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
4 deletions
+47
-4
resultpage.jsx
src/pages/resultpage/resultpage.jsx
+29
-2
resultpage.less
src/pages/resultpage/resultpage.less
+17
-2
index.js
src/store/index.js
+1
-0
No files found.
src/pages/resultpage/resultpage.jsx
View file @
c836a912
...
...
@@ -12,6 +12,7 @@ import shareStore from '@src/store/share';
import
{
sensorMdClick
,
sensorMdExpouse
}
from
'@src/utils/sensorMd'
;
import
{
hideLoading
,
showLoading
}
from
'@spark/ui'
;
import
{
htmlShot
}
from
'@spark/utils'
;
import
{
RES_PATH
}
from
"../../../sparkrc"
;
@
observer
class
Resultpage
extends
React
.
Component
{
...
...
@@ -61,15 +62,41 @@ class Resultpage extends React.Component {
render
()
{
const
{
poster
}
=
this
.
state
;
const
{
score
}
=
this
.
props
;
const
{
score
,
funds
}
=
this
.
props
;
const
info
=
{
1
:
{
bg
:
RES_PATH
+
"resultPage/负债.jpg"
,
color
:
"#0075f5"
,
},
2
:
{
bg
:
RES_PATH
+
"resultPage/小康.jpg"
,
color
:
"#ed4300"
,
},
3
:
{
bg
:
RES_PATH
+
"resultPage/中产.jpg"
,
color
:
"#7c28ec"
,
},
4
:
{
bg
:
RES_PATH
+
"resultPage/富有.jpg"
,
color
:
"#f58400"
,
},
}[
score
]
return
<
div
className=
"Resultpage"
ref=
{
r
=>
this
.
pageRef
=
r
}
>
<
div
className=
"bg"
/>
<
div
className=
"bg"
style=
{
{
backgroundImage
:
`url(${info.bg})`
}
}
/>
<
div
className=
"poster"
ref=
{
r
=>
this
.
shotRef
=
r
}
>
<
span
className=
"posterBg"
></
span
>
</
div
>
{
poster
&&
<
img
className=
"poster_img"
src=
{
poster
}
style=
{
{
opacity
:
0
}
}
alt=
""
/>
}
<
div
className=
"funds"
style=
{
{
color
:
info
.
color
}
}
>
{
funds
*
10000
}
<
span
>
元
</
span
>
</
div
>
<
Button
className=
"product_btn"
onClick=
{
this
.
openProduct
}
></
Button
>
<
span
className=
"tips"
>
长按保存海报分享
</
span
>
...
...
src/pages/resultpage/resultpage.less
View file @
c836a912
...
...
@@ -52,9 +52,24 @@
.poster_img {
width: 750px;
height: 1624px;
left: 0px;
top: 0px;
left: 0;
top: 0;
position: absolute;
}
.funds {
position: absolute;
left: 310px;
top: 347px;
font-size: 56px;
font-weight: bold;
color: #f58400;
span {
margin-left: 5px;
color: black;
font-size: 30px;
}
}
...
...
src/store/index.js
View file @
c836a912
...
...
@@ -121,6 +121,7 @@ const store = makeAutoObservable({
if
(
success
)
{
this
.
changePage
(
PAGE_MAP
.
RESU_PAGE
,
{
...
data
,
funds
:
param
.
resultAmount
,
score
:
param
.
score
,
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment