普法考试
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
<u-tabs :list="tabs" font-size="32" bg-color="#f3f5f7" inactive-color="#999999"
|
||||
:active-item-style="{color: '#222222'}" :is-scroll="true" :current="currIndex" @change="(i) => (currIndex = i)"> </u-tabs>
|
||||
</div>
|
||||
<AppOnlineClass ref="OnlineClass" v-show="currIndex == 0"></AppOnlineClass>
|
||||
<AppGeneralLawExam ref="GeneralLawExam" v-show="currIndex == 1"></AppGeneralLawExam>
|
||||
<OnlineClass ref="OnlineClass" v-show="currIndex == 0"></OnlineClass>
|
||||
<GeneralLawExam ref="GeneralLawExam" @LinkToTest="LinkToTest" v-show="currIndex == 1"></GeneralLawExam>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AppOnlineClass from './components/AppOnlineClass.vue'
|
||||
import AppGeneralLawExam from './components/AppGeneralLawExam.vue'
|
||||
import OnlineClass from './components/OnlineClass.vue'
|
||||
import GeneralLawExam from './components/GeneralLawExam.vue'
|
||||
export default {
|
||||
name: 'AppLegalLearning',
|
||||
appName: '法治学习',
|
||||
@@ -31,8 +31,8 @@ export default {
|
||||
onShow() {
|
||||
},
|
||||
components: {
|
||||
AppOnlineClass,
|
||||
AppGeneralLawExam
|
||||
OnlineClass,
|
||||
GeneralLawExam
|
||||
},
|
||||
watch: {
|
||||
currIndex: {
|
||||
@@ -44,6 +44,11 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
LinkToTest() {
|
||||
uni.navigateTo({url: "./testForm"})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user