Browse Source

add share tip for current user

master
filesite 7 months ago
parent
commit
8f37577620
  1. 4
      themes/tajian/controller/SiteController.php
  2. 4
      themes/tajian/views/site/login.php
  3. 8
      themes/tajian/views/site/myindex.php
  4. 6
      themes/tajian/views/site/register.php

4
themes/tajian/controller/SiteController.php

@ -29,6 +29,8 @@ Class SiteController extends Controller { @@ -29,6 +29,8 @@ Class SiteController extends Controller {
//显示当前用户收藏的视频
protected function renderFavVideos() {
$loginedUser = Common::getUserFromSession();
//获取数据
$menus = array(); //菜单,一级目录
$htmlReadme = ''; //Readme.md 内容,底部网站详细介绍
@ -84,7 +86,7 @@ Class SiteController extends Controller { @@ -84,7 +86,7 @@ Class SiteController extends Controller {
$viewName = 'myindex';
$params = compact(
'cateId', 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'tags',
'nickname'
'nickname', 'loginedUser'
);
return $this->render($viewName, $params, $pageTitle);
}

4
themes/tajian/views/site/login.php

@ -2,11 +2,11 @@ @@ -2,11 +2,11 @@
<form class="add_video_form g_form_style mt65" id="login_form" action="" method="POST">
<div class="mb-3 pt20">
<label for="text_input_username" class="form-label">手机号码</label>
<input id="text_input_username" name="username" placeholder="请填写手机号码">
<input id="text_input_username" name="username" placeholder="请填写手机号码" type="text">
</div>
<div class="mb-3 twocol">
<label for="text_input_sm" class="form-label">验证码</label>
<input id="text_input_sm" name="smscode" placeholder="输入收到的短信验证码">
<input id="text_input_sm" name="smscode" placeholder="输入收到的短信验证码" type="number">
<button class="smsbtn bt_sms_JS">发送验证码</button>
</div>
<div class="avform_bt vercenter">

8
themes/tajian/views/site/myindex.php

@ -34,6 +34,14 @@ eof; @@ -34,6 +34,14 @@ eof;
?>
<main class="g_main_lay">
<?php
//如果是打开的自己的首页
if (!empty($viewData['loginedUser']) && FSC::$app['user_id'] == $viewData['loginedUser']['username']) {
echo <<<eof
<p class="mt20 pb30">欢迎回来,把当前网址发给朋友,跟TA分享你的收藏吧。</p>
eof;
}
?>
<div class="videos_list clearfix">
<?php
$videoExts = array('url');

6
themes/tajian/views/site/register.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
<form class="add_video_form g_form_style mt65" id="register_form" action="" method="POST">
<div class="mb-3 pt20 twocol">
<label for="text_input_code" class="form-label">邀请码</label>
<input id="text_input_code" name="friendscode" placeholder="邀请者手机号末 6 位">
<input id="text_input_code" name="friendscode" placeholder="邀请者手机号末 6 位" type="number">
<button class="smsbtn bt_kf_JS" type="button" data-hide="隐藏客服微信">加客服索要</button>
<p class="mt10 hide kf_wx_JS">
<img src="/tajian/wx_jialuoma.jpeg" alt="Ta荐客服微信二维码" width="200" class="kfwx">
@ -10,11 +10,11 @@ @@ -10,11 +10,11 @@
</div>
<div class="mb-3">
<label for="text_input_username" class="form-label">手机号码</label>
<input id="text_input_username" name="username" placeholder="请填写手机号码">
<input id="text_input_username" name="username" placeholder="请填写手机号码" type="text">
</div>
<div class="mb-3 twocol">
<label for="text_input_sm" class="form-label">验证码</label>
<input id="text_input_sm" name="smscode" placeholder="输入收到的短信验证码">
<input id="text_input_sm" name="smscode" placeholder="输入收到的短信验证码" type="number">
<button type="button" class="smsbtn bt_sms_JS">发送验证码</button>
</div>
<div class="avform_bt vercenter">

Loading…
Cancel
Save