|
@@ -40,18 +40,18 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- specialAnswerList: [
|
|
|
- { title: "答题1", addedTime: "2021-06-01" },
|
|
|
- { title: "答题2", addedTime: "2021-06-07" },
|
|
|
- { title: "答题3", addedTime: "2021-06-14" },
|
|
|
- { title: "答题4", addedTime: "2021-06-21" }],
|
|
|
+ specialAnswerList: [],
|
|
|
loading: false,
|
|
|
- finished: false
|
|
|
+ finished: false,
|
|
|
+ specialPage: 0,
|
|
|
+ specialSize: 10
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getSpecialAnswerList();
|
|
|
},
|
|
|
+ destroyed () {
|
|
|
+ },
|
|
|
activated() {
|
|
|
},
|
|
|
computed: {
|
|
@@ -60,11 +60,39 @@ export default {
|
|
|
getSpecialAnswerList() {
|
|
|
this.loading = true;
|
|
|
this.specialAnswerList = [
|
|
|
+ { title: "答题1", addedTime: "2021-06-01" },
|
|
|
+ { title: "答题2", addedTime: "2021-06-07" },
|
|
|
+ { title: "答题3", addedTime: "2021-06-14" },
|
|
|
+ { title: "答题1", addedTime: "2021-06-01" },
|
|
|
+ { title: "答题2", addedTime: "2021-06-07" },
|
|
|
+ { title: "答题3", addedTime: "2021-06-14" },
|
|
|
+ { title: "答题1", addedTime: "2021-06-01" },
|
|
|
+ { title: "答题2", addedTime: "2021-06-07" },
|
|
|
+ { title: "答题3", addedTime: "2021-06-14" },
|
|
|
+ { title: "答题1", addedTime: "2021-06-01" },
|
|
|
+ { title: "答题2", addedTime: "2021-06-07" },
|
|
|
+ { title: "答题3", addedTime: "2021-06-14" },
|
|
|
{ title: "答题1", addedTime: "2021-06-01" },
|
|
|
{ title: "答题2", addedTime: "2021-06-07" },
|
|
|
{ title: "答题3", addedTime: "2021-06-14" },
|
|
|
{ title: "答题4", addedTime: "2021-06-21" }];
|
|
|
this.loading = false;
|
|
|
+ let params = {
|
|
|
+ page: this.specialPage,
|
|
|
+ size: this.specialSize
|
|
|
+ };
|
|
|
+ this.$_http
|
|
|
+ .get(this.$_API.GET_JTXT_SPECIAL_QUESTIONS, { params })
|
|
|
+ .then(res => {
|
|
|
+ console.log("special----" + JSON.stringify(res));
|
|
|
+ // 不能上拉了就是加载玩了
|
|
|
+ this.finished = res.data.last;
|
|
|
+ this.specialPage++;
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$store.commit("toggleLoading", false);
|
|
|
+ });
|
|
|
},
|
|
|
clickAnswer() {
|
|
|
this.$store.commit("updateAnswerItemStore", {
|
|
@@ -73,7 +101,9 @@ export default {
|
|
|
});
|
|
|
this.$router.push({ name: "answerRecruit" });
|
|
|
},
|
|
|
- onLoad() {}
|
|
|
+ onLoad() {
|
|
|
+ this.getSpecialAnswerList();
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|