44 lines
714 B
Vue
44 lines
714 B
Vue
|
|
<template>
|
||
|
|
<div class="AppAnswer">
|
||
|
|
</d>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import { mapState } from 'vuex'
|
||
|
|
|
||
|
|
export default {
|
||
|
|
name: 'AppAnswer',
|
||
|
|
appName: '学习问答',
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
detail: {},
|
||
|
|
list: [],
|
||
|
|
wxLogin: 0,
|
||
|
|
current: 1,
|
||
|
|
total: 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
computed: {
|
||
|
|
...mapState(['user']),
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
getList() {
|
||
|
|
},
|
||
|
|
handleDetail(id) {
|
||
|
|
if (!this.user.token) this.wxLogin++
|
||
|
|
else uni.navigateTo({url: './voteDetail?id=' + id})
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onReachBottom () {
|
||
|
|
this.getList()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.AppAnswer {
|
||
|
|
min-height: 100vh;
|
||
|
|
background: #fff;
|
||
|
|
}
|
||
|
|
</style>
|