代码调试
This commit is contained in:
parent
2c146ddfa9
commit
bee01ea0f0
|
|
@ -249,10 +249,14 @@
|
|||
</form>
|
||||
</div>`
|
||||
})
|
||||
|
||||
|
||||
layer.open({
|
||||
type: 1,
|
||||
area: ['auto', 'auto'], // 宽高
|
||||
content: formHtml,
|
||||
title: '评分',
|
||||
btn: ['确定', '取消'],
|
||||
success: function (layero, index) {
|
||||
// 点击上传按钮的逻辑
|
||||
$('#uploadBtn').on('click', function (event) {
|
||||
|
|
@ -270,6 +274,19 @@
|
|||
event.preventDefault(); // 阻止表单提交
|
||||
}
|
||||
});
|
||||
},
|
||||
yes: function (index, layero) {
|
||||
// 点击"确定"按钮时的逻辑
|
||||
console.log('确定按钮被点击了');
|
||||
// 这里可以执行你需要的操作
|
||||
layer.close(index); // 关闭弹框
|
||||
},
|
||||
btn2: function (index, layero) {
|
||||
// 点击"取消"按钮时的逻辑
|
||||
console.log('取消按钮被点击了');
|
||||
// 这里可以执行你需要的操作,通常是关闭弹框
|
||||
layer.close(index); // 关闭弹框
|
||||
return false; // 防止关闭弹框后执行默认的按钮行为
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue