|
|
@@ -18,11 +18,12 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
url : "/question",
|
|
|
templateUrl : "static/tpl/serve/question.html"
|
|
|
}).state('question.index', {
|
|
|
- url : "",
|
|
|
+ url : "/",
|
|
|
templateUrl : "static/tpl/serve/question_index.html"
|
|
|
}).state('contact', {
|
|
|
url : "/contact",
|
|
|
- templateUrl : "static/tpl/serve/contact.html"
|
|
|
+ templateUrl : "static/tpl/serve/contact.html",
|
|
|
+ controller: 'ContactCtrl'
|
|
|
}).state('sale', {
|
|
|
url : "/sale",
|
|
|
templateUrl : "static/tpl/serve/sale.html"
|
|
|
@@ -30,7 +31,7 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
url : "/new",
|
|
|
templateUrl : "static/tpl/serve/new.html"
|
|
|
}).state('new.index', {
|
|
|
- url : "",
|
|
|
+ url : "/",
|
|
|
templateUrl : "static/tpl/serve/new_index.html"
|
|
|
}).state('new.guide', {
|
|
|
url : "/:id",
|
|
|
@@ -64,6 +65,11 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
});
|
|
|
app.controller('IndexCtrl', function($scope){
|
|
|
|
|
|
+ });
|
|
|
+ app.controller('ContactCtrl', function($scope, toaster){
|
|
|
+ $scope.connect = function(type) {
|
|
|
+ toaster.pop('warning', '连接失败', '高峰期建议选择自助服务或问题反馈');
|
|
|
+ };
|
|
|
});
|
|
|
app.controller('GuideCtrl', function($scope, $stateParams, Guide) {
|
|
|
Guide.get($stateParams.id).then(function(data){
|