mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 11:58:41 +08:00
21 lines
672 B
JavaScript
21 lines
672 B
JavaScript
layui.use(['jquery', 'helper'], function () {
|
|
|
|
var $ = layui.jquery;
|
|
var helper = layui.helper;
|
|
|
|
if ($('#tab-discount-courses').length > 0) {
|
|
var $tabDiscountCourses = $('#tab-discount-courses');
|
|
helper.ajaxLoadHtml($tabDiscountCourses.data('url'), $tabDiscountCourses.attr('id'));
|
|
}
|
|
|
|
if ($('#tab-free-courses').length > 0) {
|
|
var $tabFreeCourses = $('#tab-free-courses');
|
|
helper.ajaxLoadHtml($tabFreeCourses.data('url'), $tabFreeCourses.attr('id'));
|
|
}
|
|
|
|
if ($('#tab-users').length > 0) {
|
|
var $tabUsers = $('#tab-users');
|
|
helper.ajaxLoadHtml($tabUsers.data('url'), $tabUsers.attr('id'));
|
|
}
|
|
|
|
}); |