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
9cad47ee
Commit
9cad47ee
authored
Dec 18, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
758a6402
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
57 additions
and
32 deletions
+57
-32
dsl.json
dsl.json
+1
-1
app.jsx
project/src/app.jsx
+12
-14
rule.jsx
project/src/components/rule/rule.jsx
+1
-1
rule.less
project/src/components/rule/rule.less
+2
-2
select.jsx
project/src/components/select/select.jsx
+7
-0
select.less
project/src/components/select/select.less
+2
-2
sign.jsx
project/src/components/sign/sign.jsx
+1
-0
sign.less
project/src/components/sign/sign.less
+2
-2
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+2
-5
userinfo.less
project/src/components/userinfo/userinfo.less
+2
-2
loading.jsx
project/src/pages/loading/loading.jsx
+3
-3
mainpage.jsx
project/src/pages/mainpage/mainpage.jsx
+14
-0
AUPopMobx.jsx
project/src/pop/AUPopMobx/AUPopMobx.jsx
+1
-0
PopMap.js
project/src/pop/PopMap.js
+6
-0
spark.config.json
spark.config.json
+1
-0
No files found.
dsl.json
View file @
9cad47ee
This diff is collapsed.
Click to expand it.
project/src/app.jsx
View file @
9cad47ee
import
React
,
{
Component
}
from
"react"
;
import
React
,
{
Component
}
from
"react"
;
import
ReactDOM
from
"react-dom"
;
import
ReactDOM
from
"react-dom"
;
import
"./app.less"
;
import
{
MOCK_STATUS
}
from
'../sparkrc'
;
MOCK_STATUS
&&
(
require
(
'../mock/index'
));
import
MD
from
'../MD'
;
import
MD
from
'../MD'
;
MD
();
import
{
MOCK_STATUS
}
from
'../sparkrc'
;
import
"./app.less"
;
//此处为spark-cli动态生成
//此处为spark-cli动态生成
import
Loading
from
"./pages/loading/loading.jsx"
;
import
Loading
from
"./pages/loading/loading.jsx"
;
import
Mainpage
from
"./pages/mainpage/mainpage.jsx"
;
import
Mainpage
from
"./pages/mainpage/mainpage.jsx"
;
import
Sign
from
"./components/sign/sign.jsx"
;
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'./pop'
;
import
Select
from
"./components/select/select.jsx"
;
MOCK_STATUS
&&
(
require
(
'../mock/index'
));
import
Rule
from
"./components/rule/rule.jsx"
;
MD
();
import
Userinfo
from
"./components/userinfo/userinfo.jsx"
;
import
{
AUP_MBX_STATE
,
AUPOP
}
from
'./pop'
class
App
extends
Component
{
class
App
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
...
@@ -21,6 +18,12 @@ class App extends Component {
...
@@ -21,6 +18,12 @@ class App extends Component {
};
};
}
}
// componentDidMount() {
// setTimeout(() => {
// Aup.show('PopRule', {}, this)
// }, 1000);
// }
navigateTo
=
(
page
,
pagedata
)
=>
{
navigateTo
=
(
page
,
pagedata
)
=>
{
this
.
setState
({
page
,
pagedata
})
this
.
setState
({
page
,
pagedata
})
}
}
...
@@ -29,13 +32,8 @@ class App extends Component {
...
@@ -29,13 +32,8 @@ class App extends Component {
const
{
page
,
pagedata
}
=
this
.
state
;
const
{
page
,
pagedata
}
=
this
.
state
;
return
(
return
(
<>
<>
{
page
==
'loading'
&&
<
Loading
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Loading
>
}
{
page
==
'loading'
&&
<
Loading
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Loading
>
}
{
page
==
'mainpage'
&&
<
Mainpage
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Mainpage
>
}
{
page
==
'mainpage'
&&
<
Mainpage
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Mainpage
>
}
{
/* <Select></Select> */
}
<
Userinfo
></
Userinfo
>
{
/* <Sign></Sign> */
}
{
/* <Rule></Rule> */
}
<
AUPOP
AUPopState=
{
AUP_MBX_STATE
}
></
AUPOP
>
<
AUPOP
AUPopState=
{
AUP_MBX_STATE
}
></
AUPOP
>
</>
</>
);
);
...
...
project/src/components/rule/rule.jsx
View file @
9cad47ee
...
@@ -28,7 +28,7 @@ class Rule extends Component {
...
@@ -28,7 +28,7 @@ class Rule extends Component {
4.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
4.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
</
span
>
</
span
>
<
img
<
img
onClick=
{
this
.
props
.
onCl
ick
}
onClick=
{
this
.
props
.
onCl
ose
}
className=
"rule_close "
className=
"rule_close "
uuid=
"af9001ed-b3c5-404d-ab2a-34939510ea61"
uuid=
"af9001ed-b3c5-404d-ab2a-34939510ea61"
src=
{
this
.
state
.
resList
[
'3814359c-5889-4ffa-8b76-bc52f58ebd5d'
].
url
}
src=
{
this
.
state
.
resList
[
'3814359c-5889-4ffa-8b76-bc52f58ebd5d'
].
url
}
...
...
project/src/components/rule/rule.less
View file @
9cad47ee
.rule {
.rule {
width: 612px;
width: 612px;
height: 784px;
height: 784px;
left:
71px
;
left:
calc(50% - (612px / 2))
;
top:
386px
;
top:
calc(50% - (784px / 2))
;
position: absolute;
position: absolute;
.rule_bg {
.rule_bg {
width: 609px;
width: 609px;
...
...
project/src/components/select/select.jsx
View file @
9cad47ee
...
@@ -13,6 +13,13 @@ class Select extends Component {
...
@@ -13,6 +13,13 @@ class Select extends Component {
};
};
}
}
componentDidMount
(){
setTimeout
(()
=>
{
console
.
log
(
'关闭这个弹窗'
)
this
.
props
.
onClose
();
},
1000
);
}
render
()
{
render
()
{
return
(
return
(
<
div
className=
"select "
uuid=
"298ea3b7-efbb-42ac-adea-ee68aa1db627"
>
<
div
className=
"select "
uuid=
"298ea3b7-efbb-42ac-adea-ee68aa1db627"
>
...
...
project/src/components/select/select.less
View file @
9cad47ee
.select {
.select {
width: 656px;
width: 656px;
height: 1140px;
height: 1140px;
left:
47px
;
left:
calc(50% - (656px / 2))
;
top:
228px
;
top:
calc(50% - (1140px / 2))
;
position: absolute;
position: absolute;
.select_role1 {
.select_role1 {
width: 535px;
width: 535px;
...
...
project/src/components/sign/sign.jsx
View file @
9cad47ee
...
@@ -22,6 +22,7 @@ class Sign extends Component {
...
@@ -22,6 +22,7 @@ class Sign extends Component {
src=
{
this
.
state
.
resList
[
'7d7b7747-b417-45c0-959c-3d39603afc69'
].
url
}
src=
{
this
.
state
.
resList
[
'7d7b7747-b417-45c0-959c-3d39603afc69'
].
url
}
/>
/>
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
className=
"sign_close "
className=
"sign_close "
uuid=
"e112e990-527f-4a53-8eb4-3eb6bc60ad40"
uuid=
"e112e990-527f-4a53-8eb4-3eb6bc60ad40"
src=
{
this
.
state
.
resList
[
'104ff753-c9bc-4218-969c-3c3fa4d11610'
].
url
}
src=
{
this
.
state
.
resList
[
'104ff753-c9bc-4218-969c-3c3fa4d11610'
].
url
}
...
...
project/src/components/sign/sign.less
View file @
9cad47ee
.sign {
.sign {
width: 612px;
width: 612px;
height: 936px;
height: 936px;
left:
71px
;
left:
calc(50% - (612px / 2))
;
top:
291px
;
top:
calc(50% - (936px / 2))
;
position: absolute;
position: absolute;
.sign_bg {
.sign_bg {
width: 609px;
width: 609px;
...
...
project/src/components/userinfo/userinfo.jsx
View file @
9cad47ee
...
@@ -11,13 +11,9 @@ class Userinfo extends Component {
...
@@ -11,13 +11,9 @@ class Userinfo extends Component {
this
.
state
=
{
resList
:
resList
};
this
.
state
=
{
resList
:
resList
};
}
}
showSomething
=
()
=>
{
Aup
.
show
(
'PopRule'
,
{},
this
)
}
render
()
{
render
()
{
return
(
return
(
<
div
className=
"userinfo "
onClick=
{
()
=>
{
this
.
showSomething
()
}
}
uuid=
"a9143822-c421-48d3-92c3-de9eafe5c234"
>
<
div
className=
"userinfo "
onClick=
{
()
=>
{
this
.
showSomething
()
}
}
uuid=
"a9143822-c421-48d3-92c3-de9eafe5c234"
>
<
img
<
img
className=
"userinfo_bg "
className=
"userinfo_bg "
uuid=
"cf852278-516f-48f3-bad2-0e38a1431c4e"
uuid=
"cf852278-516f-48f3-bad2-0e38a1431c4e"
...
@@ -29,6 +25,7 @@ class Userinfo extends Component {
...
@@ -29,6 +25,7 @@ class Userinfo extends Component {
src=
{
this
.
state
.
resList
[
'5406c697-b889-4062-8910-343038c4dc93'
].
url
}
src=
{
this
.
state
.
resList
[
'5406c697-b889-4062-8910-343038c4dc93'
].
url
}
/>
/>
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
className=
"userinfo_close "
className=
"userinfo_close "
uuid=
"4f217b43-8438-451e-b28f-0e9d611fce2b"
uuid=
"4f217b43-8438-451e-b28f-0e9d611fce2b"
src=
{
this
.
state
.
resList
[
'c7826e1a-8b74-44da-922f-0fe078587999'
].
url
}
src=
{
this
.
state
.
resList
[
'c7826e1a-8b74-44da-922f-0fe078587999'
].
url
}
...
...
project/src/components/userinfo/userinfo.less
View file @
9cad47ee
.userinfo {
.userinfo {
width: 514px;
width: 514px;
height: 555px;
height: 555px;
left:
121px
;
left:
calc(50% - (514px / 2))
;
top:
486px
;
top:
calc(50% - (555px / 2))
;
position: absolute;
position: absolute;
.userinfo_bg {
.userinfo_bg {
width: 509px;
width: 509px;
...
...
project/src/pages/loading/loading.jsx
View file @
9cad47ee
...
@@ -37,9 +37,9 @@ class Loading extends Component {
...
@@ -37,9 +37,9 @@ class Loading extends Component {
}
}
oncomplete
(
res
)
{
oncomplete
(
res
)
{
//
this.props.navigateTo('mainpage', {
this
.
props
.
navigateTo
(
'mainpage'
,
{
//
info: res.data,
info
:
res
.
data
,
//
});
});
}
}
render
()
{
render
()
{
...
...
project/src/pages/mainpage/mainpage.jsx
View file @
9cad47ee
...
@@ -4,6 +4,7 @@ import React, { Component } from 'react';
...
@@ -4,6 +4,7 @@ import React, { Component } from 'react';
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
'./mainpage.less'
;
import
'./mainpage.less'
;
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
class
Mainpage
extends
Component
{
class
Mainpage
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -13,6 +14,19 @@ class Mainpage extends Component {
...
@@ -13,6 +14,19 @@ class Mainpage extends Component {
};
};
}
}
componentDidMount
()
{
if
(
this
.
props
.
data
)
{
setTimeout
(()
=>
{
// Aup.show('PopRule', {}, this)
// Aup.show('Userinfo', {}, this);
// Aup.show('Sign', {}, this);
// Aup.show('Select', {}, this);
},
200
);
}
}
render
()
{
render
()
{
return
(
return
(
<
div
className=
"mainpage "
uuid=
"1898b1e3-7737-449c-b7bf-0ee3cc1182bc"
>
<
div
className=
"mainpage "
uuid=
"1898b1e3-7737-449c-b7bf-0ee3cc1182bc"
>
...
...
project/src/pop/AUPopMobx/AUPopMobx.jsx
View file @
9cad47ee
...
@@ -70,6 +70,7 @@ class AUPopMobx extends Component {
...
@@ -70,6 +70,7 @@ class AUPopMobx extends Component {
popArr
.
forEach
((
item
,
index
)
=>
{
popArr
.
forEach
((
item
,
index
)
=>
{
const
{
showPop
,
popData
,
fn
,
ctx
}
=
item
const
{
showPop
,
popData
,
fn
,
ctx
}
=
item
let
PItem
=
popMap
.
get
(
showPop
)
let
PItem
=
popMap
.
get
(
showPop
)
if
(
!
PItem
)
console
.
error
(
`没有类型为
${
showPop
}
的弹窗`
)
Pop
.
push
(
Pop
.
push
(
<
div
className=
{
showPop
===
'PopLightCard'
?
'compop_content comPop_zoom_from0'
:
'compop_content comPop_zoom'
}
>
<
div
className=
{
showPop
===
'PopLightCard'
?
'compop_content comPop_zoom_from0'
:
'compop_content comPop_zoom'
}
>
<
PItem
onClose=
{
this
.
closePop
}
data=
{
popData
}
fn=
{
fn
}
ctx=
{
ctx
}
type=
'spot'
/>
<
PItem
onClose=
{
this
.
closePop
}
data=
{
popData
}
fn=
{
fn
}
ctx=
{
ctx
}
type=
'spot'
/>
...
...
project/src/pop/PopMap.js
View file @
9cad47ee
...
@@ -5,11 +5,17 @@
...
@@ -5,11 +5,17 @@
// import PopInput from '../components/pop/PopInput/PopInput.jsx'
// import PopInput from '../components/pop/PopInput/PopInput.jsx'
// import PopDefault from '../components/pop/PopDefault/PopDefault.jsx'
// import PopDefault from '../components/pop/PopDefault/PopDefault.jsx'
import
PopRule
from
'../components/rule/rule.jsx'
import
PopRule
from
'../components/rule/rule.jsx'
import
Select
from
'../components/select/select.jsx'
import
Sign
from
'../components/sign/sign.jsx'
import
Userinfo
from
'../components/userinfo/userinfo.jsx'
// import PopLightCard from '../components/pop/PopLightCard/PopLightCard.jsx'
// import PopLightCard from '../components/pop/PopLightCard/PopLightCard.jsx'
let
popMap
=
new
Map
()
let
popMap
=
new
Map
()
popMap
.
set
(
"PopRule"
,
PopRule
)
popMap
.
set
(
"PopRule"
,
PopRule
)
popMap
.
set
(
"Select"
,
Select
)
popMap
.
set
(
"Sign"
,
Sign
)
popMap
.
set
(
"Userinfo"
,
Userinfo
)
// popMap.set("PopGetPiece", PopGetPiece)
// popMap.set("PopGetPiece", PopGetPiece)
// popMap.set("PopRegret", PopRegret)
// popMap.set("PopRegret", PopRegret)
// popMap.set("PopInfiniteA", PopInfiniteA)
// popMap.set("PopInfiniteA", PopInfiniteA)
...
...
spark.config.json
0 → 100644
View file @
9cad47ee
{
"proName"
:
"未命名项目"
,
"proDesc"
:
""
,
"proPath"
:
"/Users/wanghongyuan/icbcrpg"
,
"createTime"
:
1608281698074
}
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