# mini_question **Repository Path**: diogoxiang/mini_question ## Basic Information - **Project Name**: mini_question - **Description**: 小程序,微信答题小程序,可以进行答题,模拟考试。增加了词典查询,汉字成语查询等功能 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-09-27 - **Last Updated**: 2024-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: miniprogram ## README # 早晚答题小程序 **master是目前已上线的小程序主分支** **scf分支是云开发的分支,由于云开发从2022年8月8日开始收费,将不再更新** *develop 是开发分支,开发新功能,上线后合并到master分支* #### 介绍 答题,题目解析,分享,模拟考试,排名,签到功能,获得积分 利用微信小程序方便进行答题操作 增加了汉字查询、成语查询、英汉词典、诗词歌赋、萌宝启蒙等功能 增加了汉字笔画书写功能 交流 qq群:123955944 #### 扫码预览 ![image](screenshot/zaowanda.jpg) #### 工具使用 > 小程序页面:微信小程序基础组件,vant开源组件 > 后端接口:java 开发,mysql数据库 #### 接口文档 后台接口文档 [http://docs.siival.com/](http://docs.siival.com/) ### 国内访问 [https://gitcode.net/efit/question](https://gitcode.net/efit/question) #### 待完成 1. ~~全唐诗的搜索~~(已完成) 2. ~~宋词的搜索~~(已完成) 3. 文字ocr识别功能(进行中) 4. 歇后语的搜索 5. 后台管理页面开发完善中 6. 后台sass版api接口开放 #### 代码运行 1. 将`utils/constant.js.example` 重命名为`constant.js` 2. `constant.js`里面配置后台接口地址和请求接口的`token` 3. 汉字笔画功能了修改npm包的源码,使用构建npm功能完成之后,找到构建后的`hanzi_witer/index.js`里面找到代码`_animationFrame`方法内容替换为下面代码: ```javascript var ctx = this._target.ctx if( ctx){ ctx.clearRect(0, 0, this._positioner.width, this._positioner.height); ctx.save(); ctx.translate(this._positioner.xOffset, this._positioner.height - this._positioner.yOffset); ctx.transform(1, 0, 0, -1, 0, 0); ctx.scale(this._positioner.scale, this._positioner.scale); func(ctx); ctx.restore(); if (ctx.draw) ctx.draw(); }else{ let that = this const query = wx.createSelectorQuery().in(this._target.view) query .select('#writer-canvas').fields({ node:true }).exec( function(res){ // let ctxnode = res[0].node let ctx = ctxnode.getContext('2d') that._target.ctx = ctx; ctx.clearRect(0, 0, that._positioner.width, that._positioner.height); ctx.save(); ctx.translate(that._positioner.xOffset, that._positioner.height - that._positioner.yOffset); ctx.transform(1, 0, 0, -1, 0, 0); ctx.scale(that._positioner.scale, that._positioner.scale); func(ctx); ctx.restore(); if (ctx.draw) ctx.draw(); }); } ``` #### 扫码添加QQ群讨论 技术交流学习 ![image](screenshot/3.png) #### 微信群 ![](screenshot/4.png) #### 页面截图 ![image](screenshot/question.png) ![image](screenshot/2.jpg) ![image](screenshot/5.jpg) ![image](screenshot/7.jpg) ![image](screenshot/more.png) ![image](screenshot/10.jpg) ![汉字笔画预览](screenshot/preview.gif) ![成语](screenshot/idiom.jpg) ![词典](screenshot/eng_dict.jpg) ![](screenshot/ocr.png) #### 后台截图 ![编辑问题](screenshot/admin-1.png) ![题库分类](screenshot/admin-2.png) ![题库列表](screenshot/admin-3.png) ![每日一题答题记录](screenshot/admin-4.png) #### 参考项目 1. 汉字writer [https://github.com/chanind/hanzi-writer](https://github.com/chanind/hanzi-writer) 2. 汉字笔画write 小程序版 [https://github.com/chanind/hanzi-writer-miniprogram](https://github.com/chanind/hanzi-writer-miniprogram) 3. 日历插件 [https://github.com/treadpit/wx_calendar](https://github.com/treadpit/wx_calendar) 4. 抽奖大转盘 [https://github.com/xing00/wxapp-turn-table](https://github.com/xing00/wxapp-turn-table) 5. 三级联动 [https://github.com/z1511676208/chooseAddr](https://github.com/z1511676208/chooseAddr) #### 赞赏项目 人都是要恰饭的。开源不易,请作者喝杯奶茶吧 微信赞赏 支付宝赞赏 ![](screenshot/alipay.png)