|
@@ -0,0 +1,112 @@
|
|
|
+<template>
|
|
|
+ <div class="contentBody">
|
|
|
+ <van-list
|
|
|
+ v-model="loading"
|
|
|
+ :finished="finished"
|
|
|
+ finished-text="没有更多了"
|
|
|
+ @load="onLoad()"
|
|
|
+ >
|
|
|
+ <van-cell
|
|
|
+ v-for="(item, index) in specialAnswerList"
|
|
|
+ :key="index"
|
|
|
+ @click="toMaterialDetail(item)"
|
|
|
+ >
|
|
|
+ <div slot="default" class="contentItemDiv">
|
|
|
+ <div>
|
|
|
+ <div class="contentItemTitle">
|
|
|
+ {{ item.title }}
|
|
|
+ </div>
|
|
|
+ <div class="contentItemDescription">
|
|
|
+ <span>{{
|
|
|
+ formateDatesFun(item.addedTime)
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="startAnswerBox" @click="clickAnswer(item)">
|
|
|
+ <div class="startButtonBox">
|
|
|
+ <span class="startText">开始答题</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-cell>
|
|
|
+ </van-list>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+// import { mapState } from "vuex";
|
|
|
+export default {
|
|
|
+ name: "page-answer-special",
|
|
|
+ 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" }],
|
|
|
+ loading: false,
|
|
|
+ finished: false
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getSpecialAnswerList();
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ 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: "答题4", addedTime: "2021-06-21" }];
|
|
|
+ this.loading = false;
|
|
|
+ },
|
|
|
+ clickAnswer() {
|
|
|
+ this.$store.commit("updateAnswerItemStore", {
|
|
|
+ field: "answerRecruitId",
|
|
|
+ value: "special-questions"
|
|
|
+ });
|
|
|
+ this.$router.push({ name: "answerRecruit" });
|
|
|
+ },
|
|
|
+ onLoad() {}
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.contentBody {
|
|
|
+ background-color: #fff;
|
|
|
+ .contentItemDiv {
|
|
|
+ .contentItemTitle {
|
|
|
+ font-size: 0.65rem;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .contentItemDescription {
|
|
|
+ margin-top: 0.5rem;
|
|
|
+ color: #696969;
|
|
|
+ span {
|
|
|
+ margin-left: 0.5rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .startAnswerBox {
|
|
|
+ width:100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ .startButtonBox{
|
|
|
+ border-radius: 2px;
|
|
|
+ background-color: #696969;
|
|
|
+ }
|
|
|
+ .startText{
|
|
|
+ margin: 10px 5px;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+</style>
|