Skip to content

Commit

Permalink
feat: 局部更新注释删除以及注意事项md配布
Browse files Browse the repository at this point in the history
  • Loading branch information
nutVI committed May 15, 2021
1 parent 8741a05 commit 7617fda
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 13 additions & 0 deletions precautions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
为了让学生能在深圳大学校务信箱发送评论, 编写了此脚本.
1. 目前开发功能
- 内部网登录后回自动登录并验证信息
- 信箱的评论以及评论的回复
- 设置昵称, 设置头像, 在评论时能显示
- 可以选择启动匿名功能
- 消息的回复通知功能
- 评论点赞功能
- 为了方便使用信箱, 添加了局部更新的功能, 具体为`给前一封和后一封添加点击事件, 完成局部更新`
2. 身份验证机制: 由前台获取深圳大学的cookie, 发送到后台, 后台依靠此cookie验证和记录用户.
3. 匿名问题, 在网页端可以保证匿名的可靠性, 但是后台依旧保留数据以供相关部门安全检查
4. 源代码: `https://github.com/nutVI/SZU_mailbox_forumFE`. 考虑到开发问题, 采用了vue框架编写, 并由webpack打包为单独js文件, 具有混淆性. 此处提供源码检查.
5. 问题反馈可通过发送邮箱[email protected]
2 changes: 0 additions & 2 deletions src/function/change.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default {

currentPage.href = "javascript:void(0);"
currentPage.onclick = () => {
console.log(url, search)
api.httpHtmlMethod("GET", url, {}, "gb2312").then((res) => {
vue.showURL = 0;

Expand Down Expand Up @@ -58,7 +57,6 @@ export default {
},

popstateListen(event, root, vue) {
console.log(event.state, root)
root.POSTID = event.state.postid

let prePage, nextPage;
Expand Down

0 comments on commit 7617fda

Please sign in to comment.