init commit

This commit is contained in:
2026-03-17 09:56:00 +08:00
commit e2c8ae752d
6827 changed files with 1211784 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
Controller.api.bindevent();
},
api: {
bindevent: function () {
$(document).on('change','input[name="row[expire_time_type]"]',function (){
var type=$(this).val();
switch (type){
case "1":
$('.fixed_date').addClass('hide');
$('.days').removeClass('hide');
break;
case "2":
$('.days').addClass('hide');
$('.fixed_date').removeClass('hide');
break;
}
});
Form.api.bindevent($("form[role=form]"));
}
}
};
return Controller;
});