This commit is contained in:
@@ -425,22 +425,26 @@ const VCCourseDetail = () => {
|
||||
size="large"
|
||||
block
|
||||
icon={course.is_video_course ? <PlayCircleOutlined /> : <FormOutlined />}
|
||||
disabled={course.is_purchased}
|
||||
style={{
|
||||
height: 50,
|
||||
background: '#00f0ff',
|
||||
borderColor: '#00f0ff',
|
||||
color: '#000',
|
||||
background: course.is_purchased ? '#333' : '#00f0ff',
|
||||
borderColor: course.is_purchased ? '#444' : '#00f0ff',
|
||||
color: course.is_purchased ? '#888' : '#000',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '16px'
|
||||
fontSize: '16px',
|
||||
cursor: course.is_purchased ? 'not-allowed' : 'pointer'
|
||||
}}
|
||||
onClick={() => setIsModalOpen(true)}
|
||||
onClick={() => !course.is_purchased && setIsModalOpen(true)}
|
||||
>
|
||||
{course.is_video_course ? '购买视频课程' : '立即报名 / 咨询'}
|
||||
{course.is_purchased ? '已购买' : (course.is_video_course ? '购买视频课程' : '立即报名 / 咨询')}
|
||||
</Button>
|
||||
<p style={{ color: '#666', marginTop: 15, fontSize: 12, textAlign: 'center' }}>
|
||||
{course.is_video_course
|
||||
? '* 支付成功后自动解锁视频内容'
|
||||
: '* 提交后我们的顾问将尽快与您联系确认'}
|
||||
{course.is_purchased
|
||||
? '* 您已拥有该课程,可直接观看视频'
|
||||
: (course.is_video_course
|
||||
? '* 支付成功后自动解锁视频内容'
|
||||
: '* 提交后我们的顾问将尽快与您联系确认')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user