|
|
@@ -61,7 +61,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { homeData,questionList,submitAnswer } from "@/api/allApi";
|
|
|
+import { homeData,questionList,submitAnswer } from "@/api/qixiFestival";
|
|
|
+import AES from "@/utils/AES.js";
|
|
|
import SiderInfo from '@/components/SiderInfo.vue';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
export default{
|
|
|
@@ -112,9 +113,13 @@ export default{
|
|
|
},
|
|
|
getQuestionList(){
|
|
|
questionList({}).then(response=>{
|
|
|
- console.log(response.data.data);
|
|
|
- this.questions = response.data.data.questions;
|
|
|
- this.roomId = response.data.data.roomId;
|
|
|
+ //解密
|
|
|
+ let resData = JSON.parse(AES.decrypt(response.data.data));
|
|
|
+ console.log(resData);
|
|
|
+ this.questions = resData.questions;
|
|
|
+ this.roomId = resData.roomId;
|
|
|
+ this.timerCountdown();
|
|
|
+ this.isShowItem = true;
|
|
|
})
|
|
|
},
|
|
|
getHomeData(){
|
|
|
@@ -145,7 +150,7 @@ export default{
|
|
|
this.result.push('');
|
|
|
}
|
|
|
this.isDim = true;
|
|
|
- this.isFailWrapper = true;
|
|
|
+ this.isConfirmWrapper = true;
|
|
|
this.saveAnswer();
|
|
|
console.log(this.result);
|
|
|
}
|
|
|
@@ -187,8 +192,7 @@ export default{
|
|
|
},
|
|
|
clickAnswer(){
|
|
|
this.getQuestionList();
|
|
|
- this.isShowItem = true;
|
|
|
- this.timerCountdown();
|
|
|
+
|
|
|
// if(this.top){
|
|
|
// this.$message({
|
|
|
// message: '今日已答题!',
|
|
|
@@ -426,7 +430,7 @@ export default{
|
|
|
cursor: pointer;
|
|
|
position: absolute;
|
|
|
width: 200px;
|
|
|
- bottom: 10%;
|
|
|
+ bottom: 17%;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
margin:auto;
|
|
|
@@ -435,7 +439,7 @@ export default{
|
|
|
cursor: pointer;
|
|
|
position: absolute;
|
|
|
width: 200px;
|
|
|
- bottom: 2%;
|
|
|
+ bottom: 8%;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
margin:auto;
|