video curcse
All checks were successful
Deploy to Server / deploy (push) Successful in 36s

This commit is contained in:
jeremygan2021
2026-02-27 14:09:11 +08:00
parent f9c104452b
commit a47be29bf1
4 changed files with 64 additions and 17 deletions

View File

@@ -78,15 +78,39 @@
height: 420px;
background-color: #111;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1);
.locked-bg {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
opacity: 0.5;
filter: blur(4px);
}
.locked-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.6);
}
.lock-icon {
font-size: 60px;
margin-bottom: 20px;
color: #00f0ff;
}
.lock-text {

View File

@@ -100,9 +100,12 @@ export default function CourseDetail() {
/>
) : (
<View className='video-locked' onClick={handleLaunch}>
<View className='lock-icon'>🔒</View>
<Text className='lock-text'></Text>
<Button className='btn-unlock'></Button>
<Image src={detail.cover_image_url} className='locked-bg' mode='aspectFill' />
<View className='locked-overlay'>
<View className='lock-icon'>🔒</View>
<Text className='lock-text'></Text>
<Button className='btn-unlock'></Button>
</View>
</View>
)}
</View>
@@ -193,7 +196,9 @@ export default function CourseDetail() {
<Text className='label'>:</Text>
<Text className='amount'>¥{detail.price}</Text>
</View>
<Button className='btn-buy' onClick={handleLaunch}></Button>
<Button className='btn-buy' onClick={handleLaunch}>
{detail.is_video_course ? '立即购买' : '立即报名'}
</Button>
</View>
</View>
)

View File

@@ -342,7 +342,7 @@ export default function UserIndex() {
)}
<Text className='uid'>ID: {userInfo ? (userInfo.phone_number || userInfo.id || '----') : '----'}</Text>
{!userInfo && (
{!userInfo?.phone_number && (
<View className='login-btns'>
<Button
className='btn-login primary'