Giter Club home page Giter Club logo

wxapp-mall-clouddb's Introduction

wxapp-mall-clouddb

微信小程序-云开发 商城 微信云数据库 无服务器 加后台管理

说明:

目前云开发仅针对认证后的公众号使用(每年300的费用那个)

作者用的时候还没有这个规定, 所以(不换appid且不用作者的微信登录) 或者()换非认证后的appid) 后会导致 若干数据库相关的bug, 如数据库修改无效等等

  • 9.20更新: 数据库分为两个文件: db_data1.txt db_order.txt 分别导入data1, order. 注意修改为自己的openid 数据上传的时候注意权限管理, 如果权限不对(openid不对应或者没有), 会导致读不到数据

前言

最近微信出了一个云开发, 就是有一个免费的数据库给你使用. 因为没有服务器所以是没有付款功能 这样就可以尝试这不是用后台进行开发 由于对小程序研究不深, 代码不一定是最优解, 代码也有很多不规范的地方和重复代码(懒得一个个改了) 数据上传的时候注意权限管理, 如果权限不对(openid不对应或者没有), 会导致读不到数据

如何使用

  • 如果需要范例数据, 请先导入数据库(在开发工具的云开发控制台)点击查看官方文档
  • 数据库是db.txt 一定要把openid改成自己的opendid, 不可以不填. 不是自己openid和不填都可能会导致读取不到 order 要放在order数据库中 其他放在data1数据库中
  • 由于官方没有给出导出数据库, 在page/component/databaseGuide/savadb中给出了导出数据库, 会打印在控制台中
  • 如果不需要范例数据请先进入后台插入数据
  • 如何进入后台: 在"我的"插页3s内点击头像7次(不要问我为什么是77777~)
  • 第一次进入后台会提示输入初始的密码, 进入后台会验证密码

更多说明

  • 因为没有服务器... 所以付款功能注释掉了, 需要的同学可以开一下, 然后写一下逻辑(逻辑和不付款冲突, 所以就没写)
  • 因为考虑到首页展示的要精细一点(相对于展示全部商品),因此会有不同的图片和标题, 管理首页的时候靠id关联
  • 后台添加/管理页有详细的字段解释

功能

  • 首页
  • 搜索
  • 分类
  • 购物车
  • 个人中心
  • 商品列表
  • 商品详情
  • 订单
  • 地址管理
  • 后台增删商品列表
  • 后台增删商品详情
  • 后台增删订单

实现效果

admin admin_classifyMgr admin_goodsMgr admin_modifyIndex admin_modifyIndex2 admin_order admin_order2 cart classify detail detail2 index modal password user

相关

文章:css参考

运行

需要安装有微信开发者工具。(9.10号以后的版本 基础库 2.2.3 开始支持) 把项目下载到本地。 在微信开发者工具中打开该项目则可预览。

By the way

star me...

wxapp-mall-clouddb's People

Contributors

pzx521521 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

Watchers

 avatar  avatar  avatar  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.