guessRiddle.vue
2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-01-31 15:41:18
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-02-23 13:56:05
* @FilePath: \h5Demo\src\components\KnowledgeSports\guessRiddle.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<Pop
name="猜谜语"
:isEnd="isEnd"
:isFinish="isFinish"
:dataObject="answerData"
:isError="isError"
:isSuccess="isSuccess"
@reStart="reStart"
>
<div v-if="answerData.body.question" class="slot">
<div class="slot-question">{{ answerData.body.question }}</div>
<Answer
:isError="isError"
:isSuccess="isSuccess"
:answerData="answerData"
:selectResult="selectResult"
:isSelectSeat="isSelectSeat"
:answerOption="answerOption"
@cursorEven="cursorEven"
@optionsHandle="optionsHandle"
@answerGame="answerGame"
></Answer>
</div>
</Pop>
</template>
<script>
import Pop from "../Popups/index";
import Answer from "../AnswerType/index";
import mixin from "../../mixins/fill.js";
export default {
mixins: [mixin],
components: {
Pop,
Answer,
},
name: "guessRiddle",
watch: {
dataObject(data) {
GPJSSDK.Game.knowAction({
data,
status: (info) => {
if (info.gameStatus == 0 && !info.gameType) {
if (this.answerOption && this.answerOption.length > 0) {
this.timer = null;
// this.answerData = {
// body: {
// size: null,
// currentSize: null,
// timeLimit: null,
// rightNum: null,
// question: null,
// choice: [],
// },
// };
}
}
},
});
},
},
};
</script>
<style lang="less" scoped>
/deep/ .slot {
width: 100%;
.next-btn {
margin: 10vh auto 0px;
}
&-question {
width: 304px;
margin: 0 auto;
color: #111;
font-size: 15px;
font-weight: bold;
text-align: center;
padding: 35px 20px 15px;
}
}
.qtips {
color: #e25470;
color: #e25470;
margin-top: 16px;
font-weight: bold;
text-align: center;
}
</style>