Demonstration of web development works must report body temperature every day WeChat mini program

1. Project source

  The arrival of the epidemic in 2020 has caused many schools to pay more attention to the health of students. Therefore, schools must collect student body temperature data every day to prevent and control the epidemic. In our school, the body temperature collection work needs to be collected by many people. For example, student A must report the temperature to the student leader B, the student leader must report the temperature to the instructor A, and the instructor A must report the student's temperature data to the group teacher B, the group teacher B must report the body temperature to the teacher C in charge of the department, and the teacher in charge of the department C must report the temperature data to the teacher in charge of the school D. Not only the steps are complicated, but the number of students is also large. Take our school as an example. For more than 10,000 teachers and students, body temperature statistics is undoubtedly a huge workload, and it also brings a huge workload to classmates and teachers, so we have developed a WeChat applet that can help teachers and students complete body temperature statistics.
This project is open source! Like to give a star!
Open source address: git link
Video demo:

Report body temperature every day

Two, application scenarios

This is a small program for reporting body temperature data. It can be used in schools and other places where body temperature needs to be counted. The main functions are:
1. Enter body temperature and report body temperature.
2. View daily reported body temperature records.
3. Manage team members to add team members and delete members.
4. View the body temperature data reported by the team members.
Functions currently under development:
1. Body temperature report reminder: The user sets a time point, and the WeChat applet will send a temperature report reminder message to the user every day.
2. Generate excel form function: the user obtains the body temperature of the group members and exports the excel form and reports it to the school.
3. Visualization of body temperature data: Display the body temperature recently reported by the user in the form of a chart and line graph.

3. Target group

Students and other groups who need to report their temperature every day.

Four, realization of ideas

1) Overall planning: Before doing the project, the overall planning of the project was completed, the functional design and database design were completed, and the WeChat applet cloud development method was adopted, and the cloud database was used to store student information and user information.
2) Database design: The database has two data tables, one is the student information table uploaded by the administrator in advance, and the other is the user table used to store the data information generated after the user binds the information. The permissions are set to be readable by all users. The creator can read and write.
3) Functional design: The goal of the mini program is to solve the statistical problem of body temperature reporting and reduce the time for manual statistics. Therefore, the body temperature reporting and group member management modules are indispensable. In order to view the records reported by oneself on the day, the view day is added Module for reporting body temperature.
4) User binding: get the account and password entered by the user, query the student table for the existence of the user and determine whether the password is correct, and use the personal information of the student table to create a record in the user table for storage. Account information (such as body temperature reported every day, group members, etc.). The record created at this time has an openid field to identify the identity of the Mini Program user.
5) Submit: After getting the body temperature data entered in the input box, make a judgment. If the body temperature data entered by the user does not meet the specifications, then a prompt will be given. If the user does not bind the information, then a guide to bind the account will be given. After there is no problem, encapsulate the body temperature data and date into an object push into the report field (type is an array).
6) Personal information: including name, student ID number, identity idntity, professional major, authorization code id, where the authorization code is used by others to add the user to the group.
7) View the report record: Put it in the onshow function, query the user's report array according to openid every time it comes in, and render the objects (time and body temperature) of the report field array in the form of a table.
8) Group member management: when adding group members, enter the other user’s student ID name authorization code (the authorization code is actually the field "_id"), query in the user table according to these three fields, if the user exists, then the user’s name The student ID is packaged into an object and pushed into the member field (array type) of the user. Simply render the contents of the member array at the bottom of the page.
9) Team member body temperature: First get the member field recorded under the user's corresponding openid, get the group member information, and query the date of the last element in the member's report field array according to the group member information. If it is consistent with the current day, then explain And report, otherwise there is no report, put it in two different arrays and render them.

5. Mini Program Framework

Six, work experience QR code


Instructions for use: Because this small program can only be used by designated people, contact WeChat j1967760537 to apply for experience qualification before the experience, thank you for your cooperation.

Guess you like

Origin blog.csdn.net/JIANGYINGH/article/details/108731947