SimpleTaskSystem.Web/Assets/res/kj/js/kj.js

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

(function (angular) {
    angular.module('kj-app', [])
        .controller('kj-ctrl', Controller);
    function Controller($scope, $http) {
        //read xml
        $.ajax({
            url: '/Localization/SmartUFO/SmartUFO.xml',
            dataType: 'xml',
            success: function (xml) {
                $(xml).find('text').each(function (i) {
                    switch ($(this).attr('name')) {
                        case 'smartbox_uri':
                            var path = $(this).attr('value') + '/Interface-1.0.newv/WebDownloadLessonFile/LessonUid=';
                            $http.post('/api/services/app/intentionCourse/getKjIntentionCourses', {
                                templateId: $('#templateId').val(),
                                platformId: $('#platformId').val()
                            }).success(function (data) {
                                var result = JSON.parse(data.Result);
                                for (var i = 0; i < result.intentionCourses.length; i++) {
                                    var item = result.intentionCourses[i];
                                    if (item.summary) {
                                        item.summary = item.summary.replace(/<[^>]+>/g, "").replace(/&nbsp;/ig, "");
                                    }
                                    var len = getLen(item.summary);
                                    if (len > 21) {
                                        item.cut = cut(item.summary, 42);
                                    } else {
                                        item.cut = item.summary;
                                    }
                                    //试听地址 
                                    var templateId = $('#templateId').val();                                    
                                    item.href = '/' + templateId + '/studyPlatform/webHome/listen?path=' + path + '&id=' + item.videoId + '&fileName=' + item.pathVideo;
                                    //图片box地址                                    
                                    item.src = path + item.picId + item.pathPic;
                                }
                                $scope.intentionCourses = result.intentionCourses;
                                $scope.QQ = result.platQQ ? 'http://wpa.qq.com/msgrd?v=3&uin=' + result.platQQ.QQ + '&site=qq&menu=yes' : '';
                            });
                            break;
                    }
                });
            }
        });

        //课程包
        $http.post('/api/services/app/intentionCourse/getCoursePkgs').success(function (data) {
            var result = JSON.parse(data.Result);
            $scope.packages = result.pkgs;
        })

        //购买课程包页面
        $scope.buyCoursePackage = function (pkgId) {
            var isLogin = $('#isLogin').val();
            if (isLogin === 'true') {
                location.href = '/coursePkg/index?pkgId=' + pkgId;
            } else {
                UserOpreate.OpenAutoLogin();
            }
        }

后面还有 63 行代码,购买后查看完整代码

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

AI 解读

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

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