用户动态如果没有绑定则跳到绑定页面.

lingbing
guange 9 years ago
parent 4815dc3c7b
commit 13d11e2239

@ -480,37 +480,39 @@ app.directive('loadingSpinner', function ($http) {
}); });
app.config(['$routeProvider',"$httpProvider",function ($routeProvider, $httpProvider) { app.config(['$routeProvider',"$httpProvider",function ($routeProvider, $httpProvider) {
var rootPath = '/assets/wechat/'
$routeProvider $routeProvider
.when('/activities', { .when('/activities', {
templateUrl: '/public/assets/wechat/activities.html', templateUrl: rootPath + 'activities.html',
controller: 'ActivityController' controller: 'ActivityController'
}) })
.when('/issues/:id', { .when('/issues/:id', {
templateUrl: 'issue_detail.html', templateUrl: rootPath + 'issue_detail.html',
controller: 'IssueController' controller: 'IssueController'
}) })
.when('/project_discussion/:id', { .when('/project_discussion/:id', {
templateUrl: 'project_discussion.html', templateUrl: rootPath + 'project_discussion.html',
controller: 'DiscussionController' controller: 'DiscussionController'
}) })
.when('/homework/:id', { .when('/homework/:id', {
templateUrl: 'homework_detail.html', templateUrl: rootPath + 'homework_detail.html',
controller: 'HomeworkController' controller: 'HomeworkController'
}) })
.when('/course_notice/:id', { .when('/course_notice/:id', {
templateUrl: 'course_notice.html', templateUrl: rootPath + 'course_notice.html',
controller: 'CourseNoticeController' controller: 'CourseNoticeController'
}) })
.when('/course_discussion/:id', { .when('/course_discussion/:id', {
templateUrl: 'course_discussion.html', templateUrl: rootPath + 'course_discussion.html',
controller: 'DiscussionController' controller: 'DiscussionController'
}) })
.when('/journal_for_message/:id', { .when('/journal_for_message/:id', {
templateUrl: 'jour_message_detail.html', templateUrl: rootPath + 'jour_message_detail.html',
controller: 'JournalsController' controller: 'JournalsController'
}) })
.when('/blog_comment/:id', { .when('/blog_comment/:id', {
templateUrl: 'blog_detail.html', templateUrl: rootPath + 'blog_detail.html',
controller: 'BlogController' controller: 'BlogController'
}) })
.otherwise({ .otherwise({

Loading…
Cancel
Save