|
|
@@ -4,14 +4,15 @@ main.view--onboarding
|
|
4
|
4
|
style='display: flex; flex-direction: column; align-items: center'
|
|
5
|
5
|
v-if='survey'
|
|
6
|
6
|
)
|
|
7
|
|
- p(v-if='currentStep != 0') You have completed: {{ currentStep - 1 }} / 7 survey steps
|
|
8
|
|
- p(v-if='answered.name') Welcome {{ answered.name }}!
|
|
9
|
|
- p(v-if='answered.email') It looks like your email is: {{ answered.email }}.
|
|
10
|
|
- p(v-if='answered.zipcode') You're looking for opportunities around: {{ answered.zipcode }}.
|
|
11
|
|
- p(v-if='answered.blurb') This is your Origin Story:
|
|
12
|
|
- p {{ answered.blurb }}.
|
|
13
|
|
- p(v-if='answered.image') You've uploaded the following image:
|
|
14
|
|
- p {{ answered.image }}.
|
|
|
7
|
+ p(v-if='currentStep != 0 && answered.name') You have completed: {{ currentStep - 1 }} / 7 survey steps
|
|
|
8
|
+ p(v-for='(value, key) in answered')
|
|
|
9
|
+ span(v-if='key == "name"') Welcome {{ value }}!
|
|
|
10
|
+ span(v-if='key == "email"') All messages we will send to: {{ value }}
|
|
|
11
|
+ span(v-if='key == "zipcode"') Your zipcode is: {{ value }}
|
|
|
12
|
+ span(v-if='key == "blurb"') This is your Origin Story:
|
|
|
13
|
+ p {{ value }}
|
|
|
14
|
+ p(v-if='key == "image"') You've uploaded the following image:
|
|
|
15
|
+ p {{ value }}
|
|
15
|
16
|
.step(v-for='(step, i) in survey.steps')
|
|
16
|
17
|
component(
|
|
17
|
18
|
:aspect-questions='step.component == "Aspects" ? survey.aspectQuestions : null'
|
|
|
@@ -21,6 +22,11 @@ main.view--onboarding
|
|
21
|
22
|
@update-answers='updateAnswers'
|
|
22
|
23
|
v-if='step && currentStep == i'
|
|
23
|
24
|
)
|
|
|
25
|
+ article(
|
|
|
26
|
+ style='display: flex; flex-direction: column; align-items: center'
|
|
|
27
|
+ v-else
|
|
|
28
|
+ )
|
|
|
29
|
+ h1(style='text-align: center') Thank you for completing Siimee's Onboarding Survey!
|
|
24
|
30
|
</template>
|
|
25
|
31
|
|
|
26
|
32
|
<script>
|
|
|
@@ -45,11 +51,9 @@ export default {
|
|
45
|
51
|
this.survey = await surveyFactory.createSurvey(allSteps['usa'])
|
|
46
|
52
|
},
|
|
47
|
53
|
methods: {
|
|
48
|
|
- // this onSubmit() should actually submit and bring up a page that
|
|
49
|
|
- // confirms submission (thank you, etc.)
|
|
50
|
|
- // it appears that this should then start to display ./SurveyView.vue(?)
|
|
51
|
54
|
onSubmit() {
|
|
52
|
55
|
console.log(JSON.stringify(this.answered))
|
|
|
56
|
+ this.survey = null
|
|
53
|
57
|
},
|
|
54
|
58
|
goToStep(num) {
|
|
55
|
59
|
this.currentStep = num
|