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
33fe72c3
Commit
33fe72c3
authored
Dec 17, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b2a31049
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
250 deletions
+15
-250
dsl.json
dsl.json
+1
-1
app.jsx
project/src/app.jsx
+2
-2
loading.jsx
project/src/pages/loading/loading.jsx
+1
-1
mainpage.jsx
project/src/pages/mainpage/mainpage.jsx
+7
-3
resList.js
project/src/resconfig/resList.js
+4
-243
No files found.
dsl.json
View file @
33fe72c3
This diff is collapsed.
Click to expand it.
project/src/app.jsx
View file @
33fe72c3
...
...
@@ -7,7 +7,7 @@ import MD from '../MD';
MD
();
//此处为spark-cli动态生成
import
Loading
from
"./pages/loading/loading.jsx"
;
import
Main
from
"./pages/main/main
.jsx"
;
import
Main
page
from
"./pages/mainpage/mainpage
.jsx"
;
class
App
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -25,7 +25,7 @@ class App extends Component {
return
(
<
div
>
{
page
==
'loading'
&&
<
Loading
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Loading
>
}
{
page
==
'main
'
&&
<
Main
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Main
>
}
{
page
==
'main
page'
&&
<
Mainpage
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Mainpage
>
}
</
div
>
);
}
...
...
project/src/pages/loading/loading.jsx
View file @
33fe72c3
...
...
@@ -37,7 +37,7 @@ class Loading extends Component {
}
oncomplete
(
res
)
{
this
.
props
.
navigateTo
(
'main'
,
{
this
.
props
.
navigateTo
(
'main
page
'
,
{
info
:
res
.
data
,
});
}
...
...
project/src/pages/mainpage/mainpage.jsx
View file @
33fe72c3
'use strict'
;
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'
;
class
Mainpage
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
resList
:
resList
};
this
.
state
=
{
resList
:
resList
,
};
}
render
()
{
return
(
<
div
className=
"mainpage "
uuid=
"1898b1e3-7737-449c-b7bf-0ee3cc1182bc"
>
...
...
@@ -84,4 +87,5 @@ class Mainpage extends Component {
);
}
}
export
default
Mainpage
;
project/src/resconfig/resList.js
View file @
33fe72c3
This diff is collapsed.
Click to expand it.
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