后台表单提交方式

This commit is contained in:
2020-04-07 17:17:02 +08:00
parent 6ea3686f0b
commit 8c440e75e8
22 changed files with 89 additions and 74 deletions
+6 -2
View File
@@ -1,10 +1,14 @@
define(['jquery', 'layer', 'form', 'message'], function($, layer, form) {
define(['jquery', 'layer', 'message'], function($, layer) {
var sent = {
config: {
keyName: 'sent_'
},
init: function(){
form.api.bindevent($("form[role=form]"));
if ($("form[role=form]").length > 0) {
require(['form'], function(form){
form.api.bindevent($("form[role=form]"));
})
}
},
msg: function(text, type){
if (typeof type != 'undefined') {