longCourse.vue
2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<template>
<view class="detail-box">
<view class="nav-bar">
<view class="back" @click="backPage(null)">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">任务详情</view>
</view>
<view class="course-detail-box">
<view class="course-detail-img-box">
<image class="course-detail-img" src="../../../assets/images/common/course-default-bg.webp" mode="scaleToFill" />
<view class="time-limit-tag"></view>
</view>
<view class="course-detail-content">
<view class="course-title">鸿蒙智行客户沟通技巧解析</view>
<view class="course-progress">
<view class="progress-label">任务进度</view>
<view class="progress-bar"></view>
</view>
<view class="course-info">
<view class="info-label">课程数</view>
<view class="info-value">6节|69min</view>
</view>
<view class="course-finish-time">
<view class="finish-label">完成时间</view>
<view class="finish-value">2025.05.25 18:00</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
}
}
</script>
<style scoped lang="scss">
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding: toRpx(160) toRpx(64) 0;
}
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
.course-detail-box {
display: flex;
border-radius: toRpx(32);
background: #ffffff59;
box-shadow: inset 0 0 16px 0 #ffffff;
padding: toRpx(32) toRpx(48);
.course-detail-img-box {
position: relative;
margin-right: toRpx(40);
.course-detail-img {
width: toRpx(472);
height: toRpx(279);
border-radius: toRpx(24);
}
.time-limit-tag {
position: absolute;
top: 0;
left: 0;
width: toRpx(122);
height: toRpx(48);
background-image: url('../../../assets/images/common/limit-page.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
z-index: 1;
color: #fff;
}
}
.course-detail-content {
.course-title {
font-size: toRpx(32);
color: #1a1a1a;
}
}
}
</style>