diff --git a/README.md b/README.md index 4db85f5..2c8626b 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,15 @@ - 优化:每个IP和账号限制每天接口保存次数 - 优化:个别Bug修复 +### 2023年8月20日更新 +- 新增:访客统计(博客首页展示总访问量,后台管理系统首页展示IP/地区/用户维度的访问统计) +- 新增:搜索(标题与内容匹配。标题匹配放在上面,内容匹配放在下面。匹配多个标题或者多个内容时间倒叙排列) +- 新增:音乐按照列表顺序播放,列表中最后一首歌播放完后停止 +- 新增:聊天室搜索功能(搜索框下的内容筛选) +- 新增:后台管理系统【欢迎光临】 +- 优化:前端美化 +- 优化:个别Bug修复 + ### 首页 ![首页](首页.jpg) @@ -101,9 +110,13 @@ npm run build 4. 漏洞反馈:欢迎提交BUG 5. 迭代升级:欢迎提好的创意 -群名片七天有效,如果需要请加作者好友(请务必Star,并注明来源),然后拉进交流群(请按需加群,有问题先看文档再咨询网友,退群后删除好友) -如果觉得群友对你有所帮助,希望能“发1元5元10元给个人或者拼手气红包”,或者“口头表达感谢”,非强制。 -每个人在遇到困难时都希望得到别人的帮助。同样,热心帮助他人的人也理应获得善待。 +群名片七天有效,如果需要请加作者好友(请务必Star,并注明来源),然后拉进交流群(请按需加群,有问题先看文档再咨询网友,退群后删除好友)。 + +目前(2023年8月10)群活跃度较高,群友们相互帮助,热心答疑。群友们制作了全流程源码部署教程详细文档、宝塔部署教程、Docker部署教程等,使得项目逐渐完善。 + +如果觉得群友对你有所帮助,希望能“发1元5元10元给个人或者拼手气红包”,或者“口头表达感谢”,为营造群内良好氛围出一份力,谢谢。 + +希望大家一起让这个项目越来越好。 ![个人名片](Sara.jpg) diff --git a/src/components/admin/common/myHeader.vue b/src/components/admin/common/myHeader.vue index 7e5c422..bc6b30c 100644 --- a/src/components/admin/common/myHeader.vue +++ b/src/components/admin/common/myHeader.vue @@ -11,8 +11,8 @@ - + diff --git a/src/components/admin/common/sidebar.vue b/src/components/admin/common/sidebar.vue index 13454ae..cecd70b 100644 --- a/src/components/admin/common/sidebar.vue +++ b/src/components/admin/common/sidebar.vue @@ -1,7 +1,6 @@ diff --git a/src/components/admin/webEdit.vue b/src/components/admin/webEdit.vue index 153fcbe..fcee58f 100644 --- a/src/components/admin/webEdit.vue +++ b/src/components/admin/webEdit.vue @@ -2,7 +2,7 @@
- + @@ -73,7 +73,7 @@
- + @@ -108,7 +108,7 @@
- + @@ -145,7 +145,7 @@
- + @@ -194,7 +194,7 @@
- + diff --git a/src/components/admin/welcome.vue b/src/components/admin/welcome.vue new file mode 100644 index 0000000..be01db7 --- /dev/null +++ b/src/components/admin/welcome.vue @@ -0,0 +1,106 @@ +
+
+

+ + + + +

+
+
+ + + + + diff --git a/src/components/common/treeHole.vue b/src/components/common/treeHole.vue index 97e17c6..3bb5822 100644 --- a/src/components/common/treeHole.vue +++ b/src/components/common/treeHole.vue @@ -7,7 +7,7 @@
+ :src="avatar">
{{funny.title}}
@@ -95,6 +95,8 @@ }, activeName: 0, audio: null, + playList: null, + index: null, funnys: [{ classify: "", count: null, @@ -126,6 +128,12 @@ }, + beforeDestroy() { + if (this.audio != null && !this.audio.paused) { + this.audio.pause(); + } + }, + methods: { getFunny() { this.$http.get(this.$constant.baseURL + "/webInfo/listFunny") @@ -170,7 +178,9 @@ } }); }, - playSound(src) { + playSound(src, playList, index) { + this.playList = playList; + this.index = index; if (this.audio != null) { if (this.audio.src === src) { if (this.audio.paused) { @@ -187,6 +197,16 @@ } else { this.audio = new Audio(src); this.audio.play(); + this.audio.onended = () => { + this.index = this.index + 1; + if (this.index < this.playList.length) { + this.audio.src = this.playList[this.index].url; + this.audio.load(); + setTimeout(() => { + this.audio.play(); + }, 3000); + } + }; } } } diff --git a/src/components/index.vue b/src/components/index.vue index 36127db..3e4eea0 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -40,7 +40,7 @@
- +
@@ -99,7 +99,8 @@ size: 10, total: 0, searchKey: "", - sortId: null + sortId: null, + articleSearch: "" }, guShi: { "content": "", @@ -128,7 +129,27 @@ size: 10, total: 0, searchKey: "", - sortId: sort.id + sortId: sort.id, + articleSearch: "" + }; + this.articles = []; + await this.getArticles(); + this.$nextTick(() => { + document.querySelector('.recent-posts').scrollIntoView({ + behavior: "smooth", + block: "start", + inline: "nearest" + }); + }); + }, + async selectArticle(articleSearch) { + this.pagination = { + current: 1, + size: 10, + total: 0, + searchKey: "", + sortId: null, + articleSearch: articleSearch }; this.articles = []; await this.getArticles(); diff --git a/src/components/love.vue b/src/components/love.vue index 2b1eb46..da4ee9a 100644 --- a/src/components/love.vue +++ b/src/components/love.vue @@ -161,7 +161,11 @@
- + +
diff --git a/src/components/myAside.vue b/src/components/myAside.vue index 3d78ff0..a5320b1 100644 --- a/src/components/myAside.vue +++ b/src/components/myAside.vue @@ -13,12 +13,39 @@ 分类 {{ sortInfo.length }}
+
+ 访问量 + {{ webInfo.historyAllCount }} +
朋友圈
+ +
+
+ 搜索 +
+
+ +
+ + + + +
+
+
+
diff --git a/src/components/weiYan.vue b/src/components/weiYan.vue index 9a919b3..adc5742 100644 --- a/src/components/weiYan.vue +++ b/src/components/weiYan.vue @@ -7,7 +7,11 @@
- + + import('../components/admin/admin'), children: [{ + path: '/welcome', + name: 'welcome', + component: () => import('../components/admin/welcome') + }, { path: '/main', name: 'main', component: () => import('../components/admin/main')