<template>
  <div class="AppAnswer">
  </div>
</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>
