Code Monkey home page Code Monkey logo

liveboards's Introduction

liveBoard

微信小程序留言板

目的

为自己的公众号实现留言功能,增加和用户的互动性!现在的架构只支持单用户部署。就是自己新建一个小程序,不适合多用户共用。

使用方法

1、下载后导入小程序编辑器,填入自己注册的微信小程序appid

2、开通云开发,同步函数

3、在数据库中新建 author、message、msgpages 三个集合,并在author中新增如下数据格式

"_id": "_openid",
"_openid": " 填入自己的openid"

4、在小程序后台创建订阅通知模板获取模板ID

5、自己申请企业微信,并在应用中新建应用,复制其corpsecret和agentId,并在我的企业中中复制 企业 ID => corpId 将上面Id填入utils目录中的utils.js文件中对应的项目中。

6、将app.js中的云服务id替换成自己的云环境ID

主要功能

  • 1、管理员可以为文章加删除留言
  • 2、可以对用户留言进行多轮回复
  • 3、管理员可以删除、置顶留言
  • 4、用户可以对留言进行点赞
  • 5、用户可以订阅管理员回复
  • 6、管理员可以接收用户留言微信通知(利用企业微信)。
  • 7、可以一键跳转文章
  • 8、一键复制页面地址和二维码

未来规划功能

  • 1、增加区分纬度,以公众号为区分
graph LR
公众号 --> 留言文章
  • 2、增加评论多轮回复
  • 3、增加评论删除
  • 4、增加文章编辑
  • 5、增加评论审核机制

我的博客

有疑问可以在博客找到我

或者在公众号 【 执行上下文 】或者 【 卖坚果的怪叔叔 】 找到我

执行上下文.jpg

卖坚果的怪叔叔

liveboards's People

Contributors

rooon avatar jiaopianjun avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.