-
+
+
+ 正确答案:{{ correctAnswer }}
+
+
再接再厉!
@@ -134,7 +145,9 @@
progress: 1, //1答题中2答案3结束
flag: -1, //显示active index
- correctAnswer:''
+ correctAnswer:'',
+ signInfo:'',
+ changebottom:false
};
},
methods: {
@@ -150,7 +163,8 @@
this.answers = res.questions
},
- answer(item, index) {
+ answer(item, index) {
+ this.correctAnswer = ''
this.flag = index
this.myAnswers.push({
@@ -159,11 +173,12 @@
})
this.isCorrect = !!item.is_correct
let correct = this.answers[this.now]?.options?.find(i => i.is_correct)
- this.correctAnswer = `${this.num(correct?.myindex)}`
+ this.correctAnswer = `${this.num(correct?.myindex)}、${correct?.title}`
setTimeout(() => {
- this.progress = this.now === (this.answers?.length - 1) ? 3 : 2
- this.correctAnswer = ''
+ this.progress = this.now === (this.answers?.length - 1) ? 3 : 2
+ this.changebottom = true
+ // this.correctAnswer = ''
if (this.progress === 3) {
this.isTotalEnd = this.detail.points?.length == this.totalDone
this.$u.api.saveQuiz({
@@ -171,13 +186,14 @@
answers: this.myAnswers
})
}
- }, 2000)
+ }, 500)
},
next() {
this.now++
this.flag = -1
- this.progress = 1
+ this.progress = 1
+ this.changebottom = false
},
toMap() {
@@ -185,12 +201,25 @@
url: '/pages/map/map'
})
},
-
- toCertificate() {
- uni.navigateTo({
- url: '/pages/certificate/certificate'
- })
- }
+ async getPoster () {
+ const res = await this.$u.api.getPoster({
+ user_id: this.vuex_user.id,
+ type: 2
+ })
+ this.signInfo = res
+ },
+ async toCertificate() {
+ await this.getPoster()
+ if (!this.signInfo?.upload) {
+ uni.navigateTo({
+ url: '/pages/sign/sign'
+ })
+ }else{
+ uni.navigateTo({
+ url: '/pages/certificate/certificate'
+ })
+ }
+ },
},
computed: {
answerImgWidth() {
@@ -300,10 +329,23 @@
diff --git a/static/xtdk/answer-bg-bottom.png b/static/xtdk/answer-bg-bottom.png
new file mode 100644
index 0000000..e754862
Binary files /dev/null and b/static/xtdk/answer-bg-bottom.png differ
diff --git a/static/xtdk/answer-bg.png b/static/xtdk/answer-bg.png
index 8506266..c5e2f51 100644
Binary files a/static/xtdk/answer-bg.png and b/static/xtdk/answer-bg.png differ
diff --git a/static/xtdk/map1.png b/static/xtdk/map1.png
new file mode 100644
index 0000000..32a2ae6
Binary files /dev/null and b/static/xtdk/map1.png differ
diff --git a/static/xtdk/map2.png b/static/xtdk/map2.png
new file mode 100644
index 0000000..94a2dbf
Binary files /dev/null and b/static/xtdk/map2.png differ
diff --git a/static/xtdk/map3.png b/static/xtdk/map3.png
new file mode 100644
index 0000000..b0c24d4
Binary files /dev/null and b/static/xtdk/map3.png differ
diff --git a/static/xtdk/map4.png b/static/xtdk/map4.png
new file mode 100644
index 0000000..6ba3cef
Binary files /dev/null and b/static/xtdk/map4.png differ
diff --git a/static/xtdk/map5.png b/static/xtdk/map5.png
new file mode 100644
index 0000000..6218228
Binary files /dev/null and b/static/xtdk/map5.png differ
diff --git a/static/xtdk/map6.png b/static/xtdk/map6.png
new file mode 100644
index 0000000..ecc4a33
Binary files /dev/null and b/static/xtdk/map6.png differ
diff --git a/static/xtdk/map7.png b/static/xtdk/map7.png
new file mode 100644
index 0000000..79aa8b7
Binary files /dev/null and b/static/xtdk/map7.png differ
diff --git a/static/xtdk/map8.png b/static/xtdk/map8.png
new file mode 100644
index 0000000..c76edd1
Binary files /dev/null and b/static/xtdk/map8.png differ