Skip to content

Commit

Permalink
文件迁移
Browse files Browse the repository at this point in the history
  • Loading branch information
czf2015 committed Jun 27, 2019
1 parent 9a097c0 commit d7eb731
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
Binary file removed components/base/._.DS_Store
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
<template>
<span class="back" @click="back">
<span class="prev" @click="prev">
<i class="fas fa-chevron-left"/>
{{prev}}
上一题
</span>
</template>

<script>
import {prerequisite} from "@/services/Questionnaire.js";
import { prerequisite } from "@/services/Questionnaire.js";
export default {
props: {
r: Object,
prev: {
type: String,
default: "上一题"
}
r: Object
},
methods: {
back() {
prev() {
const that = this;
let id = that.$store.state.questionId;
do {
Expand All @@ -31,7 +27,7 @@ export default {
</script>

<style scoped>
.back {
.prev {
font-size: 16px;
line-height: 2;
}
Expand Down
8 changes: 4 additions & 4 deletions pages/questionnaire/index.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<section class="page">
<Back class="back" v-show="questionId !== 1" :r="r"/>
<Prev class="prev" v-show="questionId !== 1" :r="r"/>
<Question :question="q[questionId]" :r="r" :key="questionId"/>
</section>
</template>

<script>
import api from "@/utils/api.js";
import { convert, prerequisite } from "@/services/Questionnaire.js";
import Back from "@/components/questionnaire/control/Back.vue";
import Prev from "@/components/questionnaire/control/Prev.vue";
import Question from "@/components/questionnaire/Question.vue";
export default {
Expand All @@ -28,7 +28,7 @@ export default {
},
components: {
Back,
Prev,
Question
},
Expand Down Expand Up @@ -74,7 +74,7 @@ export default {
padding: 0 8px;
}
.back {
.prev {
position: absolute;
}
</style>
1 change: 0 additions & 1 deletion services/Questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export function matchType(requiredOption, answer/* Array */) {
case "exclude":
return answer && !requiredOption.optionId.some(item => answer.includes(item))
}

}

//
Expand Down

0 comments on commit d7eb731

Please sign in to comment.