The editor of Downcodes brings you a detailed introduction and deployment tutorial of the source code of the Hands-Learning Lab curriculum applet. The source code is developed based on the ThinkPHP system, with front-end and back-end separation, and is rich in functions, including couple functions, curriculum background settings, educational system curriculum import, multi-school support and other special features, aiming to provide users with a convenient and personalized course management experience. Whether it's interactive messages between couples or personalized course schedule background settings, it can add fun to learning life. This source code also supports importing course schedules and single course information shared by others, making it easier for users to quickly obtain the information they need.
The source code of the Lianshou Lab curriculum applet is a front-end and back-end separation system developed based on the Thinkphp system.
Introduction to source code functions
1. Couple function
2. Messages between couples
3. Couples set up curriculum background for each other
4. Set your own daily and weekly class schedule background
5. Import the curriculum of the educational administration system
6. Import class schedules shared by others
7. Import single lessons shared by others
8. Multi-school support
9. Atmosphere settings at the top of the homepage (administrator settings, festive atmosphere)
Environmental requirements
1. Server: php+mysql (based on fastadmin)
2. Mini program: native + colorui
Preparation
1. You need to prepare your own server and registered domain name
2. Apply for an https certificate. The dnspod website can apply for one year for free.
3. Install the PHP operating environment (PHP >= 7.1 and < 7.3 (PHP7.1 recommended), Mysql >= 5.5.0)
4. Go to the WeChat public platform, apply for a mini program, and obtain the AppID and AppSecret.
Server-side deployment tutorial
1. Add the site and upload the code to the root directory
2. The public directory bound to the project is the running directory, and pseudo-statically select thinkphp.
3. Enter the domain name you bound and it will automatically jump to the installation interface.
4. Install according to the prompts (the above three steps are actually to install the fastadmin framework)
5. Enter the backend, search for "hand training schedule" in the plug-in management, and install it.
6. Install third-party login plug-in
7. Set up the mini program AppID and AppSecret (obtained from the WeChat public platform), practice Lab key (if you deploy the independent version, just generate a 16-digit string yourself), and do not change the site ID! ! !
8. The server is deployed
Note: If you don’t have a server, you can use our SaaS version, that is, use our server, and the mini program is still your own
Mini program deployment tutorial
The source code of the mini program is in the wxapp folder
In the WeChat developer tools, select the project in the upper left corner, import the project, and select this folder
1. Modify the cryptoKey under the config.js file and generate a 16-bit string by yourself
2. Modify the domain name in baseUrl to your own (note that in the WeChat public platform, add a whitelist)
3. Modify the appid in the project.config.json file to your own
4. WeChat Developer Tools, in the details in the upper right corner, check ES6 to ES5
5. If an error is reported, please check whether the whitelist is configured. After configuration, in the project configuration (see the upper right corner of the picture above), click Refresh.
6. Preview, you can upload if there is no problem
User Manual
1. Atmosphere setting at the top of the home page. Because the curriculum applet is too tool-like and does not have miscellaneous functions, so the operating space is not strong, so this function has been added, such as changing the background for Dragon Boat Festival and Mid-Autumn Festival. It can even open submissions for students to take pictures of campus scenery and give them to others. Signatures, one changed every day.
2. You can set class time, winter and summer time dates by school, without affecting each other, and automatically switch to the date.
3. Importing the curriculum into the educational administration system requires adaptation. Currently, the educational administration systems of Zhengfang and Qingguo are supported.
4. Share the entire course schedule and generate a mini program code. It is suitable for the same class and the same course schedule. You can directly print the mini program code and let students scan it to import the course schedule.
5. Sharing a single class is suitable for situations where the class schedule of each student is inconsistent. You can directly paste the small program code for a single class at the door of the classroom and only import the class schedule for that class.
I hope this tutorial can help you successfully deploy and use the source code of the Hands-on Lab curriculum applet. If you have any questions, please feel free to contact us. The editor of Downcodes wishes you a happy use!