Browse Source

ui update

master
filesite 6 months ago
parent
commit
fc6f882f98
  1. 15
      themes/tajian/controller/MyController.php
  2. 29
      themes/tajian/views/my/createdir.php
  3. 3
      themes/tajian/views/my/favs.php
  4. 3
      themes/tajian/views/my/index.php
  5. 7
      themes/tajian/views/my/setnickname.php
  6. 7
      themes/tajian/views/my/share.php
  7. 9
      themes/tajian/views/my/switchdir.php
  8. 7
      themes/tajian/views/my/tag_new.php
  9. 3
      themes/tajian/views/my/tags.php
  10. 5
      www/img/person-add.svg

15
themes/tajian/controller/MyController.php

@ -132,4 +132,19 @@ Class MyController extends SiteController { @@ -132,4 +132,19 @@ Class MyController extends SiteController {
return $this->actionIndex($viewName, $defaultTitle, compact('myDirs', 'myNicks'));
}
//添加收藏夹
public function actionCreatedir() {
$myDirs = $myNicks = array();
//VIP身份判断
$loginedUser = Common::getUserFromSession();
if (empty($loginedUser['cellphone']) || !in_array($loginedUser['cellphone'], FSC::$app['config']['tajian_vip_user'])) {
throw new Exception('Oops,你还不是VIP,请联系首页底部客服邮箱开通。');
}
$defaultTitle = "添加账号";
$viewName = 'createdir';
return $this->actionIndex($viewName, $defaultTitle);
}
}

29
themes/tajian/views/my/createdir.php

@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
<?php
$linkPrefix = '';
//多用户路径支持
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) {
$linkPrefix = '/' . FSC::$app['user_id'];
}
?><main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<form class="g_form_style mt65" id="dir_new_form" action="" method="POST">
<div class="mb-3 pt20">
<label for="text_input_dir" class="form-label">账号昵称</label>
<input id="text_input_dir" name="dir" placeholder="请填写 2 - 5 个汉字" value="">
<p class="mt10">说明:<br>最多添加 <strong>10</strong> 个账号</p>
</div>
<div class="avform_bt vercenter">
<button class="jsbtn" aria-label="保存" type="button">
<div class="loading_bt bt_class_JS elementNone verMiddle">
<svg viewBox="25 25 50 50">
<circle cx="50" cy="50" r="20"></circle>
</svg>
</div>
<span class="bt_text_JS">保存</span>
<div class="bt_loading_cover bt_class_JS elementNone"></div>
</button>
</div>
</form>
</main>

3
themes/tajian/views/my/favs.php

@ -29,6 +29,9 @@ $allTags = Html::getTagNames($viewData['tags']); @@ -29,6 +29,9 @@ $allTags = Html::getTagNames($viewData['tags']);
?>
<main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<h3 class="mt20">你已收藏 <?=$total_my_videos?> 个视频</h3>
<p class="mt10">勾选视频下方的分类,将该视频归类到对应的分类;取消勾选,则将视频从该分类中移除。</p>
<div class="videos_list clearfix" id="favmg">

3
themes/tajian/views/my/index.php

@ -25,7 +25,8 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -25,7 +25,8 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
<li><a href="<?=$linkPrefix?>/my/favs"><img src="/img/favorite.png" alt="favorite" width="20"> 管理收藏</a></li>
<li><a href="<?=$linkPrefix?>/my/tags"><img src="/img/collection.svg" alt="collection" width="18"> 管理分类</a></li>
<li><a href="<?=$linkPrefix?>/my/share"><img src="/img/share-fill.svg" alt="share favorite" width="18"> 分享收藏</a></li>
<li><a href="<?=$linkPrefix?>/my/dirs"><img src="/img/people.svg" alt="share favorite" width="18"> 切换账号</a></li>
<li><a href="<?=$linkPrefix?>/my/dirs"><img src="/img/people.svg" alt="switch directory" width="18"> 切换账号</a></li>
<li><a href="<?=$linkPrefix?>/my/createdir"><img src="/img/person-add.svg" alt="add directory" width="18"> 添加账号</a></li>
</ul>
</div>
</main>

7
themes/tajian/views/my/setnickname.php

@ -5,6 +5,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -5,6 +5,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
$linkPrefix = '/' . FSC::$app['user_id'];
}
?><main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<form class="g_form_style mt65" id="nickname_form" action="" method="POST">
<div class="mb-3 pt20">
<label for="text_input_nickname" class="form-label">昵称</label>
@ -21,10 +24,6 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -21,10 +24,6 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
<span class="bt_text_JS">保存</span>
<div class="bt_loading_cover bt_class_JS elementNone"></div>
</button>
<span class="ml20">
<a href="<?=$linkPrefix?>/my/">返回</a>
</span>
</div>
</form>
</main>

7
themes/tajian/views/my/share.php

@ -7,6 +7,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -7,6 +7,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
$shareUrl = "{$linkPrefix}/";
?><main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<form class="g_form_style mt65" id="share_form" action="" method="POST">
<div class="mb-3 pt20">
<label for="text_share_content" class="form-label">分享链接</label>
@ -23,10 +26,6 @@ $shareUrl = "{$linkPrefix}/"; @@ -23,10 +26,6 @@ $shareUrl = "{$linkPrefix}/";
<span class="bt_text_JS">复制</span>
<div class="bt_loading_cover bt_class_JS elementNone"></div>
</button>
<span class="ml20">
<a href="<?=$linkPrefix?>/my/">返回</a>
</span>
</div>
</form>
</main>

9
themes/tajian/views/my/switchdir.php

@ -10,11 +10,14 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -10,11 +10,14 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
}
?><main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<div class="g_form_style">
<div class="vercenter">
<strong class="nickname">点击切换</strong>
<div>
点击昵称切换:
</div>
<hr>
<ul class="mg_menus">
<?php
if (!empty($viewData['myNicks'])) {

7
themes/tajian/views/my/tag_new.php

@ -5,6 +5,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -5,6 +5,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
$linkPrefix = '/' . FSC::$app['user_id'];
}
?><main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<form class="g_form_style mt65" id="tag_new_form" action="" method="POST">
<div class="mb-3 pt20">
<label for="text_input_tag" class="form-label">分类名</label>
@ -21,10 +24,6 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -21,10 +24,6 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
<span class="bt_text_JS">保存</span>
<div class="bt_loading_cover bt_class_JS elementNone"></div>
</button>
<span class="ml20">
<a href="<?=$linkPrefix?>/my/">返回</a>
</span>
</div>
</form>
</main>

3
themes/tajian/views/my/tags.php

@ -5,6 +5,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -5,6 +5,9 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
$linkPrefix = '/' . FSC::$app['user_id'];
}
?><main class="g_main_lay">
<div class="breadcrumbs">
<a href="<?=$linkPrefix?>/my/">&lt;&lt;返回</a>
</div>
<form class="g_form_style mt65 pb30" id="tags_form" action="" method="POST">
<?php if (!empty($viewData['tags'])) {

5
www/img/person-add.svg

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-add" viewBox="0 0 16 16">
<path d="M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m.5-5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0m-2-6a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4"/>
<path d="M8.256 14a4.5 4.5 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10q.39 0 .74.025c.226-.341.496-.65.804-.918Q8.844 9.002 8 9c-5 0-6 3-6 4s1 1 1 1z"/>
</svg>

After

Width:  |  Height:  |  Size: 569 B

Loading…
Cancel
Save