当前位置:网站首页>从0到1:图文投票小程序设计与研发笔记
从0到1:图文投票小程序设计与研发笔记
2022-08-01 22:32:00 【CC同学呀】
业务背景
当前投票活动十分火,商家,企业,机构,政府部门偶尔都会来一场投票活动评选,比如产品优劣评比,公司杰出青年评选等等。
功能设计
- 主题设置 :主题色调、投票活动海报图、活动标题、活动规则、日期时间
- 选项设置 :选项标题、选项描述、选项图片
- 规则设置 :截止时间、用户投票次数(按天或者全程)、投票结果展示设置
- 分享设置 :分享给好友和群聊,生成二维码海报,嵌入到公众号等等
- 结果统计 :排行名单,导出投票结果Excel
数据设计
包括:
- vote: 投票主表
- vote_join: 投票详情表
- user: 用户表
- news : 动态表
- fav: 收藏表
- admin : 管理员表
- admin_log: 管理员操作日志表
- setup : 设置表
投票表设计
VoteModel.DB_STRUCTURE = {
_pid: 'string|true',
VOTE_ID: 'string|true',
VOTE_TITLE: 'string|true|comment=标题',
VOTE_STATUS: 'int|true|default=1|comment=状态 0=未启用,1=使用中',
VOTE_CATE_ID: 'string|true|default=0|comment=分类',
VOTE_CATE_NAME: 'string|false|comment=分类冗余',
VOTE_IS_REG: 'int|true|default=0|comment=是否需要注册',
VOTE_SHOW_START: 'int|true|default=0|comment=是否展示开始时间',
VOTE_START: 'int|true|comment=开始时间',
VOTE_END: 'int|true|comment=截止时间',
VOTE_THEME: 'int|true|default=0|comment=主题',
VOTE_ORDER: 'int|true|default=9999',
VOTE_VOUCH: 'int|true|default=0',
VOTE_ITEM: 'array|false|default=[]|comment=投票项目 [{
label=名称,cnt=数量,pic=图片}]',
VOTE_TYPE: 'int|true|default=1|comment=模式 0=全程 1=每日可投',
VOTE_MAX_CNT: 'int|true|default=3|comment=可投总票数',
VOTE_FORMS: 'array|true|default=[]',
VOTE_OBJ: 'object|true|default={}',
VOTE_QR: 'string|false',
VOTE_VIEW_CNT: 'int|true|default=0',
VOTE_USER_CNT: 'int|true|default=0',
VOTE_CNT: 'int|true|default=0',
VOTE_ADD_TIME: 'int|true',
VOTE_EDIT_TIME: 'int|true',
VOTE_ADD_IP: 'string|false',
VOTE_EDIT_IP: 'string|false',
};
投票详情表设计
VoteJoinModel.DB_STRUCTURE = {
_pid: 'string|true',
VOTE_JOIN_ID: 'string|true',
VOTE_JOIN_USER_ID: 'string|true|comment=用户ID',
VOTE_JOIN_VOTE_ID: 'string|true|comment=投票PK',
VOTE_JOIN_IDX: 'int|true|comment=投票项目索引',
VOTE_JOIN_DAY: 'string|true|comment=投票日期',
VOTE_JOIN_VOTE_TITLE: 'string|true|comment=投票项目冗余',
VOTE_JOIN_ITEM_LABEL: 'string|true|comment=投票选项冗余',
VOTE_JOIN_ADD_TIME: 'int|true',
VOTE_JOIN_EDIT_TIME: 'int|true',
VOTE_JOIN_ADD_IP: 'string|false',
VOTE_JOIN_EDIT_IP: 'string|false',
};
核心流程
UI设计
后台设计
源码分享
边栏推荐
- 联邦学习在金融领域的发展和应用
- blender3.2.1 unit setting
- SOM Network 2: Implementation of the Code
- No more rolls!After joining ByteDance for a week, he ran decisively.
- npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
- 罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
- 安全第五次课后练习
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(3)后台功能
- excel split text into different rows
- RxJs SwitchMapTo 操作符之移花接木
猜你喜欢
小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
小程序毕设作品之微信美食菜谱小程序毕业设计成品(6)开题答辩PPT
【Verilog刷题篇】硬件工程师从0到入门1|基础语法入门
The must-have "fishing artifact" for programmers is here!
还在纠结报表工具的选型么?来看看这个
(翻译)按钮的对比色引导用户操作的方式
SOM Network 1: Principles Explained
Recycling rental system 100% open source without encryption Mall + recycling + rental
Getting Started Database Days4
小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
随机推荐
visual studio code multiple editing
Small application project works WeChat stadium booking applet graduation design of the finished product (1) the development profile
How to add a game character to a UE4 scene
【ASM】字节码操作 MethodWriter
03、GO语言变量定义、函数
小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
牛客多校4 A.Task Computing 思维
Deep learning Course2 first week Practical aspects of Deep Learning exercises
Today's sleep quality record 74 points
SAP Spartacus Accessibility E2E 端到端测试
域名重定向工具 —— SwitchHosts 实用教程
SOM Network 2: Implementation of the Code
小程序容器+自定义插件,可实现混合App快速开发
No more rolls!After joining ByteDance for a week, he ran decisively.
别看了,这就是你的题呀
Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you
不卷了!入职字节跳动一周就果断跑了。
xctf攻防世界 Web高手进阶区 web2
小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
PAM 回文自动机