Introduction: Our previous several “small program development experience” series of article overview, logic layer, view layer, source code analysis, data collection, actual micro channel small program are introduced how to develop micro channel small program. This article mainly introduces the details of release, operation and promotion, so that we have a more comprehensive understanding of the whole process of small program development. Recommended reading time: 3 minutes.

Author introduction: Li Chao, front-end development project of Meituan Dianping, 2 years of work experience, mainly responsible for the development of “Dianping Dianping” Web version and “Dianping Dianping” wechat applets.

“Even the smell of wine fears the bush.”

In today’s Internet era of rapid development, in order to stand out among many products, it requires not only technical realization and product experience, but also a strong marketing system.

How to accurately deliver the latest version of products to target users, how to obtain revenue and data from users, and how to make users become accustomed to using our products has always been the focus of our concerns. If a product cannot build a “no copy” barrier, stronger marketing is needed to drive growth.

After the completion of small program development, how to release the code, promote to users, get users’ feedback for continuous improvement has become an important link.

Release process

Post code

Web projects are usually published on their own company machines, with separate domain names and dedicated operations colleagues. The small program is a little different. The code needs to be published to the server of the wechat team for unified management.

How to transfer the code to wechat’s server? Answer: wechat Web developer tools. Click “project” in “wechat small program Developer Tools”, and then click upload to complete a series of information, you can upload the code to Tencent’s small program code server. Note: This operation requires applets administrator authentication.

Wechat Web developer tools

Three versions

Log in to the wechat public platform, you can view the version of the code you just submitted

Development version

There are multiple versions of the code submitted by wechat mini program on the public platform: development version, review version, experience version and online version. The following flow chart describes the relationship between various versions of wechat applets.

Wechat small program version flow chart

  • Development version: The first newly uploaded version is the development version;
  • Review version: development version submitted for review can be changed into review version;
  • Experience version: The experience version is similar to the online version and can be scanned, but only users with preview permission can experience it.
  • Approved version: after approved by wechat staff, the approved version can be changed into approved version;
  • Online version: click “Submit release” to pass the review version online, users can experience the new version of the small program.

Post code

Approved version applets can be released to build online versions. Before publishing, you need to fill in necessary configuration information in “Settings”, such as: applets name, introduction, type, profile picture, and so on. Click “Submit to publish”, open wechat -> “Discover” -> “micro app” -> search “Public Comment ordering”, you can experience our ordering micro app.

The online version

Discover -> Search -> Dianping order food

Promotion way

At present, wechat applet can be accessed by sharing within wechat, scanning two-dimensional code and searching the name of the applet. Its ability to spread is not in doubt. Our review and ordering team has established long-term cooperation with many merchants, and can directly direct the TWO-DIMENSIONAL code of ordering to merchants, or even to their tables. After entering the store, users can complete the pre-order operation in front of the counter. After taking a seat, users can scan the code to order and directly order and pay. The whole process saves users’ time, merchants’ service costs, improves restaurant service efficiency and service quality.

Two-dimensional code generation

The official documentation

  • Tip: Only qr codes of published applets can be generated through this interface.
  • You can generate a development version of the qr code with parameters during developer tools preview.
  • Tip: There is no limit to the total number of QR codes generated, but the maximum number of interface calls per day is 10,000.
  • Tip: The POST parameter needs to be converted to a JSON string. Form submission is not supported.

Share links

Click the share button in the upper right corner of the applet to share it with your friends.

Share applets

Many versions

As an independent product, small program must have its development iteration life cycle. When a new version comes online, multiple versions may exist at the same time. We need to be thoughtful to avoid possible problems with version switching.

Wechat update package mechanism

We do not have wechat source code, its update small program code package strategy unknown. But its request applet code package behaves much like a Web browser. Each time you open a small program, the system sends a request for the small program code package to the server. If the local cache exists and has not expired, you can directly use it. Otherwise, the system returns the compressed code package, decompresses it, and completes the initialization of the small program. Small program version upgrade is not as complicated as APP, on the contrary, it is very simple and convenient, which is the original intention of Zhang Xiaolong’s team – “use it and go”.

Interface version Control

In the process of continuous iteration of applets, interfaces must also require backward compatibility. The reason is that when a new version comes online, several versions of the small program code will exist at the same time. The old version uses the previous interface, and the new version uses the new interface. If an interface of an earlier version is directly offline, some users may fail to access the interface.

The rollback

What if there is a problem with a released version that needs a quick fix? After the new version of the small program is released online, the previous online version will be automatically demoted to the development version. If you want to roll back to the previous version, you can only submit a review application again. After the review is approved, the previous version can be online.

offline

If the back-end service is down, you need to immediately offline the small program, you can set the access status of the small program in the “Settings” of wechat open platform. After user access is disabled, users cannot continue to use the small program. The specific user experience effect has not been verified. 😂 😂 😂

progress

At present, we are commenting on the problems encountered by the ordering team: a large number of stores have set up TWO-DIMENSIONAL code, which is the entrance of our ordering service in the Web version. It is neither realistic nor necessary to ask sales colleagues to re-spread the QR code of wechat mini program version of ordering service for all stores. We reached a consensus with the wechat team: by setting a whitelist, we can use wechat to scan the web VERSION of the TWO-DIMENSIONAL code directly into the “ordering mini program”.

conclusion

This concludes the article series on applets; Thank you for your continued attention.

Public comment on order small application development experience – overview of public comment on order small application development experience – the view layer public comment on order small application development experience – logic layer review public order small application development experience – menu linkage design review public order small application development experience – source code parsing the public comment on order small – application development experience The data collection