From 713054fbea42cc0629d4fac7f7f60586cbb0cf68 Mon Sep 17 00:00:00 2001 From: liyukun <1099438829@qq.com> Date: Sun, 8 Aug 2021 01:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/template/default/pc/category/list_default.html | 8 +++++--- public/template/default/pc/index/index.html | 11 ++++++----- 待完成.txt | 9 +++++++++ 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 待完成.txt diff --git a/public/template/default/pc/category/list_default.html b/public/template/default/pc/category/list_default.html index 7367334..e96c214 100644 --- a/public/template/default/pc/category/list_default.html +++ b/public/template/default/pc/category/list_default.html @@ -33,17 +33,19 @@ + {notempty name="$field['tags']"}
- {:cn_substr($field['title'],15)}... + {:cn_substr($field['tags'],15)}
+ {/notempty}

- {:cn_substr($field['title'],15)}... + {:cn_substr($field['title'],20)}

- {:cn_substr($field['content'],15)}... + {:cn_substr($field['content'],40)}
diff --git a/public/template/default/pc/index/index.html b/public/template/default/pc/index/index.html index bd18f4c..df5a113 100644 --- a/public/template/default/pc/index/index.html +++ b/public/template/default/pc/index/index.html @@ -120,18 +120,19 @@
+ {notempty name="$field['tags']"}
- {:cn_substr($field['title'],15)}... + {:cn_substr($field['tags'],20)}
+ {/notempty}

- 置顶 - {:cn_substr($field['title'],15)}... + {if $field['is_top']==1}置顶{/if} + {:cn_substr($field['title'],20)}

-
{:cn_substr($field['description'],40)}... -
+
{:cn_substr($field['content'],40)}
diff --git a/待完成.txt b/待完成.txt new file mode 100644 index 0000000..3c6253f --- /dev/null +++ b/待完成.txt @@ -0,0 +1,9 @@ +清理模板中无用的功能 +修正右侧模板的数据 + + +文章tag的改造,tag插入tag表记录id然后跳转对应的链接,为什么写tag表是因为需要排序,和右侧列表 + +设计,添加tag时候插入 tag表, tag包含 tag_name 文章id 获取时候查询这个这个表 + +修改一些调用喂RPC方式,后期课题考虑替换这个 \ No newline at end of file