Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
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
wildfirecode13
icbcRPG
Commits
98e3c4a5
Commit
98e3c4a5
authored
Dec 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
9b6fd952
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
8 deletions
+20
-8
index.js
project/mock/e-family/index.js
+1
-1
prize.jsx
project/src/components/prize/prize.jsx
+1
-0
sign.jsx
project/src/components/sign/sign.jsx
+3
-1
main3.jsx
project/src/pages/main3/main3.jsx
+6
-6
config.js
project/src/util/config.js
+6
-0
enum.js
project/src/util/enum.js
+3
-0
No files found.
project/mock/e-family/index.js
View file @
98e3c4a5
...
...
@@ -4,7 +4,7 @@ export const homeInfo = {
{
"canUpdateNickName"
:
false
,
"figures"
:
[{
"figureId"
:
"1"
},
{
"figureId"
:
"2"
},
{
"figureId"
:
"3"
}],
"newUser"
:
1
,
"newUser"
:
0
,
"userInfo"
:
{
"figureId"
:
"3"
,
"joyBeans"
:
10100
,
"nickName"
:
"13"
}
},
"message"
:
null
,
...
...
project/src/components/prize/prize.jsx
View file @
98e3c4a5
...
...
@@ -14,6 +14,7 @@ class Comprize extends Component {
onCloseCustom
=
()
=>
{
// Aup.clear()
this
.
props
.
closeWin
()
}
render
()
{
...
...
project/src/components/sign/sign.jsx
View file @
98e3c4a5
...
...
@@ -7,6 +7,8 @@ import { getHomeInfo } from '../../dataCenter';
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
{
debounce
}
from
'../../ui'
;
import
'./sign.less'
;
import
ViewCtrl
from
"../../util/viewCtrl"
;
import
Enum
from
'../../util/enum'
;
class
Sign
extends
Component
{
constructor
(
props
)
{
...
...
@@ -34,7 +36,7 @@ class Sign extends Component {
getHomeInfo
();
if
(
res
.
data
.
type
!==
'joyBean'
)
{
// Aup.show('PrizeRule', res.data, this
);
ViewCtrl
.
showWin
(
Enum
.
Com
.
Comprize
,
res
.
data
);
}
else
{
this
.
props
.
closeWin
();
Toast
(
`恭喜你成功领取
${
res
.
data
.
awardName
}
`
)
...
...
project/src/pages/main3/main3.jsx
View file @
98e3c4a5
...
...
@@ -53,13 +53,12 @@ class Main3 extends Component {
}
onClick_userinfo
=
()
=>
{
// Aup.show('Userinfo', {figureId:this.state.figureId}, this);
ViewCtrl
.
showWin
(
Enum
.
Com
.
Userinfo
,
{
figureId
:
this
.
state
.
figureId
});
}
onClick_signBtn
=
()
=>
{
API
.
signInfo
().
then
((
res
)
=>
{
// Aup.show('Sign', res.data, this
);
ViewCtrl
.
showWin
(
Enum
.
Com
.
Sign
,
res
.
data
);
})
}
...
...
@@ -73,7 +72,8 @@ class Main3 extends Component {
onClick_rulebtn
=
()
=>
{
// console.log('onClick_rulebtn')
// Aup.show('PopRule', {}, this)
ViewCtrl
.
showWin
(
Enum
.
Com
.
Rule
);
}
onclick_jingcai
=
()
=>
{
...
...
@@ -92,7 +92,7 @@ class Main3 extends Component {
API
.
signInfo
().
then
((
res
)
=>
{
const
{
needPopup
}
=
res
.
data
;
if
(
needPopup
)
{
// Aup.show('Sign', res.data, this);
ViewCtrl
.
showWin
(
Enum
.
Com
.
Sign
,
res
.
data
);
}
});
}
...
...
@@ -151,7 +151,7 @@ class Main3 extends Component {
API
.
signInfo
().
then
((
res
)
=>
{
const
{
needPopup
}
=
res
.
data
;
if
(
needPopup
){
// Aup.show('Sign', res.data, this
);
ViewCtrl
.
showWin
(
Enum
.
Com
.
Sign
,
res
.
data
);
}
})
break
;
...
...
project/src/util/config.js
View file @
98e3c4a5
import
Userinfo
from
"../components/userinfo/userinfo.jsx"
;
import
Select
from
"../components/select/select.jsx"
;
import
Comprize
from
"../components/prize/prize.jsx"
;
import
Rule
from
"../components/rule/rule.jsx"
;
import
Sign
from
"../components/sign/sign.jsx"
;
// import Comtask from '../components/comtask/comtask.jsx';
// import ComconfirmExchange from '../components/comconfirmExcahnge/comconfirmExcahnge.jsx';
// import ComExchangesuccess from '../components/comexchangesuccess/comexchangesuccess.jsx';
...
...
@@ -10,6 +13,9 @@ let comMap = new Map();
comMap
.
set
(
Enum
.
Com
.
Userinfo
,
Userinfo
);
comMap
.
set
(
Enum
.
Com
.
Select
,
Select
);
comMap
.
set
(
Enum
.
Com
.
Comprize
,
Comprize
);
comMap
.
set
(
Enum
.
Com
.
Rule
,
Rule
);
comMap
.
set
(
Enum
.
Com
.
Sign
,
Sign
);
// comMap.set(Enum.Com.comtask, Comtask);
// comMap.set(Enum.Com.comconfirmExchange, ComconfirmExchange);
// comMap.set(Enum.Com.comExchangesuccess, ComExchangesuccess);
...
...
project/src/util/enum.js
View file @
98e3c4a5
...
...
@@ -25,6 +25,9 @@ const Enum = {
comExchangesuccess
:
2004
,
Userinfo
:
2005
,
Select
:
2006
,
Sign
:
2007
,
Rule
:
2008
,
Comprize
:
2009
,
},
Store
:{
...
...
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