diff --git a/themes/tajian/controller/FrontapiController.php b/themes/tajian/controller/FrontapiController.php index 033703f..389509a 100644 --- a/themes/tajian/controller/FrontapiController.php +++ b/themes/tajian/controller/FrontapiController.php @@ -734,7 +734,7 @@ eof; if (empty($err)) { //如果数据检查通过,尝试登录 $newUser = Common::saveUserIntoSession($cellphone); if (!empty($newUser)) { - $shareUrl = "/{$newUser['username']}/"; + $shareUrl = "/{$newUser['username']}/my/"; $msg = "登录成功,开始收藏你喜欢的视频吧"; $code = 1; diff --git a/themes/tajian/controller/MyController.php b/themes/tajian/controller/MyController.php index 91561e5..b0cb12a 100644 --- a/themes/tajian/controller/MyController.php +++ b/themes/tajian/controller/MyController.php @@ -93,4 +93,11 @@ Class MyController extends SiteController { return $this->actionIndex($viewName, $defaultTitle); } + //分享收藏夹 + public function actionShare() { + $defaultTitle = "分享收藏夹"; + $viewName = 'share'; + return $this->actionIndex($viewName, $defaultTitle); + } + } \ No newline at end of file diff --git a/themes/tajian/views/my/index.php b/themes/tajian/views/my/index.php index 6c05305..1bf2344 100644 --- a/themes/tajian/views/my/index.php +++ b/themes/tajian/views/my/index.php @@ -24,6 +24,7 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
  • favorite 管理收藏
  • edit 添加分类
  • add favorite 添加收藏
  • +
  • add favorite 分享收藏
  • diff --git a/themes/tajian/views/my/share.php b/themes/tajian/views/my/share.php new file mode 100644 index 0000000..c2e841b --- /dev/null +++ b/themes/tajian/views/my/share.php @@ -0,0 +1,33 @@ +
    +
    +
    + + +

    复制上面分享内容,在微信、QQ等App里粘贴发给朋友。

    +
    +
    + + + + 返回 + +
    +
    +
    + \ No newline at end of file diff --git a/www/img/share-fill.svg b/www/img/share-fill.svg new file mode 100644 index 0000000..4622c7a --- /dev/null +++ b/www/img/share-fill.svg @@ -0,0 +1,4 @@ + + + + diff --git a/www/js/clipboard.min.js b/www/js/clipboard.min.js new file mode 100644 index 0000000..1103f81 --- /dev/null +++ b/www/js/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return b}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),r=n.n(e);function c(t){try{return document.execCommand(t)}catch(t){return}}var a=function(t){t=r()(t);return c("cut"),t};function o(t,e){var n,o,t=(n=t,o="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[o?"right":"left"]="-9999px",o=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(o,"px"),t.setAttribute("readonly",""),t.value=n,t);return e.container.appendChild(t),e=r()(t),c("copy"),t.remove(),e}var f=function(t){var e=1