当前位置:网站首页>Build intelligent garbage classification applet based on Zero

Build intelligent garbage classification applet based on Zero

2022-04-23 19:20:00 "Technology makes customers"

1、 First map

 Insert picture description here

2、 preparation

One 、 Apply for a little program
To apply for the address : WeChat public platform ,
The operation of the application applet is very simple , Baidu, please follow the steps to apply , There is also a certification app on a treasure to apply for certification on behalf of , The old fellow can choose by themselves .

Two 、 Download wechat developer tools
Download address :https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html

 Insert picture description here

3、 ... and 、 Download decompression HBuilderX

Download address :https://www.dcloud.io/hbuilderx.html
 Insert picture description here

3、 Construction begins

Please make sure HBuilderX Update to the latest version

One 、 Applet source address , Click to purchase the normal authorized version , It only needs 8.88

Two 、 My cloud space is called demo, If you don't create a new alicloud space ( establish uniCloud Service space ), Right click uniCloud The directory is associated with the same service space as the management background , Check all , Click deploy service space directly , Import HBuilderX
 Insert picture description here
Open file uniCloud => cloudfunctions => common => wx-auth => index.js
To configure wxConfigMp Internal appid and secret( Get... In the official background of wechat applet )

3、 ... and 、 Project installation dependency

Project root npm install Installation dependency

Four 、 Configuration items
1、 Open wechat developer tool , Open the service port in security settings
 Insert picture description here
 Insert picture description here

2、 open HBuilderX, Click on “ function - Run to the applet Simulator - Run configuration ” Set the path for you to install wechat developer tools in .
 Insert picture description here

 Insert picture description here

Four 、 Publish applet

1、 Right click the project folder , Click on “ issue - Applet - WeChat ( Only applicable to uniapp)”
 Insert picture description here

2、 Fill in the applet name and applet appid It can evoke wechat developer tools .
 Insert picture description here

3、 In the background of the applet , Configure the server in development management request Legitimate domain name :https://api.bspapp.com; https://zy-api.wxthe.com

4、 Click upload in wechat developer tool , Submit the audit in the background of small program , After passing the audit, it can operate normally

 Insert picture description here

Author related articles

Decompile to get any wechat applet source code —— Just read this one

Lottery applet , Mom doesn't have to worry about who does the dishes anymore ( Assigned tasks ) 了 ,so easy

5 Minutes to achieve wechat cloud app payment function ( Including source code )

版权声明
本文为["Technology makes customers"]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210559120732.html