This commit is contained in:
shijingjing
2023-03-23 13:39:14 +08:00
parent 2eb5df3759
commit 410d0e70e0
2 changed files with 3 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
</div> </div>
<div> <div>
<OnlineClass ref="OnlineClass" :height="height" @to-detail="toDetail" v-show="currIndex == 0"></OnlineClass> <OnlineClass ref="OnlineClass" :height="height" @to-detail="toDetail" v-show="currIndex == 0"></OnlineClass>
<GeneralLawExam ref="GeneralLawExam" :height="height" @to-study="toStudy" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam> <GeneralLawExam ref="GeneralLawExam" :height="height" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam>
</div> </div>
</div> </div>
</template> </template>
@@ -78,9 +78,6 @@ export default {
toDetail(id) { toDetail(id) {
uni.navigateTo({url: "./classDetail?id=" + id}) uni.navigateTo({url: "./classDetail?id=" + id})
}, },
toStudy() {
this.currIndex == 1
}
} }
} }
</script> </script>

View File

@@ -218,6 +218,8 @@ export default {
.card_top { .card_top {
position: relative; position: relative;
border-radius: 16px 16px 0 0; border-radius: 16px 16px 0 0;
padding: 38px;
box-sizing: border-box;
.card_title { .card_title {
font-weight: 500; font-weight: 500;