01-WeChat mini program development preparation

Features of Mini Programs

Features of the Mini Program:
●A Mini Program is an application that can be used without downloading and installing, and it realizes the dream of "at your fingertips".
●Users can scan or search to open the application, which also embodies the concept of "go away after use".
●Users do not need to worry about whether to install too many applications. Apps will be ubiquitous and available at any time, but there is no need to install and uninstall.
At present, WeChat mini-programs are very mature. Relying on the WeChat platform, some of our commonly used applications also have mini-programs.

insert image description here

Source Baidu Encyclopedia content

WeChat mini program, a kind of small program , English name Wechat Mini Program, is an application that can be used without downloading and installing. It realizes the dream of "apps within reach", users can scan or search Open the app.

After the application is fully open, developers who are enterprises, governments, media, other organizations or individuals can apply for registration of Mini Programs. WeChat applets, WeChat subscription accounts, WeChat service accounts , and WeChat enterprise accounts are parallel systems.

WeChat Mini Program is an application that can be used without downloading, and it is also an innovation. After nearly two years of development, a new WeChat Mini Program development environment and developer ecosystem have been constructed. The WeChat Mini Program is also an innovative achievement that can truly affect ordinary programmers in the Chinese IT industry over the years. More than 1.5 million developers have joined the development of WeChat Mini Programs, and we will work together to promote the development of WeChat Mini Programs. With development, the number of WeChat mini-program applications has exceeded one million, covering more than 200 subdivided industries, and the number of daily active users has reached 200 million. WeChat mini-programs have also supported subway and bus services in many cities. The development of WeChat mini-programs has brought more employment opportunities. In 2017, the mini-programs drove 1.04 million jobs, and the social effect has continued to increase.

On January 9, 2017, the WeChat applet released by Zhang Xiaolong on the 2017 WeChat Open Class Pro was officially launched.

Q:微信小程序是什么?它有着什么样的功能?
A:微信小程序是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或者搜一下即可打开应用。也体现了“用完即走”的理念,用户不用关心是否安装太多应用的问题。应用将无处不在,随时可用,但又无需安装卸载。对于开发者而言,微信小程序开发门槛相对较低,难度不及APP,能够满足简单的基础应用,适合生活服务类线下商铺以及非刚需低频应用的转换。微信小程序能够实现消息通知、线下扫码、公众号关联等七大功能。其中,通过公众号关联,用户可以实现公众号与微信小程序之间相互跳转。由于微信小程序不存在入口。 

Q:微信小程序可以和现有的App 打通吗?
A:微信小程序可以借助微信联合登录,和开发者已有的App 后台的用户数据进行打通,但不会支持微信小程序和App 直接的跳转。

Q:微信已经有了微信订阅号、微信服务号、微信企业号,微信小程序和这三者有什么不同?
A:微信小程序、微信订阅号、微信服务号、微信企业号是并行的体系。

Q:外界有说法称,微信小程序的推出意味着微信要做一个应用分发市场,是这样吗?
A:微信推出小程序,并非想要做应用分发市场,而是给一些优质服务提供一个开放的平台。

WeChat applet development

Mini Program Registration

  • Register a Mini Program Account

​ Click the "Register Now" button in the upper right corner of the WeChat public platform on the homepage of the official website of the WeChat public platform .
insert image description here

  • Select the account type to register

​ Select "Mini Program", click "View [different account types]insert image description here
insert image description here

  • Fill in the email address and password
    Please fill in the email address that has not been registered on the public platform, open platform, enterprise account, or unbound personal account.

  • Activation mailbox
    Log in to the mailbox, check the activation email, and click the activation link

After the registration information is submitted, it needs to be activated by email, and the developer information (select personal) needs to be filled in before you can log in.
insert image description here

  • Fill in the subject information
    and click the activation link to proceed to the next step of the registration process. Please select the subject type to complete the subject information and administrator information. (Practice use, here we choose the individual subject)

insert image description here

After logging in, "Developer ID" will be used when creating applets

insert image description here

some basic settings

Need to set such as: project name, logo, App id, etc.

After the registration is successful, return to the previous registration page on the WeChat public platform , scan the QR code to log in to the background management of the WeChat applet

Fill in the applet information

insert image description here

After completing the filling, you can see the filled content in [Settings] on the left

insert image description here

insert image description here

view log

You can view the logs during the development of the applet in [Development] – [Developer Management] – Operation and Maintenance Center

insert image description here

Development settings (AppID applet ID)

AppID will be used in subsequent development, and the id of each project is different.

insert image description here

server domain name

insert image description here

interface settings

insert image description here

Developer Tools Download

Note: Do not download the latest version for win7 system, you need to download version 1.05

insert image description here

On the left, select [Development]—[Development Tools]–[Developer Tools] ----Download

1.06 WeChat developer tools download

insert image description here

Select stable version

  • Win11 system can choose the latest stable version to download

insert image description here

  • win7 download version 1.05

​Version 1.05

insert image description here

Developer tools installation

insert image description here

Install version 1.05 here by double-clicking the downloaded installer and clicking "Next" to install it

insert image description here

developer tool usage

insert image description here

Double-click the application shortcut, and scan the WeChat code to log in to the developer tool

create applet

insert image description here

  • Fill in the project name
  • Select project path: directory
  • Fill in the AppID (just copy the AppID from the developer settings)
  • Select this default template and click OK

insert image description here

After successful creation, as shown below:

insert image description here

Next chapter WeChat Mini Program Directory Structure and Configuration

Guess you like

Origin blog.csdn.net/u014096024/article/details/132012192