{"size": 1238, "ext": "js", "max_stars_repo_path": "mip-tiebaobei-det-bztab/mip-tiebaobei-det-bztab.js", "max_stars_repo_name": "lxhmm921/mip-extensions-platform", "max_stars_repo_stars_event_min_datetime": "2017-07-07T01:15:46.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-28T06:26:57.000Z", "max_issues_repo_path": "mip-tiebaobei-det-bztab/mip-tiebaobei-det-bztab.js", "max_issues_repo_name": "izzhip/mip-extensions-platform", "max_issues_repo_issues_event_min_datetime": "2017-02-15T11:01:58.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-22T03:05:38.000Z", "max_forks_repo_path": "mip-tiebaobei-det-bztab/mip-tiebaobei-det-bztab.js", "max_forks_repo_name": "izzhip/mip-extensions-platform", "max_forks_repo_forks_event_min_datetime": "2017-03-02T06:39:22.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-02T06:49:31.000Z"}
{"max_stars_count": 35, "max_issues_count": 48, "max_forks_count": 86, "avg_line_length": 31.7435897436, "max_line_length": 89, "alphanum_fraction": 0.5080775444}
/**
 * @file mip-tiebaobei-det-bztab 组件
 * @author weiss
 */

define(function (require) {
    var customElement = require('customElement').create();
    customElement.prototype.firstInviewCallback = function () {
        var $ = require('zepto');
        var ele = $(this.element);
        var box = ele.find('#fidelityBox');
        var tjbbox = ele.find('.tjbMask');
        box.on('click', '.btn', function () {
            if ($(this).hasClass('disabled')) {
                return false;
            }
            var idx = $(this).index();
            $(this).addClass('selected').siblings().removeClass('selected');
            box.find('.solgan li').eq(idx).addClass('act').siblings().removeClass('act');
        });
        box.find('.btn').eq(0).addClass('selected');
        box.find('.solgan li').eq(0).addClass('act');
        // 保真-更多按钮
        box.on('click', '.tjbMore', function (e) {
            e.preventDefault();
            e.stopPropagation();
            tjbbox.show();
        });
        tjbbox.on('touchmove', function () {
            return false;
        });
        // 铁甲保弹层关闭
        tjbbox.on('click', '.tjbClose', function () {
            tjbbox.hide();
        });
    };
    return customElement;
});
