From 62a73dce79d79db4cd76b769a0e10b939d8fefa3 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Sat, 1 Apr 2017 15:00:59 +0800 Subject: [PATCH] add home loading... info --- modules/core/client/app/trans-string-cn.js | 1 + modules/core/client/app/trans-string-en.js | 1 + modules/core/client/controllers/home.client.controller.js | 3 ++- modules/core/client/less/mt.less | 4 ++++ modules/core/client/views/home.client.view.html | 5 ++++- 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/core/client/app/trans-string-cn.js b/modules/core/client/app/trans-string-cn.js index b7a6c6a1..6fe24c0f 100644 --- a/modules/core/client/app/trans-string-cn.js +++ b/modules/core/client/app/trans-string-cn.js @@ -75,6 +75,7 @@ SUBMIT_BUTTON: '已备妥,现在提交', AGREE_RULES: '我已阅读并同意站内所有协议条款,协议条款', DOWNLOAD_TORRENT: '下载种子', + LOADING_TOP: '正在推荐资源,请稍候...', //footer view MIT_PROTOCOL: '本项目源码受 MIT 开源协议保护', diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index a61d41a2..2a835944 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -75,6 +75,7 @@ SUBMIT_BUTTON: 'OK, SUBMIT NOW', AGREE_RULES: 'I agree and already read all the rules, read here', DOWNLOAD_TORRENT: 'Download Torrent', + LOADING_TOP: 'Loading recommended info, please waiting...', //footer view MIT_PROTOCOL: 'The source of this project is protected by MIT open source protocol', diff --git a/modules/core/client/controllers/home.client.controller.js b/modules/core/client/controllers/home.client.controller.js index a0e88ddd..3ea9e8b1 100644 --- a/modules/core/client/controllers/home.client.controller.js +++ b/modules/core/client/controllers/home.client.controller.js @@ -9,7 +9,7 @@ function HomeController($scope, $translate, TorrentsService, Notification) { var vm = this; - + vm.info_is_ready = false; //$translate.use('en'); vm.COMING = 'coming soon...'; @@ -24,6 +24,7 @@ }); vm.movieinfo = res; + vm.info_is_ready = true; $('.backdrop').css('backgroundImage', 'url(http://image.tmdb.org/t/p/w500' + res.backdrop_path + ')'); }, function (err) { Notification.error({ diff --git a/modules/core/client/less/mt.less b/modules/core/client/less/mt.less index 666be602..bcf68458 100644 --- a/modules/core/client/less/mt.less +++ b/modules/core/client/less/mt.less @@ -12,6 +12,10 @@ padding-top: 30px; padding-bottom: 30px; } + .loading { + color: #ccc; + margin: 150px 0; + } .topone { color: #ccc; img { diff --git a/modules/core/client/views/home.client.view.html b/modules/core/client/views/home.client.view.html index 1e9e9bbc..f9f7b09d 100644 --- a/modules/core/client/views/home.client.view.html +++ b/modules/core/client/views/home.client.view.html @@ -2,7 +2,10 @@
-
+
+

+
+