diff --git a/1/base.html b/1/base.html new file mode 100644 index 0000000..2a3fd6b --- /dev/null +++ b/1/base.html @@ -0,0 +1,16 @@ + + + + + {block name="title"}标题{/block} + + + + {block name="menu"}菜单{/block} + {block name="left"}左边分栏{/block} + {block name="main"}主内容{/block} + {block name="right"}右边分栏{/block} + {block name="footer"}底部{/block} + + + \ No newline at end of file diff --git a/1/header.html b/1/header.html new file mode 100644 index 0000000..0015833 --- /dev/null +++ b/1/header.html @@ -0,0 +1 @@ +模板被引用 \ No newline at end of file diff --git a/1/index.html b/1/index.html new file mode 100644 index 0000000..5e9d669 --- /dev/null +++ b/1/index.html @@ -0,0 +1,35 @@ +{extend name="forum/base" /} + +{block name="title"}{$title}{/block} + +{block name="menu"} +首页 +资讯 +论坛 + + +{include file="forum/header" /} + + +{/block} + +{block name="left"}{/block} + +{block name="main"} +{volist name="list" id="vo"} +{$vo.title}
+{$vo.content} +{/volist} +{/block} + +{block name="right"} +最新资讯: +{volist name="news" id="new"} +{$new.title}
+{/volist} +{/block} + +{block name="footer"} +{__block__} +@寄托天下 版权所有 +{/block} \ No newline at end of file diff --git a/component/head-top/head-top.js b/component/head-top/head-top.js index e53e4c9..b86dac9 100644 --- a/component/head-top/head-top.js +++ b/component/head-top/head-top.js @@ -19,5 +19,5 @@ export const headTop = defineComponent({ return { signInAlreadyState }; }, - template: `
已签到,明天再来
签到领寄托币
GO
`, + template: `
已签到,明天再来
签到领寄托币
GO
`, }); diff --git a/component/head-top/head-top.txt b/component/head-top/head-top.txt index 37918b6..18ab0ad 100644 --- a/component/head-top/head-top.txt +++ b/component/head-top/head-top.txt @@ -3,7 +3,7 @@
- +
diff --git a/component/hot-search/hot-search.js b/component/hot-search/hot-search.js index 7300765..7ec7363 100644 --- a/component/hot-search/hot-search.js +++ b/component/hot-search/hot-search.js @@ -25,5 +25,5 @@ export const hotSearch = defineComponent({ components: {}, - template: `
热门搜索
`, + template: `
热门搜索
`, }); diff --git a/component/hot-search/hot-search.txt b/component/hot-search/hot-search.txt index 047ea0c..122259a 100644 --- a/component/hot-search/hot-search.txt +++ b/component/hot-search/hot-search.txt @@ -4,6 +4,6 @@ 热门搜索
- {{ item.keyword }} + {{ item.keyword }}
\ No newline at end of file diff --git a/component/hot-tag/hot-tag.js b/component/hot-tag/hot-tag.js index 17b48d7..9244565 100644 --- a/component/hot-tag/hot-tag.js +++ b/component/hot-tag/hot-tag.js @@ -25,5 +25,5 @@ export const hotTag = defineComponent({ components: {}, - template: `
热门标签
{{ item.tagname }}
`, + template: `
热门标签
{{ item.tagname }}
`, }); diff --git a/component/hot-tag/hot-tag.txt b/component/hot-tag/hot-tag.txt index 7bd75eb..ca57f25 100644 --- a/component/hot-tag/hot-tag.txt +++ b/component/hot-tag/hot-tag.txt @@ -4,6 +4,6 @@ 热门标签
- {{ item.tagname }} + {{ item.tagname }}
\ No newline at end of file diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 3b9674c..feb1187 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -98,12 +98,16 @@ export const itemBottom = defineComponent({ }); }; - return { collectClick, item, likeClick, isLogin, isLikeGif }; + const copyLinkClick = () => { + copyUid(`http://14.22.79.19:9551/?tpl=forum/details&uniqid=${item.value.uniqid}`); + } + + return { copyLinkClick, collectClick, item, likeClick, isLogin, isLikeGif }; }, components: { like, }, - template: `
{{ item?.commentreviews?.content || "[图]" }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
转发
`, + template: `
{{ item?.commentreviews?.content || "[图]" }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
转发
`, }); diff --git a/component/item-bottom/item-bottom.txt b/component/item-bottom/item-bottom.txt index 4d94b16..3bd3d2a 100644 --- a/component/item-bottom/item-bottom.txt +++ b/component/item-bottom/item-bottom.txt @@ -1,9 +1,9 @@
{{ item?.commentreviews?.content || "[图]" }}
-
+