What to eat applet based on Python

Click the link below to get the source code resources:
https://download.csdn.net/download/qq_64505944/87979945
insert image description here
"What to eat today" program instructions Start the venv virtual environment under WhatToEat/WhatToEat on
the applet side , and run the python manage.py runserver command
Start Flask. Then open the WeChat developer tool and scan the code to log in, select the WhatToEat/Mina applet, and enter the applet login page after loading, as shown in Figure 1. Click "WeChat Login" to prompt WeChat authorization, as shown in Figure 2. Click the "Allow" button to enter the home page of the applet. As shown in Figure 3.
insert image description here

Figure 1 Login page Figure 2 WeChat authorization Figure 3 Mini program homepage
Note: If the message "Error calling WeChat", please check whether the appid and secret are correct.
On the homepage, the default is to filter from all cuisines, and you can also filter according to the category of cuisines. Click to select a cuisine to view the cuisines, as shown in Figure 4, and select a cuisine, as shown in Figure 5.

Figure 4 Select the cuisine Figure 5 Select the cuisine
Click the "Start" button, similar to the effect of a marquee, and start random screening. Click the "Stop" button to select a food, as shown in Figure 6. Click the "Change" button to re-filter, click the "OK" button, select the food and enter the selection page, as shown in Figure 7.

Figure 6 Select the food Figure 7 Select the page
Click the "Cook by yourself" button to enter the recipe list page, as shown in Figure 8. Select a recipe to enter the recipe details page, as shown in Figure 9. On the recipe details page, click the picture to enlarge it, as shown in Figure 10, and click the picture again to exit the full picture.
insert image description here

Figure 8 Recipe list Figure 9 Recipe details page Figure 10 Zoom in on the picture Back
to the page where you choose to cook or eat and drink, click the "Eat and drink" button to pop up a pop-up window to get the geographical location, as shown in Figure 11. Click the "OK" button to jump to the business address list, as shown in Figure 12.

Figure 11 Get geographic location Figure 12 Business address list
On the home page of the mini program, click the "Add food" menu at the bottom to add food independently, as shown in Figure 13. Click the "Statistics" menu to explicitly select the statistical information of the food, as shown in Figure 14.

Figure 13 Add food Figure 14 View statistical information
Background
Administrators can manage the background through the account password, the account information is as follows:
Account: mr
Password: mrsoft
Enter the URL "http://127.0.0.1:5000/admin" in the browser to enter The background login page, as shown in Figure 15. Enter the account number and password, and enter the background homepage after successful login, as shown in Figure 16.
insert image description here

Figure 15 Background login page Figure 16 Background homepage
In the background, you can manage cuisines, as shown in Figure 17, or manage food, as shown in Figure 18, and you can also modify passwords, as shown in Figure 19.
insert image description here

Figure 17 Manage cuisines
insert image description here

Figure 18 Manage food
insert image description here

Figure 19 Change password

Guess you like

Origin blog.csdn.net/qq_64505944/article/details/131493826