全国节能宣传周知识答题活动(全国节能宣传周知识问答)

147小编 次浏览

摘要:全国节能宣传周知识答题活动 若想在短期内,进行安全生产知识的传播,那么答题无疑是有效方式之一。 答题活动小程序v3.0,基于微信原生小程序+云开发实现。主要包含六大功能模块页面,首页、活动规则页、排行榜页、答题页、结果页、答题记录页。 适用于节能知识宣传、学法普法教育、消防安全知识宣传、交通安全答题、网络安全知识竞赛、安全生产知识学习、五四青年节答题活动、有奖答题等应用场景。

<h3 style="text-align: left; margin-bottom: 10px;">全国节能宣传周知识答题活动</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">若想在短期内,进行安全生产知识的传播,那么答题无疑是有效方式之一。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><span style="color: green;">答题活动小程序v3.0,</span><span style="color: green;">基于微信原生小程序+云开发实现。</span><span style="color: green;">主要包含六大功能模块页面,首页、活动规则页、排行榜页、答题页、结果页、答题记录页。</span></p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">适用于节能知识宣传、学法普法教育、消防安全知识宣传、交通安全答题、网络安全知识竞赛、安全生产知识学习、五四青年节答题活动、有奖答题等应用场景。</p> <h3 style="text-align: left; margin-bottom: 10px;">活动主题</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">节能降碳,绿色发展</p> <h3 style="text-align: left; margin-bottom: 10px;">活动形式</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">线上知识竞赛</p> <h3 style="text-align: left; margin-bottom: 10px;">竞赛内容</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">绿色环保节能知识、垃圾分类知识</p> <h3 style="text-align: left; margin-bottom: 10px;">活动规则</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">1、本次知识竞赛活动采用微信公众号平台小程序在线答题模式。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">2、知识竞赛题库共计200题,其中单选题100道、多选题50道、判断题50道。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">3、每次答题题库随机抽取10道题目,答题时间为5分钟,每天限制3次答题机会,每次答题满80分即可抽奖。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">4、排名规则,按单次得分,得分相同的按答题用时排。</p> <h3 style="text-align: left; margin-bottom: 10px;">奖项设置</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">奖品设置:话费50元、30元、20元、10元不等;</p> <h3 style="text-align: left; margin-bottom: 10px;">参与方式</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">在活动文章点击链接进入,即可参与答题。</p><img src="http://img2.94zc.com:1799/uploads/2023-05-20/1684576588024.png" style="width: 100%; margin-bottom: 20px;"> <h3 style="text-align: left; margin-bottom: 10px;">软件架构</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><span style="color: green;">微信原生小程序</span></p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><span style="color: green;">后端云开发(数据库、云函数、存储)</span></p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><span style="color: green;">CMS后台管理系统</span></p> <h3 style="text-align: left; margin-bottom: 10px;">功能结构</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">排行榜页</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">活动规则页</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">答题记录页</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">微信授权登录</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">题库随机抽题</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">查询历史成绩</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">首页、答题页、结果页、注册登录页、题库学习等</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">实现页面间跳转功能</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">实现转发分享答题成绩功能</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">实现用云开发实现查询题库功能</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">实现动态题目数据绑定</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">答题交互逻辑</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">切换下一题</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">提交答卷保存到云数据库集合</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">系统自动判分</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">答题结果页从云数据库查询答题成绩</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">支持单选、多选、判断题型</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">错题集</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">查看所有用户的答题记录-管理员</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">查看用户的答题成绩以及答题情况-管理员</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">后台数据监控-管理员</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">后台管理-管理员</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">v3.0版本升级:</strong></p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">1)拓展功能:</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注册登录页 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">题库学习 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">错题集 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">查看所有用户的答题记录-管理员 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">查看用户的答题成绩以及答题情况-管理员 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">后台题库管理系统-管理员 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">题目增删查改-管理员 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">2)升级功能:</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">排行榜页排名机制,优化为取个人最佳成绩进行排名√</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">答题页、结果页界面,增加展示微信头像和昵称栏目√</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">由仅支持单选,升级为支持单选、判断、多选题型 √</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">各界面及功能一些小优化√</p> <h3 style="text-align: left; margin-bottom: 10px;">关键代码</h3> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">1、微信授权登录,获取微信头像昵称</p><button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar"> <image class="avatar" src="{{avatarUrl}}"></image></button> <input type="nickname" class="weui-input" placeholder="请输入昵称"/>const defaultAvatarUrl = https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0 Page({ data: { avatarUrl: defaultAvatarUrl, }, onChooseAvatar(e) { const { avatarUrl } = e.detail this.setData({ avatarUrl, }) }})<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">2、转发分享功能</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">页面内发起转发。通过给 button 组件设置属性 open-type="share",可以在用户点击按钮后触发 Page.onShareAppMessage 事件,相关组件:button。</p>onShareAppMessage: function () { // return custom share data when user share. },<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">3、小程序页面栈最多十层</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">问题:假设小程序内有20个问题页面,答完上一个问题后wx.navigateTo到下一个问题页面,那么到第十题时,你会发现wx.navigateTo跳转不到下一个页面。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">分析:这是因为使用wx.navigateTo跳转会把当前页面保存到页面栈中,而小程序页面栈最多十层。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">解决:使用wx.redirectTo或wx.reLaunch替代。</p> <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">4、从题库中随机抽题</p>// 获取题库-函数定义 getQuestionList() { // 数据库集合的聚合操作实例 activityQuestion .aggregate() .match({ //类似于where,对记录进行筛选 true: _.exists(true) }) .sample({ size: 20 }) .end() .then(res => { // 在控制台打印数据 console.log(res.list) let data = res.list || []; // 将数据从逻辑层发送到视图层,通俗的说,也就是更新数据到页面展示 this.setData({ questionList:data }); }) }<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">5、成绩由高到底排名</p>getRankList() { // 数据库集合的聚合操作实例 activityScore .where({ _openid: _.exists(true) }) .orderBy(totalScore, desc) .get() .then(res => { // 获取集合数据,或获取根据查询条件筛选后的集合数据。 console.log([云数据库] [排行榜] 查询成功) console.log(res.data) let data = res.data || []; // 将数据从逻辑层发送到视图层,通俗的说,也就是更新数据到页面展示 this.setData({ rankList:data }); }) }<img src="http://img2.94zc.com:1799/uploads/2023-05-20/1684576588660.png" style="width: 100%; margin-bottom: 20px;"><span style="color: green;">举报/反馈</span>
随机内容
这款光动能女士腕表,既时尚美观又环保节能,你一定不想错过!医生提醒:不论男女,腿上一旦出现这个标志,说明身体里有血栓(光动能女表推荐) 这款光动能女士腕表,既时尚美观又环保节能,你一定不想错过!医生提醒:不论男女,腿上一旦出现这个标志,说明身体里有血栓(光动能女表推荐)
环保材料的种类与选购(环保材料指什么意思) 环保材料的种类与选购(环保材料指什么意思)
买空调就买节能空调,开利节能空调为您的低碳生活保驾护航!(开利空调几大优势) 买空调就买节能空调,开利节能空调为您的低碳生活保驾护航!(开利空调几大优势)
环保创意手抄报 全国低碳日 手抄报模板大全(环保低碳手抄报 一等奖) 环保创意手抄报 全国低碳日 手抄报模板大全(环保低碳手抄报 一等奖)
市政府与中国节能环保集团签订战略合作框架协议(中国节能环保集团总经理简历) 市政府与中国节能环保集团签订战略合作框架协议(中国节能环保集团总经理简历)
十招节能省钱的好方法(节能省电小妙招) 十招节能省钱的好方法(节能省电小妙招)
山西电信精彩亮相“第十届山西省节能环保、低碳发展博览会”(山西省电信局领导班子) 山西电信精彩亮相“第十届山西省节能环保、低碳发展博览会”(山西省电信局领导班子)
A股申购 | 亚光股份(603282.SH)开启申购 目前产品包括制药装备和节能环保设备两大系列1988年,23岁巩俐和38岁张艺谋泳池边的照片,这一幕相当滑稽可笑(亚光科技招股说明书pdf) A股申购 | 亚光股份(603282.SH)开启申购 目前产品包括制药装备和节能环保设备两大系列1988年,23岁巩俐和38岁张艺谋泳池边的照片,这一幕相当滑稽可笑(亚光科技招股说明书pdf)
增强环境保护意识 学习垃圾分类知识 为节能环保贡献自己一份力量(践行垃圾分类,助力节能环保内容演讲稿) 增强环境保护意识 学习垃圾分类知识 为节能环保贡献自己一份力量(践行垃圾分类,助力节能环保内容演讲稿)
中国品牌日:200+企业云亮相,以品牌新力量,促进汽车后市场健康发展(企业品牌价值排名) 中国品牌日:200+企业云亮相,以品牌新力量,促进汽车后市场健康发展(企业品牌价值排名)