Teach you how to develop WeChat mini programs as a third-party platform with detailed explanation

Y2J
Release: 2017-04-26 15:24:45
Original
8937 people have browsed it

1. Overall process

When a third-party platform helps its authorized mini-programs with code management, it must first develop the mini-program template and then deploy the mini-program template to its mini-program account. , the specific process is as follows:

1: Bind and develop mini programs

(1) Developers of third-party platforms must first apply to the WeChat public platform (mp.weixin.qq.com) An ordinary small program, complete the information of the small program, and bind the developer.

(2) Enter the WeChat open platform and add the applet as a development applet in the third-party platform details.

Note: After binding as a development applet, the applet is uploaded in the development tool, and the code will be uploaded directly to the open platform and will not be uploaded to the public platform.

2: Development and uploading of mini program templates

Use the WeChat ID of the developer who developed the mini program to log in to the WeChat web developer tool (IDE), and follow the normal mini program development in the developer tool Process for code development and debugging. After development is completed, click Upload in the development tools.

3: Add to the mini program template library and obtain the template ID

The code uploaded from the developer tools will first be stored in the draft box, and only the latest copy of each developed mini program will be retained. Upload records. Developers can add the code in the draft box to the mini program template library, and the templates in the mini program template library will not be overwritten. There can be up to fifty code templates, and you can get the template ID (TemplateID) after adding them.

4: Call the interface to deploy code for its authorized mini-programs

See code management for detailed documentation.

2. How to develop

1. Create a project

is the same as developing an ordinary small program. The third-party platform developer fills in the relevant 3rdMiniProgramAppid and sets the project name and selection. Project directory to create the project.

For third-party platform applets, you can view the relevant open3rd information and the current third-party 3rdMiniProgramAppid on the project page. If the project is configured with the relevant extAppid, then there will also be relevant information on the project page. .

2. Mini program template development

is consistent with the development of ordinary mini programs. After the developer has developed the relevant business logic on the development tool, he can submit a preview in the project page card or WeChat Check the actual performance of the mini program in

The difference is that the submission and upload of the third-party platform mini program is uploaded to the template draft box under the open account of the third-party platform, and the administrator of the platform You need to set up the template accordingly. For more information, please refer to the documentation of the open platform.

3. Development and debugging of extAppid

In order to facilitate third-party platform developers to introduce the development and debugging of extAppid, the concept of ext.json needs to be introduced.

ext.json is a configuration file placed in the root directory of the mini program project.

The configuration fields in ext.json are divided into two types

Unique fields

Same fields as app.json

3. WeChat is the first What authorizations are provided by the third-party platform

1, authorization (login self-service authorization, the process is the same as the original public account development)

2, domain name configuration modification

3, test account modification

4, Submit for review and release version

The above is the detailed content of Teach you how to develop WeChat mini programs as a third-party platform with detailed explanation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template