lsc 10 ヶ月 前
コミット
a4f850ac8c

BIN
src/assets/icon/pblCourse/top_book.png


BIN
src/assets/icon/pblCourse/top_book_active.png


BIN
src/assets/icon/pblCourse/top_pbl.png


+ 1 - 1
src/components/pages/classroomObservation/components/analysisItem.vue

@@ -1,6 +1,6 @@
 <template>
 	<div class="analysisItem">
-		<div class="ai-header">
+		<div class="ai-header" v-show="data.jsonData.name != '词频词汇分析'">
 			<div class="ai-h-left" @click.stop="changeOpenItem(!openItem)">
 				<span
 					:class="['ai-h-l-icon', openItem ? 'ai-h-l-iconActive' : '']"

+ 133 - 3
src/components/pages/pblCourse/component/procedureArea.vue

@@ -1,12 +1,40 @@
 <template>
 	<div class="procedure">
-		<h1>题目</h1>
+		<div class="title">5EX挑战</div>
+		<div class="content" ref="content">
+			<div class="procedure_content" v-for="(i, index) in 5" :key="index" :class="{active: aIndex >= index}">
+				<i class="img" :class="{ isDo : doIndex >= index}"></i>
+				<i class="dot"></i>
+				<span class="name">
+					<span>阶段{{ index+1 }}</span>
+				</span>
+				<div class="stepBorder" v-if="i != 5" :style="{width: `calc(${contentWidth} / (${5 - 1}))`}" :class="{active: aIndex > index}"></div>
+			</div>
+			
+		</div>
 	</div>
 </template>
 
 <script>
 	export default {
-		
+		data() {
+			return {
+				contentWidth:"100px",
+				aIndex: 2,
+				doIndex: 1,
+			}
+		},
+		mounted () {
+			this.$nextTick(() => {
+				this.contentWidth = this.$refs.content.offsetWidth + "px";
+    			window.addEventListener("resize", () => {
+					this.contentWidth = this.$refs.content.offsetWidth + "px";
+				})
+			})
+		},
+		methods: {
+
+		},
 	}
 </script>
 
@@ -14,6 +42,108 @@
 .procedure{
 	width: 100%;
 	height: 100%;
-	background-color: purple;
+	background-image: url('../../../../assets/icon/pblCourse/top_pbl.png');
+	background-size: 100% 100%;
+    border-radius: 15px;
+	position: relative;
+	display: flex;
+    align-items: center;
+    justify-content: center;
+}
+
+
+.procedure .title{
+	position: absolute;
+    top: 0;
+    color: #fff;
+    background: linear-gradient(90deg, rgba(54, 115, 232, 0) 0%, #727EF3 50%, rgba(54, 115, 232, 0) 100%);
+    width: 190px;
+    height: 24px;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    font-size: 14px;
+}
+.procedure .content{
+	display: flex;
+    width: calc(100% - 40px);
+    margin: 0 auto;
+    justify-content: space-between;
+	position: relative;
+}
+.content .procedure_content{
+	display: flex;
+    flex-direction: column;
+    align-items: center;
+	position: relative;
+}
+.content .procedure_content > .img.isDo{
+	background-image: url('../../../../assets/icon/pblCourse/top_book_active.png');
+}
+.content .procedure_content > .img{
+	background-image: url('../../../../assets/icon/pblCourse/top_book.png');
+    display: block;
+    width: 40px;
+    height: 40px;
+    background-size: 100% 100%;
+}
+.content .procedure_content > .dot{
+	border: 2px solid #c8aeff;
+    width: 16px;
+    height: 16px;
+    border-radius: 28px;
+    margin-bottom: 10px;
+	z-index: 1;
+	background: #FFFFFF59;
+	box-sizing: border-box;
+}
+
+.content .procedure_content.active > .dot{
+	border: none;
+    background: linear-gradient(90deg, #3673E8 0%, #AD88FD 100%);
+}
+
+.content .procedure_content > .name{
+	background: rgba(255, 255, 255, .55);
+	border: 2px solid #c8aeff;
+    display: block;
+    border-radius: 49px;
+    font-size: 16px;
+    padding: 3px 7px;
+    font-weight: 600;
+	position: relative;
+	overflow: hidden;
+}
+
+.content .procedure_content.active > .name{
+	border: none;
+    background: linear-gradient(90deg, #3673E8 0%, #AD88FD 100%);
+}
+
+.content .procedure_content > .name > span{
+	background-image: linear-gradient(90deg, #3673E8 0%, #AD88FD 100%);
+    background-clip: text;
+    color: transparent;
+}
+
+.content .procedure_content.active > .name > span{
+	background-image: unset;
+    background-clip: unset;
+    color: #fff;
+}
+
+.content .procedure_content > .stepBorder{
+	position: absolute;
+    width: 100%;
+    height: 10px;
+    border: 1px solid #FFFFFF59;
+    background: #FFFFFF8C;
+    left: 22px;
+    top: 43px;
+    box-sizing: border-box;
+}
+
+.content .procedure_content > .stepBorder.active{
+	background: linear-gradient(90deg, #3673E8 0%, #AD88FD 100%);
 }
 </style>

+ 1 - 1
src/components/pages/pblCourse/index.vue

@@ -41,7 +41,7 @@ export default {
 <style scoped>
 .pblCourse {
 	min-width: 1500px;
-	min-height: 800px;
+	/* min-height: 800px; */
 	width: 100%;
 	height: 100vh;
 	display: flex;