|
@@ -246,21 +246,25 @@
|
|
|
<view @click="nextPage" class="next"> 下一题</view>
|
|
|
</view>
|
|
|
<view class="submit">
|
|
|
- <view
|
|
|
- @click="
|
|
|
- () => {
|
|
|
- submitExamVisible = true;
|
|
|
- }
|
|
|
- "
|
|
|
- class="submit-button"
|
|
|
- ><text>交卷</text
|
|
|
- ><countDown
|
|
|
- @change="getThreeExamTime"
|
|
|
- @end="submitExam"
|
|
|
- background=""
|
|
|
- :time="examTime"
|
|
|
- ></countDown>
|
|
|
+ <view>
|
|
|
+ <view
|
|
|
+ v-if="query.showSubmit == '1'"
|
|
|
+ @click="
|
|
|
+ () => {
|
|
|
+ submitExamVisible = true;
|
|
|
+ }
|
|
|
+ "
|
|
|
+ class="submit-button"
|
|
|
+ ><text>交卷</text
|
|
|
+ ><countDown
|
|
|
+ @change="getThreeExamTime"
|
|
|
+ @end="submitExam"
|
|
|
+ background=""
|
|
|
+ :time="examTime"
|
|
|
+ ></countDown>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="count">
|
|
|
<view class="col">
|
|
|
<icon type="success" size="26rpx" color="#33CDA4"></icon>
|
|
@@ -333,21 +337,21 @@
|
|
|
<image
|
|
|
mode="widthFix"
|
|
|
style="width: 628rpx"
|
|
|
- src="https://ct.zzxcx.net/ctjk/mp-wx/threeExam/bg_dialog.png"
|
|
|
+ src="https://ndata.zzxcx.net/ctjk/mp-wx/threeExam/bg_dialog.png"
|
|
|
></image>
|
|
|
<image
|
|
|
mode="widthFix"
|
|
|
v-if="score < 90"
|
|
|
class="tip2-cry"
|
|
|
style="width: 187rpx"
|
|
|
- src="https://ct.zzxcx.net/ctjk/mp-wx/threeExam/cry.png"
|
|
|
+ src="https://ndata.zzxcx.net/ctjk/mp-wx/threeExam/cry.png"
|
|
|
></image>
|
|
|
<image
|
|
|
mode="widthFix"
|
|
|
v-if="score >= 90"
|
|
|
class="tip2-cry"
|
|
|
style="width: 187rpx"
|
|
|
- src="https://ct.zzxcx.net/ctjk/mp-wx/threeExam/laugh.png"
|
|
|
+ src="https://ndata.zzxcx.net/ctjk/mp-wx/threeExam/laugh.png"
|
|
|
></image>
|
|
|
<view class="tip2-text">
|
|
|
<view>恭喜您</view>
|
|
@@ -393,10 +397,13 @@
|
|
|
import api from "@/api";
|
|
|
import utils from "@/utils";
|
|
|
import countDown from "@/components/countDown/index";
|
|
|
+import Toast from "../../../dist/build/mp-weixin/wxcomponents/vant/toast/toast";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- query: {},
|
|
|
+ query: {
|
|
|
+ showSubmit: true,
|
|
|
+ },
|
|
|
anLength: 7,
|
|
|
problemList: [
|
|
|
{
|
|
@@ -482,22 +489,44 @@ export default {
|
|
|
},
|
|
|
onLoad(query) {
|
|
|
this.query = query;
|
|
|
- api.exam.studentThreeForceSelectTestQuestionInfoList().then((res) => {
|
|
|
- if (Array.isArray(res.rows) && res.rows.length > 0) {
|
|
|
- res.rows.forEach((element) => {
|
|
|
- element.userAnswerIndex = -1;
|
|
|
- element.isComplete = false;
|
|
|
- });
|
|
|
- this.problemList = res.rows;
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.query.showSubmit == "1") {
|
|
|
+ api.exam.studentThreeForceSelectTestQuestionInfoList().then((res) => {
|
|
|
+ if (Array.isArray(res.rows) && res.rows.length > 0) {
|
|
|
+ res.rows.forEach((element) => {
|
|
|
+ element.userAnswerIndex = -1;
|
|
|
+ element.isComplete = false;
|
|
|
+ });
|
|
|
+ this.problemList = res.rows;
|
|
|
+ } else {
|
|
|
+ Toast({
|
|
|
+ type: "fail",
|
|
|
+ message: "加载失败",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (this.query.showSubmit == "0") {
|
|
|
+ api.exam.studentThreeForceList().then((res) => {
|
|
|
+ if (Array.isArray(res.rows) && res.rows.length > 0) {
|
|
|
+ res.rows.forEach((element) => {
|
|
|
+ element.userAnswerIndex = -1;
|
|
|
+ element.isComplete = false;
|
|
|
+ });
|
|
|
+ this.problemList = res.rows;
|
|
|
+ } else {
|
|
|
+ Toast({
|
|
|
+ type: "fail",
|
|
|
+ message: "加载失败",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
goPath(url) {
|
|
|
- console.log(url)
|
|
|
- uni.navigateTo({
|
|
|
- url
|
|
|
- })
|
|
|
+ console.log(url);
|
|
|
+ uni.navigateTo({
|
|
|
+ url,
|
|
|
+ });
|
|
|
},
|
|
|
getThreeExamTime(a, b) {
|
|
|
this.restTime = a;
|