GithubHelp home page GithubHelp logo

ygragon / doughnut Goto Github PK

View Code? Open in Web Editor NEW
97.0 4.0 31.0 847 KB

甜甜圈,利用 小程序云数据库 简单实现一个社区 Demo,包含有首页、发布、个人中心、话题回复、话题点赞等功能

JavaScript 100.00%

doughnut's Introduction

甜甜圈Plus

基础版也是能用,但是升级版UI美化而且加了很多新功能。有需要的可以查看升级版的项目,辛苦整理了35篇文章,从0开始实战云开发社区项目:文章可免费查看 https://www.yuque.com/longyi-z9dmn/zomm64#,源码需付费,谢谢理解。

专栏大纲

甜甜圈

使用说明

  1. 在微信小程序客户端创建一个云开发项目

  2. 在云开发控制台页面,选择数据库,创建 topic,collect,history,replay 四个集合

    开发环境

  3. 下载到本地 git clone https://github.com/dongxi346/doughnut.git 或者 下载 zip

  4. 将下载下来的项目中的 miniprogram 目录下的文件全部复制到你的 miniprogram目录下

  5. 修改 app.js 中的 globalData 字段修改

this.globalData = {
   openid: '你的openid',
   evn: '你的开发环境'
 }

ps: openid 的获取可以参考我之前的文章:

微信小程序开通云开发并利用云函数获取 Openid

全栈项目|小书架|微信小程序-登录及 token 鉴权

开发环境可以在云数据库中查看

开发环境

效果展示

发布 广场首页 文章详情 回复 预览图片 我的

更多信息

  • 更多小程序文章可查看我的专栏:小程序之旅,专栏中有小程序云开发项目,也有使用NodeJS+Koa2开发的小程序后台服务器。
  • 如还有问题,加我微信(weixin1105894953)发 1.68 红包可解答小程序相关问题

doughnut's People

Contributors

ygragon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

doughnut's Issues

请教问题

为什么我的回复内容没办法在文章详情里展示

你好,我想在collect中新增content但是数据库的content总是空的,希望可以指导一下,谢谢

getTextAreaContent: function (event) {
that.data.content = event.detail.value;
},

saveToCollectServer: function (event) {
db.collection('collect').add({
// data 字段表示需新增的 JSON 数据
data: {
_id: that.data.id,
date: new Date(),
user: that.data.user,
content: that.data.content ,
},
success:res=> {
that.refreshLikeIcon(true)
this.setData({
content: event.detail.value
})

  },
})

},

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.