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
ad8e6188
Commit
ad8e6188
authored
Sep 20, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'add-server' of gitlab.julyedu.com:baiguangyao/mr-julyedu into pre
parents
fa7e1134
b6d72214
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
63 deletions
+61
-63
src/components/Index/index.scss
+3
-1
src/components/detail/index.js
+4
-4
src/components/order/index.js
+47
-47
src/components/passport/accountLogin/index.js
+3
-7
src/components/purchased/index.js
+2
-2
src/components/study/myCourses/index.js
+2
-2
No files found.
src/components/Index/index.scss
View file @
ad8e6188
...
...
@@ -8,6 +8,8 @@
height
:
44px
;
background-color
:
$bg_fff
;
padding
:
10px
15px
;
position
:
fixed
;
z-index
:
52
;
.logo
{
width
:
78px
;
...
...
@@ -37,7 +39,7 @@
}
.index-swiper
{
//margin-top: 7
px;
margin-top
:
44
px
;
height
:
168px
;
.swiper-container
{
...
...
src/components/detail/index.js
View file @
ad8e6188
...
...
@@ -507,13 +507,13 @@ class Detail extends Component {
is_vip 1是属于vip赠的 0是不在vip范围内的
*/
}
{
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
1
&&
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
1
&&
course_info
.
course_qq
&&
<
div
className
=
'group'
>
上课
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
<
/div
>
}
{
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
2
&&
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
2
&&
course_info
.
course_qq
&&
<
div
className
=
'group'
>
请添加班主任微信:
{
course_info
.
course_qq
}
,添加时备注学号:
{
course_info
.
uid
}
<
/div
>
...
...
@@ -522,14 +522,14 @@ class Detail extends Component {
{
/*vip课程显示*/
}
{
course_info
.
vip_range
&&
course_info
.
is_vip
==
1
&&
course_info
.
is_pay
==
0
&&
course_info
.
contact_type
==
1
&&
course_info
.
vip_range
&&
course_info
.
is_vip
==
1
&&
course_info
.
is_pay
==
0
&&
course_info
.
contact_type
==
1
&&
course_info
.
course_qq
&&
<
div
className
=
"vip"
>
<
p
>
已开通年会员:
{
course_info
.
vip_range
}
<
/p
>
<
p
>
上课
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
<
/p
>
<
/div
>
}
{
course_info
.
vip_range
&&
course_info
.
is_vip
==
1
&&
course_info
.
is_pay
==
0
&&
course_info
.
contact_type
==
2
&&
course_info
.
vip_range
&&
course_info
.
is_vip
==
1
&&
course_info
.
is_pay
==
0
&&
course_info
.
contact_type
==
2
&&
course_info
.
course_qq
&&
<
div
className
=
"vip"
>
<
p
>
已开通年会员:
{
course_info
.
vip_range
}
<
/p
>
<
p
>
请添加班主任微信:
{
course_info
.
course_qq
}
,添加时备注学号:
{
course_info
.
uid
}
<
/p
>
...
...
src/components/order/index.js
View file @
ad8e6188
...
...
@@ -76,16 +76,16 @@ function OrderList(props) {
}}}
>
{
/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */
}
<
Flex
justify
=
'between'
>
<
span
style
=
{{
color
:
'#333'
,
fontSize
:
'15px'
<
span
style
=
{{
color
:
'#333'
,
fontSize
:
'15px'
}}
>
优惠券
<
/span
>
<
span
style
=
{{
fontSize
:
'14px'
,
color
:
'#999999'
<
span
style
=
{{
fontSize
:
'14px'
,
color
:
'#999999'
}}
>
{
!
coupon_desc
?
(
coupon_num
===
0
?
'无'
:
`
${
coupon_num
}
张可用`
)
:
(
coupon_desc
)}
...
...
@@ -415,48 +415,48 @@ class Order extends Component {
<
Flex
>
<
Flex
.
Item
>
<
HeaderBar
title
=
'课程报名'
arrow
=
{
true
}
/
>
{
!
this
.
state
.
perfect
&&
<
Link
to
=
{{
pathname
:
'/orderinfo'
,
state
:
{
type
:
this
.
props
.
location
.
state
?
this
.
props
.
location
.
state
.
type
:
null
,
id
:
getParam
(
'id'
)
}
}
}
className
=
"order-information"
>
<
i
className
=
"iconfont iconiconfront-6 order-addsize"
/>
<
div
className
=
"order-infotext"
>
完善报名信息
<
/div
>
<
i
className
=
"iconfont iconiconfront-70 order-next"
/>
<
/Link
>
}
{
this
.
state
.
perfect
&&
<
div
className
=
"order-information2"
>
<
WingBlank
>
<
Link
to
=
{{
pathname
:
'/orderinfo'
,
state
:
{
...
this
.
state
.
perfect
,
...
this
.
props
.
location
.
state
,
id
:
getParam
(
'id'
)
}
}
}
>
<
Flex
align
=
'center'
justify
=
'between'
style
=
{{
height
:
'80px'
}}
>
<
i
className
=
"iconfont iconiconfront-20 user-icon"
><
/i
>
{
/*{*/
}
{
/*!this.state.perfect &&*/
}
{
/*<Link to={{*/
}
{
/*pathname: '/orderinfo',*/
}
{
/*state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}*/
}
{
/*}}*/
}
{
/*className="order-information">*/
}
{
/*<i className="iconfont iconiconfront-6 order-addsize" />*/
}
{
/*<div className="order-infotext">完善报名信息</div>*/
}
{
/*<i className="iconfont iconiconfront-70 order-next" />*/
}
{
/*</Link>*/
}
{
/*}*/
}
{
/*{*/
}
{
/*this.state.perfect &&*/
}
{
/*<div className="order-information2">*/
}
{
/*<WingBlank>*/
}
{
/*<Link to={{*/
}
{
/*pathname: '/orderinfo',*/
}
{
/*state: {*/
}
{
/*...this.state.perfect,*/
}
{
/*...this.props.location.state,*/
}
{
/*id: getParam('id')*/
}
{
/*}*/
}
{
/*}*/
}
{
/*} >*/
}
{
/*<Flex align='center' justify='between' style={{ height: '80px' }}>*/
}
{
/*<i className="iconfont iconiconfront-20 user-icon"></i>*/
}
<
Flex
direction
=
'column'
justify
=
'between'
align
=
'start'
className
=
"order-cell"
>
<
div
className
=
"name"
>
{
`姓名:
${
perfect
.
real_name
}
`
}
<
/div
>
<
div
>
{
`电话:
${
perfect
.
cellphone
}
`
}
<
/div
>
<
/Flex
>
{
/*<Flex direction='column' justify='between' align='start' className="order-cell">*/
}
{
/*<div className="name">{`姓名:${perfect.real_name}`}</div>*/
}
{
/*<div>{`电话:${perfect.cellphone}`}</div>*/
}
{
/*</Flex>*/
}
<
Flex
align
=
'start'
className
=
"order-cell"
>
<
div
>
{
`QQ:
${
perfect
.
qq
}
`
}
<
/div
>
<
/Flex
>
{
/*<Flex align='start' className="order-cell">*/
}
{
/*<div>{`QQ:${perfect.qq}`}</div>*/
}
{
/*</Flex>*/
}
<
/Flex
>
<
/Link
>
<
/WingBlank
>
<
/div
>
}
{
/*</Flex>*/
}
{
/*</Link>*/
}
{
/*</WingBlank>*/
}
{
/*</div>*/
}
{
/*}*/
}
<
div
className
=
"order-list"
>
<
OrderList
list
=
{
orderList
}
...
...
src/components/passport/accountLogin/index.js
View file @
ad8e6188
...
...
@@ -74,15 +74,11 @@ const formikConfig = {
const
{
props
,
props
:
{
history
}}
=
formikBag
props
.
accountLogin
({
username
,
password
})
/*.then(res => {
if (!res.hasError) {
let {from} = props.location.state || {from: {pathname: '/', search: ''}}
console.log(from, 'account');
history.replace({pathname: from.pathname, search: from.search || ''})
} else {
}).
then
(
res
=>
{
if
(
res
.
hasError
)
{
Toast
.
info
(
res
.
msg
,
2
,
null
,
false
)
}
})
*/
})
}
}
...
...
src/components/purchased/index.js
View file @
ad8e6188
...
...
@@ -70,11 +70,11 @@ class Purchased extends Component {
<
div
className
=
'des'
>
助教微信:
{
item
.
assist_weixin
}
<
/div
>
}
{
!
item
.
is_aist
&&
item
.
contact_type
==
1
&&
!
item
.
is_aist
&&
item
.
contact_type
==
1
&&
item
.
course_qq
&&
<
div
className
=
'des'
>
QQ
群:
{
item
.
course_qq
}
<
/div
>
}
{
!
item
.
is_aist
&&
item
.
contact_type
==
2
&&
!
item
.
is_aist
&&
item
.
contact_type
==
2
&&
item
.
course_qq
&&
<
div
className
=
'des'
>
班主任微信:
{
item
.
course_qq
}
<
/div
>
}
<
/div
>
...
...
src/components/study/myCourses/index.js
View file @
ad8e6188
...
...
@@ -127,11 +127,11 @@ class MyCourses extends Component {
<
div
className
=
'contact'
>
助教微信:
{
item
.
assist_weixin
}
<
/div
>
}
{
!
item
.
is_aist
&&
item
.
contact_type
==
1
&&
!
item
.
is_aist
&&
item
.
contact_type
==
1
&&
item
.
course_qq
&&
<
div
className
=
'contact'
>
QQ
群:
{
item
.
course_qq
}
<
/div
>
}
{
!
item
.
is_aist
&&
item
.
contact_type
==
2
&&
!
item
.
is_aist
&&
item
.
contact_type
==
2
&&
item
.
course_qq
&&
<
div
className
=
'contact'
>
班主任微信:
{
item
.
course_qq
}
<
/div
>
}
...
...
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