From f51b748b8a88360af6086f52cdfc634c23bc9cae Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 26 Apr 2024 17:03:01 +0800 Subject: [PATCH] login and register ui ready --- themes/tajian/controller/SiteController.php | 19 +++++- themes/tajian/views/layout/index.php | 8 +-- themes/tajian/views/site/login.php | 31 ++++++++++ themes/tajian/views/site/register.php | 39 +++++++++++++ themes/tajian/views/site/tajian.php | 19 ++---- www/css/tajian.css | 65 ++++++++++++++------- www/js/tajian.js | 27 +++++---- 7 files changed, 151 insertions(+), 57 deletions(-) create mode 100644 themes/tajian/views/site/login.php create mode 100644 themes/tajian/views/site/register.php diff --git a/themes/tajian/controller/SiteController.php b/themes/tajian/controller/SiteController.php index 0889f60..7228722 100644 --- a/themes/tajian/controller/SiteController.php +++ b/themes/tajian/controller/SiteController.php @@ -216,15 +216,28 @@ Class SiteController extends Controller { return $this->render($viewName, $params, $pageTitle); } - //TODO: 采用邀请制注册 - //新用户注册 + //邀请制新用户注册,使用手机号码 + 邀请码 + 短信验证码注册 public function actionRegister() { + $pageTitle = "注册Ta荐:一个好用的视频收藏夹,帮你整理不同平台的好视频,还能分享给朋友!"; + $this->layout = 'index'; + $viewName = 'register'; + $params = compact( + 'pageTitle' + ); + return $this->render($viewName, $params, $pageTitle); } - //用户登陆 + //用户登陆:使用手机号码 + 短信验证码登录 public function actionLogin() { + $pageTitle = "登录Ta荐:一个好用的视频收藏夹,帮你整理不同平台的好视频,还能分享给朋友!"; + $this->layout = 'index'; + $viewName = 'login'; + $params = compact( + 'pageTitle' + ); + return $this->render($viewName, $params, $pageTitle); } } diff --git a/themes/tajian/views/layout/index.php b/themes/tajian/views/layout/index.php index 66599c8..6a59bab 100644 --- a/themes/tajian/views/layout/index.php +++ b/themes/tajian/views/layout/index.php @@ -17,7 +17,7 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use - +
@@ -25,7 +25,7 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use - TaJian.tv
@@ -38,10 +38,6 @@ if (!empty($viewFile) && file_exists($viewFile)) {