页面跳转bug

This commit is contained in:
花有清香月有阴
2021-12-24 10:24:12 +08:00
parent 6863a7fb73
commit 0f10f23e7f
2 changed files with 7 additions and 10 deletions

View File

@@ -82,7 +82,6 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad() { onLoad() {
console.log(this.user.id)
this.$dict.load('marriageType', 'modeType') this.$dict.load('marriageType', 'modeType')
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
}, },
@@ -147,12 +146,10 @@ export default {
selectStatus(e) { selectStatus(e) {
if (this.showStstus == true) { if (this.showStstus == true) {
console.log(e)
this.forms.type = e[0].label this.forms.type = e[0].label
this.forms.typeValue = e[0].value this.forms.typeValue = e[0].value
} }
if (this.showModeType == true) { if (this.showModeType == true) {
console.log(e)
this.forms.modeType = e[0].label this.forms.modeType = e[0].label
this.forms.modeTypeValue = e[0].value this.forms.modeTypeValue = e[0].value
} }

View File

@@ -143,10 +143,10 @@ export default {
onLoad(o) { onLoad(o) {
if (o.indexTabs) { if (o.indexTabs) {
this.currentTabs = o.indexTabs this.currentTabs = o.indexTabs
this.getList()
} }
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getList()
this.getEchart() this.getEchart()
}) })
}, },
@@ -262,27 +262,27 @@ export default {
toList(num) { toList(num) {
if (num == 0) { if (num == 0) {
console.log('全部')
uni.navigateTo({ url: `./AllActiveList` }) uni.navigateTo({ url: `./AllActiveList` })
} }
if (num == 1) { if (num == 1) {
console.log('干部')
uni.navigateTo({ url: `./CadreList` }) uni.navigateTo({ url: `./CadreList` })
} }
if (num == 2) { if (num == 2) {
console.log('婚礼')
uni.navigateTo({ url: `./MarryList` }) uni.navigateTo({ url: `./MarryList` })
} }
if (num == 3) { if (num == 3) {
console.log('丧礼')
uni.navigateTo({ url: `./FuneralList` }) uni.navigateTo({ url: `./FuneralList` })
} }
}, },
change(index) { change(index) {
this.currentTabs = index this.currentTabs = index
this.getList() if (this.currentTabs == 0) {
this.getEchart() this.getEchart()
}
if (this.currentTabs == 1) {
this.getList()
}
}, },
}, },
onReachBottom() { onReachBottom() {