{"size": 1796, "ext": "js", "max_stars_repo_path": "app/module_product/config.router.js", "max_stars_repo_name": "pujjr/pcms-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/module_product/config.router.js", "max_issues_repo_name": "pujjr/pcms-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/module_product/config.router.js", "max_forks_repo_name": "pujjr/pcms-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 37.4166666667, "max_line_length": 88, "alphanum_fraction": 0.4393095768}
'use strict';

/**
 * Config for the router
 */
angular.module('app')
    .config(
    ['$stateProvider', '$urlRouterProvider',
        function ($stateProvider, $urlRouterProvider) {
            $stateProvider
                //产品管理
                .state('app.product', {
                    url: '/product',
                    templateUrl: 'module_product/tpl/product-manage.html',
                    controller:function($scope,$state){
                        $scope.productConfig = function(){
                            $state.go('app.product.config');
                        }
                        $scope.productRuleConfig = function(){
                            $state.go('app.product.rule');
                        }
                        $scope.productServiceFeeTemplateConfig = function(){
                            $state.go('app.product.servicefee-rule')
                        }
                    }
                })
                //产品管理-查询产品列表
                .state('app.product.config', {
                    url: '/config',
                    templateUrl: 'module_product/tpl/product-config.html',
                    controller: 'ProductController'
                })
                //产品管理-产品规则模板管理
                .state('app.product.rule', {
                    url: '/rule',
                    templateUrl: 'module_product/tpl/product-rule-list.html',
                    controller: 'ProductRuleController'
                })
                //产品管理-服务费规则模板管理
                .state('app.product.servicefee-rule', {
                    url: '/servicefee-rule',
                    templateUrl: 'module_product/tpl/product-servicefee-rule-list.html',
                    controller: 'ProductServiceRuleController'
                })

        }
    ]
);