|
|
@@ -6,13 +6,11 @@
|
|
|
<div class="span_number">1</div>选择练习知识点
|
|
|
</div>
|
|
|
<div class="step_line">
|
|
|
- ------------------------------
|
|
|
</div>
|
|
|
<div class="step_item" :class="stepIndex==2?'step_item_cur':''" @click="ChangeStep(2)">
|
|
|
<div class="span_number">2</div>知识点练习作答
|
|
|
</div>
|
|
|
<div class="step_line">
|
|
|
- ------------------------------
|
|
|
</div>
|
|
|
<div class="step_item" :class="stepIndex==3?'step_item_cur':''" @click="ChangeStep(3)">
|
|
|
<div class="span_number">3</div>查看练习结果
|
|
|
@@ -49,7 +47,7 @@ export default {
|
|
|
...mapState('target', ['subjectCode'])
|
|
|
},
|
|
|
watch:{
|
|
|
- // 监听store里面subjectCode变化
|
|
|
+ // 监听顶部的subjectCode变化
|
|
|
subjectCode(newVal, oldVal){
|
|
|
console.log('科目编码改变了', newVal, oldVal)
|
|
|
// ========= 业务逻辑写这里 =========
|
|
|
@@ -74,95 +72,5 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-.target_step
|
|
|
-{
|
|
|
- display: flex;
|
|
|
- justify-content: flex-start;
|
|
|
- align-items: center;
|
|
|
- padding: 10px 20px;
|
|
|
- height: 78px;
|
|
|
|
|
|
- .step_item
|
|
|
- {
|
|
|
- width: 260px;
|
|
|
- height: 50px;
|
|
|
- border-radius: 10px 10px 10px 10px;
|
|
|
- border: 1px solid #DCDFE6;
|
|
|
- line-height: 50px;
|
|
|
-
|
|
|
- font-weight: 550;
|
|
|
- font-size: 16px;
|
|
|
- color: #333333;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- gap: 14px;
|
|
|
- cursor: pointer;
|
|
|
- .span_number
|
|
|
- {
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- text-align: center;
|
|
|
- border-radius: 50%;
|
|
|
- border: 1px solid #2E64FA;
|
|
|
- background: #EBF0FF;
|
|
|
-
|
|
|
- font-weight: 550;
|
|
|
- font-size: 16px;
|
|
|
- color: #2E64FA;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .step_item_cur
|
|
|
- {
|
|
|
-
|
|
|
- border-radius: 10px 10px 10px 10px;
|
|
|
- border: 1px solid #2E64FA;
|
|
|
- line-height: 50px;
|
|
|
- background: #2E64FA10;
|
|
|
- font-weight: 550;
|
|
|
- font-size: 16px;
|
|
|
- color: #2E64FA;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- gap: 14px;
|
|
|
- cursor: pointer;
|
|
|
- .span_number
|
|
|
- {
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- text-align: center;
|
|
|
- border-radius: 50%;
|
|
|
- border: 1px solid #2E64FA;
|
|
|
- background: #2E64FA;
|
|
|
-
|
|
|
- font-weight: 550;
|
|
|
- font-size: 16px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .step_line
|
|
|
- {
|
|
|
- // min-width:200px;
|
|
|
- width:calc(50% - 390px);
|
|
|
- height:10px;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- line-height: 10px;
|
|
|
- font-weight: 550;
|
|
|
- font-size: 16px;
|
|
|
- color: #2E64FA;
|
|
|
- letter-spacing: 0.1em;
|
|
|
- overflow: hidden;
|
|
|
- padding: 0 10px;
|
|
|
- padding-top: 5px;
|
|
|
-
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|