英文单词错误,普法考试分页

This commit is contained in:
liuye
2023-05-19 10:37:08 +08:00
parent 3fff4143d4
commit ada042974b
21 changed files with 50 additions and 31 deletions

View File

@@ -119,7 +119,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.returnHomeRegister { .returnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -222,7 +222,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.photo { .photo {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -103,7 +103,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.returnHomeRegister { .returnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -111,7 +111,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.activity { .activity {
padding-bottom: 40px; padding-bottom: 40px;

View File

@@ -76,7 +76,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.user { .user {
padding: 32px 32px 40px; padding: 32px 32px 40px;

View File

@@ -222,7 +222,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.photo { .photo {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -169,7 +169,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.returnHomeRegister { .returnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -155,7 +155,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.AppReturnHomeRegister { .AppReturnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -222,7 +222,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.photo { .photo {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -103,7 +103,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.AppGetewayRegister { .AppGetewayRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -113,7 +113,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.returnHomeRegister { .returnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -103,7 +103,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.returnHomeRegister { .returnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;

View File

@@ -111,7 +111,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.activity { .activity {
padding-bottom: 40px; padding-bottom: 40px;

View File

@@ -1,11 +1,11 @@
<template> <template>
<div class="AppLegalLearning"> <div class="AppLegalLearning" :style="{'height': screenHeight+'px'}">
<u-navbar title="普法学习" title-color="#000" title-size="32" :background="{background: '#f4f6fa'}" :is-back="false" :title-bold="true"></u-navbar> <u-navbar title="普法学习" title-color="#000" title-size="32" :background="{background: '#f4f6fa'}" :is-back="false" :title-bold="true"></u-navbar>
<div class="tabs_box"> <div class="tabs_box">
<u-tabs :list="tabs" font-size="32" bg-color="#f3f5f7" inactive-color="#999999" <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> :active-item-style="{color: '#222222'}" :is-scroll="true" :current="currIndex" @change="(i) => (currIndex = i)"> </u-tabs>
</div> </div>
<div> <div :style="{'height': (screenHeight-125)+'px'}">
<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-test="toTest" v-show="currIndex == 1"></GeneralLawExam> <GeneralLawExam ref="GeneralLawExam" :height="height" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam>
</div> </div>
@@ -67,7 +67,7 @@ export default {
}, },
screenHeight(v) { screenHeight(v) {
if(v) { if(v) {
this.height = this.screenHeight - 250 this.height = this.screenHeight - 200
} }
} }
}, },
@@ -78,15 +78,23 @@ export default {
toDetail(id) { toDetail(id) {
uni.navigateTo({url: "./classDetail?id=" + id}) uni.navigateTo({url: "./classDetail?id=" + id})
}, },
} },
onReachBottom() {
var refName = this.currIndex == 1 ? 'GeneralLawExam' : 'OnlineClass'
this.$refs[refName].nextList()
},
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.AppGeneralLawExam { .AppGeneralLawExam {
height: 100vh;
.tabs_box { .tabs_box {
height: 100px; height: 100px;
line-height: 100px; line-height: 100px;
} }
.component-content {
height: 100%;
}
} }
</style> </style>

View File

@@ -84,22 +84,30 @@ export default {
testList: [], testList: [],
testId: '', testId: '',
studyDuration: '', studyDuration: '',
pages: 2
} }
}, },
computed: { computed: {
...mapState(['user']) ...mapState(['user'])
}, },
methods: { methods: {
nextList() {
this.current ++
this.getList()
},
getList() { getList() {
if(this.current > this.pages) return
this.$instance.post(`/app/appexaminationinfo/listForXCX`, null, { this.$instance.post(`/app/appexaminationinfo/listForXCX`, null, {
params: { params: {
current: this.current, current: this.current,
size: 3000, size: 10,
title: this.title title: this.title
} }
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
this.testList = res.data.records // this.testList = res.data.records
this.testList = this.current==1? res.data.records: [...this.testList,...res.data.records]
this.pages = res.data.pages
this.getStudyDuration() this.getStudyDuration()
} }
}) })
@@ -186,7 +194,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.GeneralLawExam { .GeneralLawExam {
.search_box { .search_box {
margin: 24px 0; margin: 24px 0;

View File

@@ -35,12 +35,18 @@ export default {
data() { data() {
return { return {
current: 1, current: 1,
pages: 2,
title: '', title: '',
classList: [], classList: [],
} }
}, },
methods: { methods: {
nextList() {
this.current ++
this.getList()
},
getList() { getList() {
if(this.current > this.pages) return
this.$instance.post(`/app/appcourseinfo/listByApplet`, null, { this.$instance.post(`/app/appcourseinfo/listByApplet`, null, {
params: { params: {
current: this.current, current: this.current,
@@ -50,6 +56,7 @@ export default {
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
this.classList = this.current==1? res.data.records: [...this.classList,...res.data.records] this.classList = this.current==1? res.data.records: [...this.classList,...res.data.records]
this.pages = res.data.pages
// this.classList = res.data.records // this.classList = res.data.records
} }
}) })
@@ -58,14 +65,10 @@ export default {
this.$emit('toDetail',id) this.$emit('toDetail',id)
}, },
}, },
onReachBottom() {
this.current ++
this.getList()
},
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.OnlineClass { .OnlineClass {
.search_box { .search_box {
margin: 24px 0; margin: 24px 0;

View File

@@ -111,7 +111,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.activity { .activity {
padding-bottom: 40px; padding-bottom: 40px;

View File

@@ -210,7 +210,7 @@ export default {
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.photo { .photo {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -222,7 +222,7 @@
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.photo { .photo {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -110,7 +110,7 @@
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.photo { .photo {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -103,7 +103,7 @@
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" scoped>
.StoreDetail { .StoreDetail {
padding-bottom: 20px; padding-bottom: 20px;