{"size": 1345, "ext": "js", "max_stars_repo_path": "code/xiaochengxu/example/index.js", "max_stars_repo_name": "stone-zl/QQ-", "max_stars_repo_stars_event_min_datetime": "2016-12-02T07:51:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-18T07:10:25.000Z", "max_issues_repo_path": "code/xiaochengxu/example/index.js", "max_issues_repo_name": "stone-zl/QQ-", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "code/xiaochengxu/example/index.js", "max_forks_repo_name": "stone-zl/QQ-", "max_forks_repo_forks_event_min_datetime": "2016-12-29T01:07:35.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-02T09:13:09.000Z"}
{"max_stars_count": 72, "max_issues_count": null, "max_forks_count": 33, "avg_line_length": 27.4489795918, "max_line_length": 71, "alphanum_fraction": 0.3420074349}
Page({
    data: {
        list: [
            {
                id: 'form',
                name: '广告监测',
                open: false,
                nav:[{page:'panel',title:'违规检测'}],
            },
            {
                id: 'widget',
                name: '广告主处理',
                open: false,
                nav:[{page:'ggz_reg',title:'广告主登记',para:'index=0'},
                        {page:'ggz_reg',title:'广告主修改',para:'index=1'}],
            },
            {
                id: 'feedback',
                name: '合同处理',
                open: false,
                nav:[{page:'htdj',title:'合同登记',para:'index=0'},
                        {page:'htdj',title:'合同修改',para:'index=1'}],
            },
            {
                id: 'nav',
                name: '我的',
                open: false,
                nav:[{page:'user',title:'我的信息'}],
            }
        ]
    },
    onShow:function(){
        console.debug(getCurrentPages());
    },
    kindToggle: function (e) {
        var id = e.currentTarget.id, list = this.data.list;
        for (var i = 0, len = list.length; i < len; ++i) {
            if (list[i].id == id) {
                list[i].open = !list[i].open
            } else {
                list[i].open = false
            }
        }
        this.setData({
            list: list
        });
    }
});
