Song.Site/obj/Debug/Package/PackageTmp/Templates/Mobi/Default/Scripts/SelfCourse.js

(完整代码) 1KB

//课程的事件
mui.ready(function () {
    //长按弹出课程详情
    mui('body').off('tap', '.news-item');
    mui('body').on('tap', '.news-item', function () {
        var id = $(this).attr("couid");
        if (id == null) return;
        new PageBox("课程详情", "Course.ashx?id=" + id, 100, 100, "url").Open();
    });
    mui('body').off('doubletap', '.news-item');
    mui('body').on('doubletap', '.news-item', function () {
        var id = $(this).attr("couid");
        if (id == null) return;
        new PageBox("课程详情", "Course.ashx?id=" + id, 100, 100, "url").Open();
    });
    //向左滑动弹出课程详情
    mui('body').off('slideleft', '.mui-table-view-cell');
    mui('body').on('slideleft', '.mui-table-view-cell', function (event) {
        var id = $(this).attr("couid");
        if (id == null) return;
        new PageBox("课程详情", "Course.ashx?id=" + id, 100, 100, "url").Open();
        mui.swipeoutClose(this);
    });
    //向右滑动,弹出咨询交流
    mui('body').off('slideright', '.mui-table-view-cell');
    mui('body').on('slideright', '.mui-table-view-cell', function (event) {
        var id = $(this).attr("couid");
        if (id == null) return;
        var name = $(this).attr("couname");
        new PageBox("《" + name + "》", "MsgBoards.ashx?couid=" + id, 100, 100, "url").Open();
        mui.swipeoutClose(this);
    });
});

$(function () {
    //计算每个分类下的课程数
    $(".mui-table-view-cell").each(function (index, element) {
        var count = $(this).find(".count");
        if (count.size() < 1) return;
        count.html($(this).find(".news-item").size());
    });
});

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。