问答
This commit is contained in:
43
src/project/fd/AppAnswer/AppAnswer.vue
Normal file
43
src/project/fd/AppAnswer/AppAnswer.vue
Normal file
@@ -0,0 +1,43 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user