Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
9f9eddd0
Commit
9f9eddd0
authored
Jun 06, 2020
by
zhengjianqing@thinker.vc
Browse files
Options
Browse Files
Download
Plain Diff
file
parents
5b0f0aa9
fd19cdb2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
76 additions
and
107 deletions
+76
-107
workspace.xml
.idea/workspace.xml
+0
-0
step-current.png
public/img/step-current.png
+0
-0
test-2.png
public/img/test/test-2.png
+0
-0
index.jsx
src/components/StepCard/index.jsx
+15
-9
index.less
src/components/StepCard/index.less
+34
-75
CommonLayout.jsx
src/layout/CommonLayout.jsx
+4
-1
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+3
-5
Communicate.jsx
src/pages/Communicate/Communicate.jsx
+2
-2
Notice.jsx
src/pages/Notice/Notice.jsx
+3
-3
Work.jsx
src/pages/Work/Work.jsx
+15
-12
No files found.
.idea/workspace.xml
View file @
9f9eddd0
This diff is collapsed.
Click to expand it.
public/img/step-current.png
0 → 100644
View file @
9f9eddd0
5.74 KB
public/img/test/test-2.png
0 → 100644
View file @
9f9eddd0
26.1 KB
src/components/StepCard/index.jsx
View file @
9f9eddd0
import
React
from
'react'
;
import
React
from
'react'
;
import
'./index.less'
import
'./index.less'
const
data
=
[{},
{},
{},
{
s
:
'1'
},
{}]
const
data
=
[{},
{},
{},
{
s
:
'1'
},
{
s
:
'111'
,
result
:
'11111'
}]
const
Index
=
()
=>
{
const
Index
=
()
=>
{
return
(
return
(
<
div
>
<
div
className=
"auto-step"
>
<
ul
className=
"auto-step-card"
>
<
ul
className=
"auto-step-card"
>
{
{
data
.
map
((
item
,
index
)
=>
(
data
.
map
((
item
,
index
)
=>
(
...
@@ -13,14 +13,20 @@ const Index = () => {
...
@@ -13,14 +13,20 @@ const Index = () => {
<
div
className=
"auto-step-item-title-name"
>
发起申请(拟稿)
</
div
>
<
div
className=
"auto-step-item-title-name"
>
发起申请(拟稿)
</
div
>
</
div
>
</
div
>
<
div
className=
{
`auto-step-content ${item.s ? '' : 'step-success'}`
}
>
<
div
className=
{
`auto-step-content ${item.s ? '' : 'step-success'}`
}
>
<
div
className=
"auto-step-content-flow"
>
<
div
className=
"step-content-wrapper"
>
1111111111
<
div
className=
"auto-step-content-flow"
>
</
div
>
<
div
className=
"auto-step-content-head"
>
{
item
.
result
&&
(
<
img
src=
"/img/test/test-2.png"
alt=
""
className=
"step-content-head-img"
/>
<
div
className=
"auto-step-content-result"
>
<
span
>
赵依安
</
span
>
11111
</
div
>
<
span
>
2020-04-09 08:44:36
</
span
>
</
div
>
</
div
>
)
}
{
item
.
result
&&
(
<
div
className=
"auto-step-content-result"
>
11111
</
div
>
)
}
</
div
>
</
div
>
</
div
>
</
li
>
</
li
>
...
...
src/components/StepCard/index.less
View file @
9f9eddd0
.auto-step{
background: #ffffff;
border-radius: 6px;
padding: 15px;
}
.auto-step-item-title{
.auto-step-item-title{
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -19,7 +24,7 @@
...
@@ -19,7 +24,7 @@
display: block;
display: block;
width: 16px;
width: 16px;
height: 16px;
height: 16px;
background: url("/img/step-
success
.png") center;
background: url("/img/step-
current
.png") center;
background-size: cover;
background-size: cover;
}
}
.auto-step-item-title.step-future::before{
.auto-step-item-title.step-future::before{
...
@@ -54,83 +59,37 @@
...
@@ -54,83 +59,37 @@
background-color: rgba(228, 228, 228, 1);
background-color: rgba(228, 228, 228, 1);
}
}
.auto-step-card > .auto-step-item:last-child .auto-step-content::before{
.auto-step-card > .auto-step-item:last-child .auto-step-content::before{
background-color: #ffffff;
background-color: #ffffff;
}
}
.step-content-wrapper{
display: flex;
flex-direction: column;
width: 100%;
padding: 17px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}
.auto-step-content-flow{
display: flex;
justify-content: space-between;
padding: 0 15px;
}
.auto-step-content-head{
display: flex;
align-items: flex-start;
}
.step-content-head-img{
width: 30px;
height: 30px;
margin-right: 7px;
}
.auto-step-content-result{
margin-top: 15px;
line-height: 41px;
border-radius: 7px;
background: rgba(0, 0, 0, 0.12);
padding: 0 15px;
}
//.contract-operate_recode_date{
// margin-left: 56px;
// height:100%;
// display:flex;
// flex-direction: column;
// //justify-content: space-around;
// li{
// width:100%;
// //:nth-child(1){
// // width:119px;
// // height:16px;
// // font-size: 12px;
// // color: #333333;
// //}
// :nth-child(2){
// display: inline-block;
// width: 8px;
// height: 8px;
// background-color: #D8D8D8;
// border-radius: 50%;
// margin: 0 50px;
// &:after {
// content: '';
// display: block;
// clear: both;
// width: 1px;
// height: 111px;
// background-color: #D8D8D8;
// margin: 8px auto;
// }
// }
// :nth-child(3){
// font-size: 12px;
// color: #333333;
// display: inline-block;
// width: 170px;
// height: 16px;
// }
// }
// li:last-child {
// :nth-child(1) {
// font-size: 12px;
// color: #09B9C1;
// display: inline-block;
// width: 119px;
// height: 16px;
// }
// :nth-child(2) {
// display: inline-block;
// width: 8px;
// height: 8px;
// //background-color: $c991;
// border-radius: 50%;
// &:after {
// content: '';
// display: none;
// }
// }
//
// :nth-child(3) {
// font-size: 12px;
// //color: $c991;
// letter-spacing: 0;
// display: inline-block;
// width: 170px;
// height: 16px;
// }
// }
//}
src/layout/CommonLayout.jsx
View file @
9f9eddd0
...
@@ -7,7 +7,10 @@ const CommonLayout = (props) => {
...
@@ -7,7 +7,10 @@ const CommonLayout = (props) => {
return
(
return
(
<
div
>
<
div
>
<
div
className=
"common-layout-content"
>
<
div
className=
"common-layout-content"
>
{
props
.
children
}
<
div
>
{
props
.
children
}
</
div
>
</
div
>
</
div
>
<
Footer
{
...
props
}
/>
<
Footer
{
...
props
}
/>
</
div
>
</
div
>
...
...
src/pages/Backlog/Backlog.jsx
View file @
9f9eddd0
import
React
from
'react'
;
import
React
from
'react'
;
import
{
WhiteSpace
}
from
'antd-mobile'
import
{
WhiteSpace
,
WingBlank
}
from
'antd-mobile'
import
TodoCard
from
'../../components/TodoCard'
import
TodoCard
from
'../../components/TodoCard'
import
TopSearch
from
'../../components/TopSearch'
import
TopSearch
from
'../../components/TopSearch'
...
@@ -8,7 +8,7 @@ const Backlog = (props) => {
...
@@ -8,7 +8,7 @@ const Backlog = (props) => {
props
.
history
.
push
(
`/blank/example/1`
)
props
.
history
.
push
(
`/blank/example/1`
)
}
}
return
(
return
(
<
div
>
<
WingBlank
>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopSearch
/>
<
TopSearch
/>
{
{
...
@@ -21,9 +21,7 @@ const Backlog = (props) => {
...
@@ -21,9 +21,7 @@ const Backlog = (props) => {
))
))
}
}
{
/*<Step direction="horizontal"/>*/
}
</
WingBlank
>
</
div
>
);
);
};
};
...
...
src/pages/Communicate/Communicate.jsx
View file @
9f9eddd0
...
@@ -10,7 +10,7 @@ class Communicate extends Component {
...
@@ -10,7 +10,7 @@ class Communicate extends Component {
return
(
return
(
<
div
>
<
div
>
<
div
className=
'breadBox'
>
<
div
className=
'breadBox'
>
<
span
className=
'currentLink'
>
科技创新委员会
</
span
><
span
className=
'symbol'
>
>
</
span
><
span
>
组织架构
</
span
><
span
className=
'symbol'
>
>
</
span
><
span
>
办公厅
</
span
>
<
span
className=
'currentLink'
>
科技创新委员会
</
span
><
span
className=
'symbol'
>
>
</
span
><
span
>
组织架构
</
span
><
span
className=
'symbol'
>
>
</
span
><
span
>
办公厅
</
span
>
</
div
>
</
div
>
<
div
className=
'adMainBox'
>
<
div
className=
'adMainBox'
>
<
ul
className=
'adListBox'
>
<
ul
className=
'adListBox'
>
...
@@ -71,7 +71,7 @@ class Communicate extends Component {
...
@@ -71,7 +71,7 @@ class Communicate extends Component {
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
li
>
</
li
>
</
ul
>
</
ul
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/Notice/Notice.jsx
View file @
9f9eddd0
import
React
from
'react'
;
import
React
from
'react'
;
import
{
WhiteSpace
}
from
'antd-mobile'
import
{
WhiteSpace
,
WingBlank
}
from
'antd-mobile'
import
TodoCard
from
'../../components/TodoCard'
import
TodoCard
from
'../../components/TodoCard'
import
TopNotice
from
'../../components/TopNotice'
import
TopNotice
from
'../../components/TopNotice'
const
Notice
=
()
=>
{
const
Notice
=
()
=>
{
return
(
return
(
<
div
>
<
WingBlank
>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopNotice
/>
<
TopNotice
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TodoCard
/>
<
TodoCard
/>
</
div
>
</
WingBlank
>
);
);
};
};
...
...
src/pages/Work/Work.jsx
View file @
9f9eddd0
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
WhiteSpace
}
from
"antd-mobile"
;
import
{
WhiteSpace
,
WingBlank
}
from
"antd-mobile"
;
import
{
WingBlank
}
from
'antd-mobile'
import
TopSearch
from
'../../components/TopSearch'
import
TopSearch
from
'../../components/TopSearch'
import
WorkCard
from
'../../components/WorkCard'
import
WorkCard
from
'../../components/WorkCard'
const
data
=
Array
.
from
(
new
Array
(
7
)).
map
((
_val
,
i
)
=>
({
id
:
`name
${
i
}
`
,
icon
:
'/img/test/test.png'
,
text
:
`name
${
i
}
`
,
}));
const
data2
=
Array
.
from
(
new
Array
(
7
)).
map
((
_val
,
i
)
=>
({
id
:
`name2
${
i
}
`
,
icon
:
'/img/test/test-1.png'
,
text
:
`name
${
i
}
`
,
}));
class
Work
extends
Component
{
class
Work
extends
Component
{
state
=
{
state
=
{
addStatus
:
false
addStatus
:
false
...
@@ -15,24 +25,17 @@ class Work extends Component {
...
@@ -15,24 +25,17 @@ class Work extends Component {
workSearch
=
(
val
)
=>
{
workSearch
=
(
val
)
=>
{
console
.
log
(
val
)
console
.
log
(
val
)
};
};
itemAdd
=
()
=>
{
itemAdd
=
(
id
)
=>
{
console
.
log
(
'add'
)
console
.
log
(
'add'
)
}
}
itemSlice
=
()
=>
{
itemSlice
=
(
id
)
=>
{
console
.
log
(
'slice'
)
console
.
log
(
'slice'
)
}
}
render
()
{
render
()
{
const
{
addStatus
}
=
this
.
state
;
const
{
addStatus
}
=
this
.
state
;
//测试数据
//测试数据
const
data
=
Array
.
from
(
new
Array
(
7
)).
map
((
_val
,
i
)
=>
({
icon
:
'/img/test/test.png'
,
text
:
`name
${
i
}
`
,
}));
const
data2
=
Array
.
from
(
new
Array
(
7
)).
map
((
_val
,
i
)
=>
({
icon
:
'/img/test/test-1.png'
,
text
:
`name
${
i
}
`
,
}));
return
(
return
(
<
WingBlank
>
<
WingBlank
>
<
WhiteSpace
/>
<
WhiteSpace
/>
...
...
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