Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
华
华夏模拟理财_20250701
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
华夏模拟理财_20250701
Commits
72fbaab1
Commit
72fbaab1
authored
Jul 07, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:sparkprojects/HuaXiaSimulate_20250701
parents
e1bd1a85
97f18279
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
45 additions
and
20 deletions
+45
-20
index.ts
mock/index.ts
+2
-2
App.tsx
src/App.tsx
+1
-1
index.ts
src/api/index.ts
+1
-1
ResPage.module.less
src/pages/ResPage/ResPage.module.less
+3
-1
ResPage.tsx
src/pages/ResPage/ResPage.tsx
+23
-11
BuyPanel.less
src/panels/BuyPanel/BuyPanel.less
+1
-1
NoPrizePanel.less
src/panels/NoPrizePanel/NoPrizePanel.less
+1
-1
PrizePanel.less
src/panels/PrizePanel/PrizePanel.less
+1
-1
SellPanel.less
src/panels/SellPanel/SellPanel.less
+1
-1
ResStore.ts
src/store/ResStore.ts
+11
-0
No files found.
mock/index.ts
View file @
72fbaab1
...
...
@@ -25,7 +25,7 @@ export default [
"test_config_02"
:
"111"
,
// 规则长图
"ruleImg"
:
'//yun.duiba.com.cn/polaris/bg.18539c61e0103e01a339dd268558b2559ab178ba.png'
,
shareInfo
:
[
{
"title"
:
'normal'
,
...
...
@@ -59,7 +59,7 @@ export default [
},
},
{
url
:
'/
common/
records.do'
,
url
:
'/records.do'
,
response
:
({
query
})
=>
{
return
{
"code"
:
"code"
,
...
...
src/App.tsx
View file @
72fbaab1
...
...
@@ -30,7 +30,7 @@ class App extends Component {
const
defaultPage
=
{
myPrize
:
MyPrize
,
// TODO 举例子 新宿台奖品页
index
:
HomePage
,
}[
skinId
]
||
Home
Page
;
}[
skinId
]
||
Res
Page
;
PageCtrl
.
changePage
(
defaultPage
);
}
...
...
src/api/index.ts
View file @
72fbaab1
...
...
@@ -26,7 +26,7 @@ const API = generateAPI({
},
// 奖品记录
records
:
"
common/
records.do"
,
records
:
"records.do"
,
// 红包补领
redpacket
:
"common/moneyReissue.do"
,
...
...
src/pages/ResPage/ResPage.module.less
View file @
72fbaab1
...
...
@@ -139,8 +139,8 @@
position: absolute;
left: 19px;
top: 630px;
bottom: 0;
width: 713px;
height: 930px;
overflow-x: hidden;
overflow-y: auto;
...
...
@@ -163,9 +163,11 @@
font-size: 30px;
color: #262626;
position: absolute;
width: 350px;
left: 164px;
top: 39px;
font-weight: bold;
.lineClamp1();
}
.itemDate {
...
...
src/pages/ResPage/ResPage.tsx
View file @
72fbaab1
...
...
@@ -7,6 +7,7 @@ import TurnTable from "@/pages/ResPage/TurnTable/TurnTable.tsx";
import
resStore
from
"@/store/ResStore.ts"
;
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl.tsx"
;
import
HomePage
from
"@/pages/HomePage/HomePage.tsx"
;
import
{
dateFormatter
}
from
"@/utils/utils.ts"
;
@
observer
class
ResPage
extends
React
.
Component
<
any
,
any
>
{
...
...
@@ -27,10 +28,18 @@ class ResPage extends React.Component<any, any> {
this
.
setState
({
tab
,
});
}
clickItem
=
(
item
)
=>
{
if
(
item
.
url
)
{
location
.
href
=
item
.
url
}
else
{
location
.
href
=
`/aaw/projectx/takePrize?projectOrderNo=
${
item
.
id
}
`
}
}
render
()
{
const
{
tab
}
=
this
.
state
;
const
{
titleImg
,
interval
,
cycle
,
profit
,
remainDrawTime
,
prizeInfo
,
amount
}
=
resStore
.
info
;
const
{
prizeList
,
info
}
=
resStore
;
const
{
titleImg
,
interval
,
cycle
,
profit
,
remainDrawTime
,
prizeInfo
,
amount
}
=
info
;
const
tabCls
=
classNames
(
styles
.
tab
,
{
[
styles
.
tab1
]:
tab
===
1
,
...
...
@@ -64,17 +73,20 @@ class ResPage extends React.Component<any, any> {
</
div
>
<
div
style=
{
{
display
:
tab
==
2
?
"block"
:
"none"
}
}
>
<
div
className=
{
styles
.
listNone
}
></
div
>
<
div
className=
{
styles
.
prizeList
}
style=
{
{
display
:
tab
==
2
?
"block"
:
"none"
}
}
>
{
new
Array
(
100
).
fill
(
1
).
map
((
_
,
index
)
=>
{
return
<
div
className=
{
styles
.
prizeItem
}
>
<
img
className=
{
styles
.
itemImg
}
/>
<
div
className=
{
styles
.
itemName
}
>
奖品名称
</
div
>
<
div
className=
{
styles
.
itemDate
}
>
2024-09-22 00:02:56 获得
</
div
>
<
Button
className=
{
styles
.
itemBtn
}
/>
{
prizeList
?.
length
?
<
div
className=
{
styles
.
prizeList
}
style=
{
{
display
:
tab
==
2
?
"block"
:
"none"
}
}
>
{
prizeList
?.
map
((
item
,
index
)
=>
{
return
<
div
className=
{
styles
.
prizeItem
}
>
<
img
className=
{
styles
.
itemImg
}
src=
{
item
.
extra
.
icon
}
/>
<
div
className=
{
styles
.
itemName
}
>
{
item
.
extra
.
name
}
</
div
>
<
div
className=
{
styles
.
itemDate
}
>
{
dateFormatter
(
item
.
gmtCreate
,
"yyyy-MM-dd hh:mm:ss 获得"
)
}
</
div
>
<
Button
className=
{
styles
.
itemBtn
}
onClick=
{
()
=>
this
.
clickItem
(
item
)
}
/>
</
div
>
})
}
</
div
>
})
}
</
div
>
:
<
div
className=
{
styles
.
listNone
}
></
div
>
}
</
div
>
<
Button
className=
{
styles
.
backBtn
}
onClick=
{
this
.
clickBack
}
/>
...
...
src/panels/BuyPanel/BuyPanel.less
View file @
72fbaab1
...
...
@@ -2,7 +2,7 @@
.BuyPanel {
width: 750px;
height: 1
00%
;
height: 1
624px
;
left: 0;
top: 0;
position: absolute;
...
...
src/panels/NoPrizePanel/NoPrizePanel.less
View file @
72fbaab1
...
...
@@ -2,7 +2,7 @@
.NoPrizePanel {
width: 750px;
height: 1
00%
;
height: 1
624px
;
left: 0;
top: 0;
position: absolute;
...
...
src/panels/PrizePanel/PrizePanel.less
View file @
72fbaab1
...
...
@@ -2,7 +2,7 @@
.PrizePanel {
width: 750px;
height: 1
00%
;
height: 1
624px
;
left: 0;
top: 0;
position: absolute;
...
...
src/panels/SellPanel/SellPanel.less
View file @
72fbaab1
...
...
@@ -2,7 +2,7 @@
.SellPanel {
width: 750px;
height: 1
00%
;
height: 1
624px
;
left: 0;
top: 0;
position: absolute;
...
...
src/store/ResStore.ts
View file @
72fbaab1
...
...
@@ -18,7 +18,18 @@ class ResStore {
prizeInfo
:
[],
};
prizeList
=
[];
async
updatePrizeList
()
{
const
{
success
,
data
}
=
await
API
.
records
({
ignoreSp
:
true
,
});
if
(
!
success
)
return
;
this
.
prizeList
=
data
;
}
async
updateInfo
()
{
this
.
updatePrizeList
();
const
{
success
,
data
}
=
await
API
.
drawIndex
();
if
(
!
success
)
return
;
this
.
info
=
data
;
...
...
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