Browse Source

还原首页

Administrator 7 years ago
parent
commit
d845db182c

+ 26 - 2
src/main/webapp/resources/js/index/app.js

@@ -23,7 +23,31 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         return httpInterceptor;
     }]);
     app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
-        $stateProvider.state('sale', {
+        $stateProvider.state('index', {
+            url: "/index",
+            views: {
+                "left-view": {
+                    templateUrl: "static/tpl/index/common/leftAll.html",
+                    controller: 'LeftCtrl'
+                },
+                "right-view": {
+                    templateUrl: "static/tpl/index/home/right.html",
+                    controller: 'RightCtrl'
+                }
+            }
+        }).state('home', {
+            url: "/",
+            views: {
+                "left-view": {
+                    templateUrl: "static/tpl/index/common/leftAll.html",
+                    controller: 'LeftCtrl'
+                },
+                "right-view": {
+                    templateUrl: "static/tpl/index/home/right.html",
+                    controller: 'RightCtrl'
+                }
+            }
+        }).state('sale', {
             url: "/sale",
             views: {
                 "left-view": {
@@ -775,7 +799,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             templateUrl: "static/tpl/index/sale/vendorPerformanceAssess_detail.html",
             controller: 'VendorPerformanceAssessDetailCtrl'
         });
-        $urlRouterProvider.otherwise('sale/pubinquiry');
+        $urlRouterProvider.otherwise('/index');
     }]);
 
 

+ 3 - 3
src/main/webapp/resources/tpl/index/common/leftAll.html

@@ -55,6 +55,6 @@
 	</div>
 </div>
 <!--应收宝-->
-<div class="jk">
-	<img src="static/img/home/jingkong.png">
-</div>
+<!--<div class="jk">-->
+	<!--<img src="static/img/home/jingkong.png">-->
+<!--</div>-->