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

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>
随机内容
节能增效,绿色低碳,从我做起 | 安徽长城积极开展了2020年节能宣传周暨全国低碳日主题活动(节能降碳绿色生活) 节能增效,绿色低碳,从我做起 | 安徽长城积极开展了2020年节能宣传周暨全国低碳日主题活动(节能降碳绿色生活)
国家发改委:固定资产投资项目节能审查不过,不得开工、不得投用,6月1日起施行!(固定资产投资项目节能评估审查指南) 国家发改委:固定资产投资项目节能审查不过,不得开工、不得投用,6月1日起施行!(固定资产投资项目节能评估审查指南)
海南开启装配式建筑时代 房屋更节能环保(海南装配式规定) 海南开启装配式建筑时代 房屋更节能环保(海南装配式规定)
「项目精选」107期:节能环保领域精选科技成果推荐(节能环保领域的科技) 「项目精选」107期:节能环保领域精选科技成果推荐(节能环保领域的科技)
政策 | 山东:关于加快节能环保产业高质量发展的实施意见(山东省节能减排) 政策 | 山东:关于加快节能环保产业高质量发展的实施意见(山东省节能减排)
中国节能环保集团有限公司总经理人选落定(中国节能环保集团怎么样) 中国节能环保集团有限公司总经理人选落定(中国节能环保集团怎么样)
美图社交分享生活喜悦!还不快来解锁OLED专业显示器新玩法?(美图秀秀怎么抠图) 美图社交分享生活喜悦!还不快来解锁OLED专业显示器新玩法?(美图秀秀怎么抠图)
50张万箭穿心的环保宣传海报!看完,我沉默了……(环保宣传语广告语) 50张万箭穿心的环保宣传海报!看完,我沉默了……(环保宣传语广告语)
湖南省室内节能与绿色环保标准化技术委员会在长沙成立红网2018-11-23 21:18(湖南省室内环境净化行业协会会长是谁) 湖南省室内节能与绿色环保标准化技术委员会在长沙成立红网2018-11-23 21:18(湖南省室内环境净化行业协会会长是谁)
李克强:发展壮大节能环保产业 培育新增长点 李克强:发展壮大节能环保产业 培育新增长点