思考题 多次点击

This commit is contained in:
2024-12-11 09:50:07 +08:00
parent 23ca083403
commit d46a4e6b66
6 changed files with 382 additions and 284 deletions

View File

@@ -150,7 +150,11 @@
</u-upload>
</view>
</view>
<view class="btn_box"><button @click="onSubmit"> </button></view>
<view class="btn_box">
<button @click="onSubmit" v-if="isClick"> </button>
<button v-else style="opacity: 0.6;"> </button>
</view>
</view>
</view>
</u-popup>
@@ -187,6 +191,7 @@
},
data() {
return {
isClick:true,
classList:[], // 进行中的小班
isInClass:false, // 是否加入了班级
showEditBlank: false,
@@ -349,6 +354,7 @@
uni.stopPullDownRefresh();
},
onShow() {
this.isClick=true;
// #endif
this.getClassList()
},
@@ -382,7 +388,8 @@
// console.log('this.answerForm++++', this.answerForm);
}
// 赋值给编辑器
this.onEditorReady()
this.onEditorReady()
this.isClick=true
this.showEditBlank = true
},
gotoClass(item){
@@ -499,7 +506,9 @@
}
this.answerForm.display = e.detail.value
},
async onSubmit() {
async onSubmit() { if(!this.isClick){
return false
}
debounce(async () => {
let data = await this.getHtml();
var _data = data.html.replace(/<.*?>/g, "")
@@ -535,6 +544,7 @@
}
console.log('提交的data', data1);
this.isClick=false;
$http.request({
url: _url,
method: "POST",
@@ -550,6 +560,7 @@
})
this.fileList1 = []
setTimeout(() => {
this.isClick=true;
this.getMyQuestAnswer(this.curriculumData.id)
this.closePup()
// this.pPage = 0
@@ -558,6 +569,7 @@
// this.getZuoyeList()
}, 200)
}).catch(e => {
this.isClick=true;
uni.showToast({
title: '操作失败',
icon: 'error'