当前位置:网站首页>From 0 to 1: Design and R&D Notes of Graphic Voting Mini Program
From 0 to 1: Design and R&D Notes of Graphic Voting Mini Program
2022-08-01 22:37:00 【CC classmate】
业务背景
当前投票活动十分火,商家,企业,机构,政府部门偶尔都会来一场投票活动评选,比如产品优劣评比,公司杰出青年评选等等.
功能设计
- 主题设置 :主题色调、投票活动海报图、活动标题、活动规则、日期时间
- 选项设置 :选项标题、选项描述、选项图片
- 规则设置 :截止时间、用户投票次数(按天或者全程)、Voting result display settings
- 分享设置 :分享给好友和群聊,生成二维码海报,Embed into the official account and so on
- 结果统计 :排行名单,导出投票结果Excel

数据设计
包括:
- vote: 投票主表
- vote_join: 投票详情表
- user: 用户表
- news : 动态表
- fav: 收藏表
- admin : 管理员表
- admin_log: 管理员操作日志表
- setup : 设置表
voting table design
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设计





后台设计





源码分享
边栏推荐
- How to add a game character to a UE4 scene
- AQS
- 解决yolov5训练时出现:“AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train ”
- familiar friend
- 如何给 UE4 场景添加游戏角色
- 还在纠结报表工具的选型么?来看看这个
- SQL29 Calculate the average next day retention rate of users
- JS 数组去重(含简单数组去重、对象数组去重)
- SRv6 L3VPN的工作原理
- 力扣第 304 场周赛复盘
猜你喜欢

SOM Network 2: Implementation of the Code

_ _ determinant of a matrix is higher algebra eigenvalue of the product, the characteristic value of matrix trace is combined

Getting Started Database Days4

华为无线设备配置全局双链路冷备份(AC全局配置方式)

xctf attack and defense world web master advanced area web2

【牛客刷题-SQL大厂面试真题】NO4.出行场景(某滴打车)
![[Niu Ke brush questions-SQL big factory interview questions] NO4. Travel scene (a taxi)](/img/26/4c3080f1b21efb9401d8c3a55bc15d.png)
[Niu Ke brush questions-SQL big factory interview questions] NO4. Travel scene (a taxi)

seaborn笔记:可视化统计关系(散点图、折线图)

【数据分析03】

PHP算法之电话号码的字母组合
随机推荐
使用Jenkins做持续集成,这个知识点必须要掌握
Postman batch test interface detailed tutorial
(翻译)按钮的对比色引导用户操作的方式
Mini Program Graduation Works WeChat Food Recipe Mini Program Graduation Design Finished Product (8) Graduation Design Thesis Template
文件查询匹配神器 【glob.js】 实用教程
[ASM] Bytecode Operation MethodWriter
number of solutions to solve a multivariate multi-degree equation
03. GO language variable definition, function
SOM Network 2: Implementation of the Code
深度学习Course2第二周Optimization Algorithms习题整理
数据增强--学习笔记(图像类,cnn)
小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书
企业公众号文章写作方向:如何写出读者认可的优质内容
PHP算法之最接近的三数之和
xctf attack and defense world web master advanced area web2
Small application project works WeChat stadium booking applet graduation design of the finished product (1) the development profile
Go 微服务开发框架DMicro的设计思路
Flutter基础学习(一)Dart语言入门
xctf攻防世界 Web高手进阶区 web2
Analysis of the development trend of game metaverse