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
50e0a104
Commit
50e0a104
authored
Sep 19, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
pull
parents
6c9d16f6
3bda3529
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
79 deletions
+110
-79
src/components/detail/index.js
+28
-14
src/components/detail/redPacket/index.js
+60
-59
src/components/purchased/index.js
+11
-3
src/components/study/myCourses/index.js
+11
-3
No files found.
src/components/detail/index.js
View file @
50e0a104
import
React
,
{
Component
}
from
'react'
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
import
'./index.scss'
import
Bargain
from
'./bargain'
import
Bargain
from
'./bargain'
import
Group
from
'./group'
import
Group
from
'./group'
import
OutLine
from
'./outline'
import
OutLine
from
'./outline'
import
{
HeaderBar
,
CallApp
}
from
'../../common'
import
{
HeaderBar
,
CallApp
}
from
'../../common'
import
ShareRank
from
"./shareRank"
import
ShareRank
from
"./shareRank"
import
Audition
from
"./audition"
import
Audition
from
"./audition"
import
Single
from
"./single"
import
Single
from
"./single"
import
SingleSuccess
from
'./single/singleSuccess'
;
import
SingleSuccess
from
'./single/singleSuccess'
;
import
BtnStatus
from
"./btnstatus"
import
BtnStatus
from
"./btnstatus"
import
Barrage
from
'./barrage'
import
Barrage
from
'./barrage'
import
{
connect
}
from
"react-redux"
import
{
connect
}
from
"react-redux"
import
{
getCourses
,
addCourseToCart
}
from
"./actions"
import
{
getCourses
,
addCourseToCart
}
from
"./actions"
import
{
getParam
,
http
,
browser
,
wxShare
}
from
"@/utils"
import
{
getParam
,
http
,
browser
,
wxShare
}
from
"@/utils"
import
{
Toast
}
from
'antd-mobile'
import
{
Toast
}
from
'antd-mobile'
import
{
bindActionCreators
}
from
"redux"
;
import
{
bindActionCreators
}
from
"redux"
;
import
{
delCountryNum
}
from
'./../country/countryRedux'
;
import
{
delCountryNum
}
from
'./../country/countryRedux'
;
import
RedPacket
from
'./redPacket'
;
import
RedPacket
from
'./redPacket'
;
...
@@ -65,7 +65,7 @@ class Detail extends Component {
...
@@ -65,7 +65,7 @@ class Detail extends Component {
this
.
judgeIsRedPacket
();
this
.
judgeIsRedPacket
();
// 红包链接进入详情也
// 红包链接进入详情也
if
(
getParam
(
'share_code'
))
{
if
(
getParam
(
'share_code'
))
{
this
.
setState
({
this
.
setState
({
isRedPacket
:
true
isRedPacket
:
true
});
});
...
@@ -75,8 +75,8 @@ class Detail extends Component {
...
@@ -75,8 +75,8 @@ class Detail extends Component {
// 判断时候未红包课程
// 判断时候未红包课程
judgeIsRedPacket
=
()
=>
{
judgeIsRedPacket
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/redPacket/showShareActive/
${
getParam
(
'id'
)}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/redPacket/showShareActive/
${
getParam
(
'id'
)}
`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
setState
({
this
.
setState
({
isRedPacket
:
data
.
is_show
isRedPacket
:
data
.
is_show
});
});
...
@@ -427,7 +427,7 @@ class Detail extends Component {
...
@@ -427,7 +427,7 @@ class Detail extends Component {
}
}
render
()
{
render
()
{
const
{
course
:
{
course_info
=
{}
},
barInfo
,
singleBox
,
singleType
,
isRedPacket
}
=
this
.
state
;
const
{
course
:
{
course_info
=
{}},
barInfo
,
singleBox
,
singleType
,
isRedPacket
}
=
this
.
state
;
let
courseInfo
=
''
,
let
courseInfo
=
''
,
service
=
''
,
service
=
''
,
...
@@ -496,20 +496,34 @@ class Detail extends Component {
...
@@ -496,20 +496,34 @@ class Detail extends Component {
{
/*正常课程已购买时显示*/
}
{
/*正常课程已购买时显示*/
}
{
{
course_info
.
is_baoming
===
1
&&
course_info
.
is_baoming
===
1
&&
course_info
.
contact_type
==
1
&&
<
div
className
=
'group'
>
<
div
className
=
'group'
>
上课
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
上课
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
<
/div
>
<
/div
>
}
}
{
course_info
.
is_baoming
===
1
&&
course_info
.
contact_type
==
2
&&
<
div
className
=
'group'
>
请添加班主任微信:
{
course_info
.
course_qq
}
,添加时备注学号:
{
course_info
.
uid
}
<
/div
>
}
{
/*vip课程显示*/
}
{
/*vip课程显示*/
}
{
{
course_info
.
vip_range
&&
course_info
.
vip_range
&&
course_info
.
contact_type
==
1
&&
<
div
className
=
"vip"
>
<
div
className
=
"vip"
>
<
p
>
已开通年会员:
{
course_info
.
vip_range
}
<
/p
>
<
p
>
已开通年会员:
{
course_info
.
vip_range
}
<
/p
>
<
p
>
年会员
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
<
/p
>
<
p
>
年会员
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
<
/p
>
<
/div
>
<
/div
>
}
}
{
course_info
.
vip_range
&&
course_info
.
contact_type
==
2
&&
<
div
className
=
"vip"
>
<
p
>
已开通年会员:
{
course_info
.
vip_range
}
<
/p
>
<
p
>
请添加班主任微信:
{
course_info
.
course_qq
}
,添加时备注学号:
{
course_info
.
uid
}
<
/p
>
<
/div
>
}
{
/*服务承诺*/
}
{
/*服务承诺*/
}
<
div
className
=
'promise'
>
<
div
className
=
'promise'
>
...
@@ -565,7 +579,7 @@ class Detail extends Component {
...
@@ -565,7 +579,7 @@ class Detail extends Component {
{
/* 红包 */
}
{
/* 红包 */
}
{
{
isRedPacket
&&
isRedPacket
&&
<
RedPacket
<
RedPacket
history
=
{
this
.
props
.
history
}
history
=
{
this
.
props
.
history
}
country
=
{
this
.
props
.
country
}
country
=
{
this
.
props
.
country
}
...
...
src/components/detail/redPacket/index.js
View file @
50e0a104
...
@@ -39,7 +39,7 @@ class RedPacket extends PureComponent {
...
@@ -39,7 +39,7 @@ class RedPacket extends PureComponent {
endTime
:
10
,
// 手机绑定时限
endTime
:
10
,
// 手机绑定时限
countdownTimer
:
null
,
countdownTimer
:
null
,
countdown
:
'00分00秒'
,
// 绑定时间
countdown
:
'00分00秒'
,
// 绑定时间
accountInfo
:
{},
accountInfo
:
{},
bindInfo
:
{},
bindInfo
:
{},
country
:
{
country
:
{
num
:
'86'
num
:
'86'
...
@@ -53,7 +53,7 @@ class RedPacket extends PureComponent {
...
@@ -53,7 +53,7 @@ class RedPacket extends PureComponent {
// 分享链接进入
// 分享链接进入
this
.
judgePopupType
();
this
.
judgePopupType
();
// 微信进入
// 微信进入
const
isWechat
=
getParam
(
'wechat'
);
const
isWechat
=
getParam
(
'wechat'
);
const
{
userInfo
}
=
this
.
props
;
const
{
userInfo
}
=
this
.
props
;
...
@@ -64,7 +64,7 @@ class RedPacket extends PureComponent {
...
@@ -64,7 +64,7 @@ class RedPacket extends PureComponent {
http
.
get
(
`
${
API
.
home
}
/sys/redPacket/shareUrl/
${
getParam
(
'id'
)}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/redPacket/shareUrl/
${
getParam
(
'id'
)}
`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
if
(
code
===
200
)
{
// 检查收否领取过
// 检查收否领取过
http
.
post
(
http
.
post
(
`
${
API
.
home
}
/sys/redPacket/split`
,
`
${
API
.
home
}
/sys/redPacket/split`
,
...
@@ -76,7 +76,7 @@ class RedPacket extends PureComponent {
...
@@ -76,7 +76,7 @@ class RedPacket extends PureComponent {
const
{
code
,
data
}
=
res
.
data
;
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
if
(
code
===
200
)
{
window
.
localStorage
.
removeItem
(
'redpacket-click'
);
window
.
localStorage
.
removeItem
(
'redpacket-click'
);
// is_receive 是否领取过 0-否 1-是
// is_receive 是否领取过 0-否 1-是
if
(
data
.
is_receive
)
{
if
(
data
.
is_receive
)
{
this
.
judgeReceiveStatus
(
data
,
8
);
this
.
judgeReceiveStatus
(
data
,
8
);
}
else
{
}
else
{
...
@@ -105,6 +105,7 @@ class RedPacket extends PureComponent {
...
@@ -105,6 +105,7 @@ class RedPacket extends PureComponent {
// 获取分享信息
// 获取分享信息
fetchShareInfo
=
()
=>
{
fetchShareInfo
=
()
=>
{
const
share_code
=
getParam
(
'share_code'
);
const
share_code
=
getParam
(
'share_code'
);
http
.
get
(
`
${
API
.
home
}
/sys/redPacket/shareUrl/
${
getParam
(
'id'
)}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/redPacket/shareUrl/
${
getParam
(
'id'
)}
`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
const
{
code
,
data
}
=
res
.
data
;
...
@@ -145,7 +146,7 @@ class RedPacket extends PureComponent {
...
@@ -145,7 +146,7 @@ class RedPacket extends PureComponent {
});
});
}
else
{
}
else
{
// is_receive 是否领取过 0-否 1-是
// is_receive 是否领取过 0-否 1-是
if
(
data
.
is_receive
)
{
if
(
data
.
is_receive
)
{
this
.
judgeReceiveStatus
(
data
);
this
.
judgeReceiveStatus
(
data
);
}
else
{
}
else
{
...
@@ -188,7 +189,7 @@ class RedPacket extends PureComponent {
...
@@ -188,7 +189,7 @@ class RedPacket extends PureComponent {
const
{
code
,
data
}
=
res
.
data
;
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
if
(
code
===
200
)
{
// is_receive 是否领取过 0-否 1-是
// is_receive 是否领取过 0-否 1-是
if
(
data
.
is_receive
)
{
if
(
data
.
is_receive
)
{
this
.
judgeReceiveStatus
(
data
,
8
);
this
.
judgeReceiveStatus
(
data
,
8
);
}
else
{
}
else
{
...
@@ -545,7 +546,7 @@ class RedPacket extends PureComponent {
...
@@ -545,7 +546,7 @@ class RedPacket extends PureComponent {
const
{
accountInfo
:
{
tel
,
code
},
country
:
{
num
=
'0086'
}
}
=
this
.
state
;
const
{
accountInfo
:
{
tel
,
code
},
country
:
{
num
=
'0086'
}
}
=
this
.
state
;
// is_valid 是否验证 1:验证(默认),0不验证
// is_valid 是否验证 1:验证(默认),0不验证
http
.
post
(
http
.
post
(
`
${
API
[
'passport-api'
]}
/m/personal/bindPhone`
,
`
${
API
[
'passport-api'
]}
/m/personal/bindPhone`
,
{
{
area_code
:
num
.
padStart
(
4
,
'0'
),
area_code
:
num
.
padStart
(
4
,
'0'
),
phone_num
:
tel
,
phone_num
:
tel
,
...
@@ -577,17 +578,17 @@ class RedPacket extends PureComponent {
...
@@ -577,17 +578,17 @@ class RedPacket extends PureComponent {
render
()
{
render
()
{
// console.log(this.props);
// console.log(this.props);
const
{
history
,
userInfo
}
=
this
.
props
;
const
{
history
,
userInfo
}
=
this
.
props
;
const
{
const
{
type
,
type
,
isCopy
,
isCopy
,
validate
,
validate
,
isTimer
,
isTimer
,
seconds
,
seconds
,
shareInfo
:
{
shareInfo
:
{
command
=
''
,
command
=
''
,
share_code
=
''
share_code
=
''
},
},
money
,
money
,
doneInfo
,
doneInfo
,
countdown
,
countdown
,
endTime
,
endTime
,
...
@@ -612,7 +613,7 @@ class RedPacket extends PureComponent {
...
@@ -612,7 +613,7 @@ class RedPacket extends PureComponent {
{
/* wechat */
}
{
/* wechat */
}
{
{
type
==
2
&&
type
==
2
&&
<
div
className
=
"pupup-wechat"
>
<
div
className
=
"pupup-wechat"
>
<
h4
className
=
"popup-wechat__title"
>
当前环境不支持领红包活动
<
/h4
>
<
h4
className
=
"popup-wechat__title"
>
当前环境不支持领红包活动
<
/h4
>
<
p
className
=
"popup-wechat__desc"
>
请点击右上角“
···
”,选择在浏览器中打开
然后参与活动!
<
/p
>
<
p
className
=
"popup-wechat__desc"
>
请点击右上角“
···
”,选择在浏览器中打开
然后参与活动!
<
/p
>
...
@@ -633,7 +634,7 @@ class RedPacket extends PureComponent {
...
@@ -633,7 +634,7 @@ class RedPacket extends PureComponent {
{
!
isCopy
{
!
isCopy
?
userInfo
&&
userInfo
.
uid
?
userInfo
&&
userInfo
.
uid
?
(
?
(
<
CopyToClipboard
<
CopyToClipboard
text
=
{
command
}
text
=
{
command
}
onCopy
=
{()
=>
this
.
setState
({
onCopy
=
{()
=>
this
.
setState
({
isCopy
:
true
isCopy
:
true
...
@@ -643,8 +644,8 @@ class RedPacket extends PureComponent {
...
@@ -643,8 +644,8 @@ class RedPacket extends PureComponent {
<
/CopyToClipboard
>
<
/CopyToClipboard
>
)
)
:
(
:
(
<
button
<
button
className
=
"popup-password__button--copy"
className
=
"popup-password__button--copy"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
window
.
localStorage
.
setItem
(
'redpacket-click'
,
'copy'
);
window
.
localStorage
.
setItem
(
'redpacket-click'
,
'copy'
);
history
.
push
(
'/passport/login'
);
history
.
push
(
'/passport/login'
);
...
@@ -659,8 +660,8 @@ class RedPacket extends PureComponent {
...
@@ -659,8 +660,8 @@ class RedPacket extends PureComponent {
自己也可以领取哦
~
自己也可以领取哦
~
<
/p
>
<
/p
>
<
/div
>
<
/div
>
<
i
<
i
className
=
"popup-password__button--close iconfont iconiconfront-2"
className
=
"popup-password__button--close iconfont iconiconfront-2"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
if
(
getParam
(
'wechat'
)
===
'1'
)
{
if
(
getParam
(
'wechat'
)
===
'1'
)
{
if
(
userInfo
&&
userInfo
.
uid
)
{
if
(
userInfo
&&
userInfo
.
uid
)
{
...
@@ -683,14 +684,14 @@ class RedPacket extends PureComponent {
...
@@ -683,14 +684,14 @@ class RedPacket extends PureComponent {
<
/div
>
<
/div
>
}
}
{
/* red-packet--close */
}
{
/* red-packet--close */
}
{
{
type
===
3
&&
type
===
3
&&
<
Packet
<
Packet
type
=
{
3
}
type
=
{
3
}
packetInfo
=
{{
packetInfo
=
{{
title
:
'七月在线给你发了个红包~'
title
:
'七月在线给你发了个红包~'
}}
}}
handleToClose
=
{()
=>
this
.
handleToClose
(
false
)}
handleToClose
=
{()
=>
this
.
handleToClose
(
false
)}
handleToOpen
=
{
this
.
handleToOpen
}
handleToOpen
=
{
this
.
handleToOpen
}
...
@@ -700,7 +701,7 @@ class RedPacket extends PureComponent {
...
@@ -700,7 +701,7 @@ class RedPacket extends PureComponent {
{
/* red-packet--open */
}
{
/* red-packet--open */
}
{
{
type
===
4
&&
type
===
4
&&
<
Packet
<
Packet
type
=
{
4
}
type
=
{
4
}
packetInfo
=
{{
packetInfo
=
{{
money
,
money
,
...
@@ -721,7 +722,7 @@ class RedPacket extends PureComponent {
...
@@ -721,7 +722,7 @@ class RedPacket extends PureComponent {
{
/* red-packet--money success */
}
{
/* red-packet--money success */
}
{
{
type
===
5
&&
type
===
5
&&
<
Packet
<
Packet
type
=
{
5
}
type
=
{
5
}
packetInfo
=
{{
packetInfo
=
{{
money
,
money
,
...
@@ -744,7 +745,7 @@ class RedPacket extends PureComponent {
...
@@ -744,7 +745,7 @@ class RedPacket extends PureComponent {
{
/* red-packet--fragment success */
}
{
/* red-packet--fragment success */
}
{
{
type
===
6
&&
type
===
6
&&
<
Packet
<
Packet
type
=
{
6
}
type
=
{
6
}
packetInfo
=
{{
packetInfo
=
{{
money
,
money
,
...
@@ -767,7 +768,7 @@ class RedPacket extends PureComponent {
...
@@ -767,7 +768,7 @@ class RedPacket extends PureComponent {
{
/* red-packet--late 来完了 */
}
{
/* red-packet--late 来完了 */
}
{
{
type
===
7
&&
type
===
7
&&
<
Packet
<
Packet
type
=
{
7
}
type
=
{
7
}
packetInfo
=
{{
packetInfo
=
{{
btn
:
{
btn
:
{
...
@@ -795,7 +796,7 @@ class RedPacket extends PureComponent {
...
@@ -795,7 +796,7 @@ class RedPacket extends PureComponent {
}}
}}
validate
=
{({
tel
,
code
})
=>
{
validate
=
{({
tel
,
code
})
=>
{
const
errors
=
{};
const
errors
=
{};
// if (!validateTel(tel)) {
// if (!validateTel(tel)) {
if
(
!
/^
\d
+$/
.
test
(
tel
))
{
if
(
!
/^
\d
+$/
.
test
(
tel
))
{
errors
.
tel
=
'请填写正确格式的手机号'
;
errors
.
tel
=
'请填写正确格式的手机号'
;
...
@@ -803,7 +804,7 @@ class RedPacket extends PureComponent {
...
@@ -803,7 +804,7 @@ class RedPacket extends PureComponent {
if
(
!
/
[
0-9
]{6}
/
.
test
(
code
))
{
if
(
!
/
[
0-9
]{6}
/
.
test
(
code
))
{
errors
.
code
=
'请输入验证码'
;
errors
.
code
=
'请输入验证码'
;
}
}
return
errors
;
return
errors
;
}}
}}
onSubmit
=
{(
values
,
{
setStatus
,
setSubmitting
})
=>
{
onSubmit
=
{(
values
,
{
setStatus
,
setSubmitting
})
=>
{
...
@@ -818,8 +819,8 @@ class RedPacket extends PureComponent {
...
@@ -818,8 +819,8 @@ class RedPacket extends PureComponent {
<
Form
className
=
"popup-form__content"
>
<
Form
className
=
"popup-form__content"
>
<
h4
className
=
"popup-form__title"
>
绑定手机号
<
/h4
>
<
h4
className
=
"popup-form__title"
>
绑定手机号
<
/h4
>
<
div
className
=
"popup-form__item"
>
<
div
className
=
"popup-form__item"
>
<
a
<
a
className
=
"popup-form__button--num"
className
=
"popup-form__button--num"
href
=
{
`/country?id=
${
getParam
(
'id'
)}
&share_code=
${
share_code
}
`
}
>
href
=
{
`/country?id=
${
getParam
(
'id'
)}
&share_code=
${
share_code
}
`
}
>
+
{
country
.
num
}
+
{
country
.
num
}
<
i
className
=
"iconfont iconiconfront-69"
><
/i
>
<
i
className
=
"iconfont iconiconfront-69"
><
/i
>
...
@@ -828,9 +829,9 @@ class RedPacket extends PureComponent {
...
@@ -828,9 +829,9 @@ class RedPacket extends PureComponent {
name
=
"tel"
name
=
"tel"
render
=
{({
field
})
=>
{
render
=
{({
field
})
=>
{
return
(
return
(
<
input
<
input
{...
field
}
{...
field
}
className
=
"popup-form__ipt"
className
=
"popup-form__ipt"
data
-
bdrs
=
"0 6px 6px 0"
data
-
bdrs
=
"0 6px 6px 0"
data
-
type
=
"tel"
data
-
type
=
"tel"
type
=
"text"
type
=
"text"
...
@@ -840,7 +841,7 @@ class RedPacket extends PureComponent {
...
@@ -840,7 +841,7 @@ class RedPacket extends PureComponent {
}}
}}
/
>
/
>
<
/div
>
<
/div
>
<
Captcha
<
Captcha
mrBtm
=
{
15
}
mrBtm
=
{
15
}
getInstance
=
{
this
.
getCaptchaInstance
}
getInstance
=
{
this
.
getCaptchaInstance
}
onVerify
=
{
this
.
onVerify
}
onVerify
=
{
this
.
onVerify
}
...
@@ -854,8 +855,8 @@ class RedPacket extends PureComponent {
...
@@ -854,8 +855,8 @@ class RedPacket extends PureComponent {
绑定超时,红包已失效
!
绑定超时,红包已失效
!
<
/p
>
<
/p
>
<
/div
>
<
/div
>
<
button
<
button
className
=
"popup-packet__button--bundle"
className
=
"popup-packet__button--bundle"
data
-
status
=
"do"
data
-
status
=
"do"
type
=
"button"
type
=
"button"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
...
@@ -870,7 +871,7 @@ class RedPacket extends PureComponent {
...
@@ -870,7 +871,7 @@ class RedPacket extends PureComponent {
name
=
"code"
name
=
"code"
render
=
{({
field
})
=>
{
render
=
{({
field
})
=>
{
return
(
return
(
<
input
<
input
{...
field
}
{...
field
}
className
=
"popup-form__ipt popup-form__ipt--left"
className
=
"popup-form__ipt popup-form__ipt--left"
type
=
"text"
type
=
"text"
...
@@ -879,7 +880,7 @@ class RedPacket extends PureComponent {
...
@@ -879,7 +880,7 @@ class RedPacket extends PureComponent {
);
);
}}
}}
/
>
/
>
<
button
<
button
className
=
"popup-form__button--code"
className
=
"popup-form__button--code"
data
-
status
=
{(
validate
&&
!
isTimer
)?
'do'
:
''
}
data
-
status
=
{(
validate
&&
!
isTimer
)?
'do'
:
''
}
type
=
"button"
type
=
"button"
...
@@ -890,8 +891,8 @@ class RedPacket extends PureComponent {
...
@@ -890,8 +891,8 @@ class RedPacket extends PureComponent {
}
}
<
/button
>
<
/button
>
<
/div
>
<
/div
>
<
button
<
button
className
=
"popup-packet__button--bundle"
className
=
"popup-packet__button--bundle"
data
-
status
=
{(
tel
&&
code
&&
isEmpty
(
errors
))?
'do'
:
'done'
}
data
-
status
=
{(
tel
&&
code
&&
isEmpty
(
errors
))?
'do'
:
'done'
}
type
=
"submit"
type
=
"submit"
>
>
...
@@ -903,8 +904,8 @@ class RedPacket extends PureComponent {
...
@@ -903,8 +904,8 @@ class RedPacket extends PureComponent {
<
/Form
>
<
/Form
>
)}
)}
/
>
/
>
<
i
<
i
className
=
"popup-password__button--close iconfont iconiconfront-2"
className
=
"popup-password__button--close iconfont iconiconfront-2"
onClick
=
{()
=>
this
.
handleToClose
(
false
)}
onClick
=
{()
=>
this
.
handleToClose
(
false
)}
/
>
/
>
<
/div
>
<
/div
>
...
@@ -923,8 +924,8 @@ class RedPacket extends PureComponent {
...
@@ -923,8 +924,8 @@ class RedPacket extends PureComponent {
{
doneInfo
.
txt
}
{
doneInfo
.
txt
}
<
/h4
>
<
/h4
>
<
p
className
=
"popup-done__desc"
>
{
doneInfo
.
desc
}
<
/p
>
<
p
className
=
"popup-done__desc"
>
{
doneInfo
.
desc
}
<
/p
>
<
button
<
button
className
=
"popup-packet__button--bundle"
className
=
"popup-packet__button--bundle"
data
-
status
=
"do"
data
-
status
=
"do"
type
=
"submit"
type
=
"submit"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
...
@@ -932,8 +933,8 @@ class RedPacket extends PureComponent {
...
@@ -932,8 +933,8 @@ class RedPacket extends PureComponent {
}}
}}
>
获取更多奖励
<
/button
>
>
获取更多奖励
<
/button
>
<
/div
>
<
/div
>
<
i
<
i
className
=
"popup-password__button--close iconfont iconiconfront-2"
className
=
"popup-password__button--close iconfont iconiconfront-2"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
const
isShare
=
getParam
(
'share_code'
)?
true
:
false
;
const
isShare
=
getParam
(
'share_code'
)?
true
:
false
;
this
.
handleToClose
(
false
,
isShare
);
this
.
handleToClose
(
false
,
isShare
);
...
@@ -944,7 +945,7 @@ class RedPacket extends PureComponent {
...
@@ -944,7 +945,7 @@ class RedPacket extends PureComponent {
{
/* 手机号绑定提示 */
}
{
/* 手机号绑定提示 */
}
{
{
type
===
10
&&
type
===
10
&&
<
div
className
=
"popup-bind"
>
<
div
className
=
"popup-bind"
>
<
div
className
=
"popup-bind__content"
>
<
div
className
=
"popup-bind__content"
>
<
h4
className
=
"popup-bind__title"
>
绑定确认
<
/h4
>
<
h4
className
=
"popup-bind__title"
>
绑定确认
<
/h4
>
...
@@ -953,7 +954,7 @@ class RedPacket extends PureComponent {
...
@@ -953,7 +954,7 @@ class RedPacket extends PureComponent {
{
{
bindInfo
[
'email'
]
&&
bindInfo
[
'email'
]
&&
<
li
className
=
"popup-bind__account"
>
<
li
className
=
"popup-bind__account"
>
{
/* 邮箱 */
}
{
/* 邮箱 */
}
<
i
className
=
"iconfont iconduanxin"
><
/i
>
<
i
className
=
"iconfont iconduanxin"
><
/i
>
<
p
className
=
"popup-bind__account--name"
>
{
bindInfo
[
'email'
]}
<
/p
>
<
p
className
=
"popup-bind__account--name"
>
{
bindInfo
[
'email'
]}
<
/p
>
...
@@ -988,16 +989,16 @@ class RedPacket extends PureComponent {
...
@@ -988,16 +989,16 @@ class RedPacket extends PureComponent {
}
}
<
/ul
>
<
/ul
>
<
div
className
=
"popup-bind__button"
>
<
div
className
=
"popup-bind__button"
>
<
button
<
button
className
=
"popup-bind__button--cancle"
className
=
"popup-bind__button--cancle"
onClick
=
{()
=>
this
.
handleToClose
(
false
)}
>
取消
<
/button
>
onClick
=
{()
=>
this
.
handleToClose
(
false
)}
>
取消
<
/button
>
<
button
<
button
className
=
"popup-bind__button--confirm"
className
=
"popup-bind__button--confirm"
onClick
=
{()
=>
this
.
toContinueBind
(
0
)}
>
继续绑定
<
/button
>
onClick
=
{()
=>
this
.
toContinueBind
(
0
)}
>
继续绑定
<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
i
<
i
className
=
"popup-password__button--close iconfont iconiconfront-2"
className
=
"popup-password__button--close iconfont iconiconfront-2"
onClick
=
{()
=>
this
.
handleToClose
(
false
)}
onClick
=
{()
=>
this
.
handleToClose
(
false
)}
/
>
/
>
<
/div
>
<
/div
>
...
@@ -1059,7 +1060,7 @@ const Packet = ({type, packetInfo, handleToClose, handleToOpen }) => {
...
@@ -1059,7 +1060,7 @@ const Packet = ({type, packetInfo, handleToClose, handleToOpen }) => {
})
})
}
}
<
/p
>
<
/p
>
<
button
<
button
className
=
"popup-packet__button--bundle"
className
=
"popup-packet__button--bundle"
onClick
=
{
btn
.
onClick
}
onClick
=
{
btn
.
onClick
}
>
>
...
@@ -1075,7 +1076,7 @@ const Packet = ({type, packetInfo, handleToClose, handleToOpen }) => {
...
@@ -1075,7 +1076,7 @@ const Packet = ({type, packetInfo, handleToClose, handleToOpen }) => {
红包仅能当日领取,下次
<
br
/>
红包仅能当日领取,下次
<
br
/>
早点来哦
~
早点来哦
~
<
/p
>
<
/p
>
<
button
<
button
className
=
"popup-packet__button--bundle"
className
=
"popup-packet__button--bundle"
onClick
=
{
btn
.
onClick
}
onClick
=
{
btn
.
onClick
}
>
>
...
@@ -1084,8 +1085,8 @@ const Packet = ({type, packetInfo, handleToClose, handleToOpen }) => {
...
@@ -1084,8 +1085,8 @@ const Packet = ({type, packetInfo, handleToClose, handleToOpen }) => {
<
/
>
<
/
>
}
}
<
/div
>
<
/div
>
<
i
<
i
className
=
"popup-password__button--close iconfont iconiconfront-2"
className
=
"popup-password__button--close iconfont iconiconfront-2"
onClick
=
{
handleToClose
}
onClick
=
{
handleToClose
}
/
>
/
>
<
/div
>
<
/div
>
...
...
src/components/purchased/index.js
View file @
50e0a104
...
@@ -64,10 +64,18 @@ class Purchased extends Component {
...
@@ -64,10 +64,18 @@ class Purchased extends Component {
{
/* </Link> */
}
{
/* </Link> */
}
<
/p
>
<
/p
>
<
p
className
=
'contact text-overflow-2'
>
{
item
.
simpledescription
}
<
/p
>
<
p
className
=
'contact text-overflow-2'
>
{
item
.
simpledescription
}
<
/p
>
{
item
.
is_aist
&&
<
div
className
=
'des'
>
助教微信:
{
item
.
assist_weixin
}
<
/div
>
}
{
!
item
.
is_aist
&&
item
.
contact_type
==
1
&&
<
div
className
=
'des'
>
QQ
群:
{
item
.
course_qq
}
<
/div
>
}
{
{
item
.
is_aist
!
item
.
is_aist
&&
item
.
contact_type
==
2
&&
?
<
div
className
=
'des'
>
助教微信:
{
item
.
assist_weixin
}
<
/div
>
<
div
className
=
'des'
>
班主任微信:
{
item
.
course_qq
}
<
/div
>
:
<
div
className
=
'des'
>
QQ
群:
{
item
.
course_qq
}
<
/div
>
}
}
<
/div
>
<
/div
>
)
)
...
...
src/components/study/myCourses/index.js
View file @
50e0a104
...
@@ -123,11 +123,19 @@ class MyCourses extends Component {
...
@@ -123,11 +123,19 @@ class MyCourses extends Component {
<
div
className
=
"info"
>
<
div
className
=
"info"
>
<
div
className
=
'title'
>
{
item
.
course_title
}
<
/div
>
<
div
className
=
'title'
>
{
item
.
course_title
}
<
/div
>
{
{
item
.
is_aist
item
.
is_aist
&&
?
<
div
className
=
'contact'
>
助教微信:
{
item
.
assist_weixin
}
<
/div
>
<
div
className
=
'contact'
>
助教微信:
{
item
.
assist_weixin
}
<
/div
>
:
<
div
className
=
'contact'
>
QQ
群:
{
item
.
course_qq
}
<
/div
>
}
}
{
{
!
item
.
is_aist
&&
item
.
contact_type
==
1
&&
<
div
className
=
'contact'
>
QQ
群:
{
item
.
course_qq
}
<
/div
>
}
{
!
item
.
is_aist
&&
item
.
contact_type
==
2
&&
<
div
className
=
'contact'
>
班主任微信:
{
item
.
course_qq
}
<
/div
>
}
{
item
.
is_aist
&&
item
.
aist_schedule
&&
item
.
is_aist
&&
item
.
aist_schedule
&&
<
div
className
=
"process-status"
>
<
div
className
=
"process-status"
>
<
div
className
=
"process-wrapper"
>
<
div
className
=
"process-wrapper"
>
...
...
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