重新打包

This commit is contained in:
zhangsir
2024-05-09 19:09:56 +08:00
parent 2302071ff2
commit 90ba6172c6
5 changed files with 7 additions and 4 deletions

View File

@@ -110,7 +110,7 @@
</view>
<view style="height: 150px;"></view>
<view class="bottom-btns">
<u-button class="next" v-if="curIndex==(total-1)" type="success" text="提交" @click="manualSubmit"></u-button>
<u-button class="next" v-if="curIndex==(total-1)" type="success" text="提交" :disabled="!thisTrue" @click="manualSubmit"></u-button>
<u-button type="primary" text="下一题" @click="nextSub" class="next" v-if="curIndex<(total-1)"></u-button>
<u-button type="info" text="上一题" @click="prevSub" class="next" v-if="curIndex>0"></u-button>
</view>
@@ -145,6 +145,7 @@
export default {
data() {
return {
thisTrue: true,
toScoreTow,
startButton: false,
imageBaseUrl:config.fileUrl,
@@ -520,7 +521,9 @@
data.useSecond=this.testPaper.testDuration*60-this.remainingTime;
//计算百分制显示
data.score=data.realScore*100/data.totalScore;
this.thisTrue = false
apiTestPaper.submit(data).then((res) => {
this.thisTrue = true
if (res.status == 200) {
that.testStatus = 3;
this.score = data.score;