Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
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
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
e4a85ed8
Commit
e4a85ed8
authored
Oct 29, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dingjin
parent
d1de0e42
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
8 deletions
+34
-8
src/components/blessingPreheat/ReserveCourse/index.js
+17
-3
src/components/blessingPreheat/ReserveCourse/index.scss
+14
-0
src/components/detail/deposit/index.js
+1
-1
src/components/expand/share.js
+1
-1
src/router/router-config.js
+1
-3
No files found.
src/components/blessingPreheat/ReserveCourse/index.js
View file @
e4a85ed8
...
...
@@ -11,7 +11,8 @@ class ReserveCourse extends Component {
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
courseData
:
[]
courseData
:
[],
isShowMore
:
false
};
}
...
...
@@ -24,7 +25,8 @@ class ReserveCourse extends Component {
const
{
code
,
data
,
msg
}
=
res
.
data
;
if
(
code
===
200
)
{
this
.
setState
({
courseData
:
data
courseData
:
data
.
filter
((
item
,
index
)
=>
index
<
4
),
courseDataAll
:
data
})
}
else
{
Toast
.
info
(
msg
,
2
);
...
...
@@ -63,15 +65,27 @@ class ReserveCourse extends Component {
tostudy
=
(
courseId
)
=>
{
this
.
props
.
history
.
push
(
`/getDetail?id=
${
courseId
}
`
)
}
// 查看更多
showMoreData
=
()
=>
{
this
.
setState
({
isShowMore
:
!
this
.
state
.
isShowMore
,
courseData
:
this
.
state
.
isShowMore
?
this
.
state
.
courseDataAll
.
filter
((
item
,
index
)
=>
index
<
4
)
:
this
.
state
.
courseDataAll
,
})
}
render
()
{
const
{
courseData
}
=
this
.
state
;
const
{
courseData
,
isShowMore
}
=
this
.
state
;
return
(
<
div
className
=
'reserve-course-module'
>
<
CourseList
courseData
=
{
courseData
}
expandPaydj
=
{
this
.
expandPaydj
}
expandPaywk
=
{
this
.
expandPaywk
}
tostudy
=
{
this
.
tostudy
}
/
>
<
button
className
=
"more-button"
onClick
=
{
this
.
showMoreData
}
>
{
isShowMore
?
'收起'
:
'展开更多'
}
<
/button
>
<
/div
>
)
}
...
...
src/components/blessingPreheat/ReserveCourse/index.scss
View file @
e4a85ed8
...
...
@@ -101,5 +101,19 @@
}
}
}
.more-button
{
display
:
block
;
width
:
100px
;
height
:
27px
;
margin
:
5px
auto
15px
;
border
:
1px
solid
#fff
;
border-radius
:
14px
;
font-size
:
13px
;
font-weight
:
300
;
color
:
#fff
;
background-color
:
transparent
;
cursor
:
pointer
;
outline
:
none
;
}
}
src/components/detail/deposit/index.js
View file @
e4a85ed8
...
...
@@ -23,7 +23,7 @@ class Deposit extends Component {
<
div
className
=
"expand-bgimg"
>
<
img
className
=
"four-year"
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_
717/m/4year
.png"
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_
1111/m/dj-1111
.png"
alt
=
''
/>
<
span
className
=
"dingjin"
>
定金
{
info
.
deposit_amount
}
元,可抵扣
{
info
.
deduction_amount
}
元
<
/span
>
...
...
src/components/expand/share.js
View file @
e4a85ed8
...
...
@@ -226,7 +226,7 @@ class ExpandShare extends Component {
return
(
<
div
className
=
"expand-box"
>
<
div
className
=
"banner"
>
<
img
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_
717/m/zl
-banner.png"
alt
=
""
/>
<
img
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_
1111/m/dj
-banner.png"
alt
=
""
/>
<
span
onClick
=
{()
=>
this
.
showRule
()}
/
>
<
/div
>
<
div
className
=
"all-contnet"
>
...
...
src/router/router-config.js
View file @
e4a85ed8
...
...
@@ -171,7 +171,6 @@ export default [
path
:
'/aist-share'
,
component
:
loadable
(()
=>
import
(
/* webpackChunkName: 'aist-share'*/
'@/components/share-page/aist-share'
))
},
<<<<<<<
HEAD
{
path
:
'/blessingRank'
,
component
:
loadable
(()
=>
import
(
/* webpackChunkName: 'blessing-rank' */
'@/components/blessingRank/index'
))
...
...
@@ -183,7 +182,7 @@ export default [
{
path
:
'/prize-winner-list'
,
component
:
loadable
(()
=>
import
(
/* webpackChunkName: 'prize-winner-list' */
'@/components/activity/prize-winner-list'
))
=======
},
//定金订单页面
{
path
:
'/deposit-order'
,
...
...
@@ -208,6 +207,5 @@ export default [
{
path
:
'/expand/index'
,
component
:
ExpandShare
>>>>>>>
8347
ddd690a7fd9ee47bd9b74cc662e453035ff2
},
]
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