I recently spent a day or so learning about the development of WeChat mini programs. I tried to practice the mentality and created a very simple page.
Let’s just think of it as a learning summary: there are quite a lot of learning points. By checking the official interface documents, you can become familiar with the WeChat applet development tools and engineering architecture. Similar to traditional page development, WeChat applet is also composed of js files. , page layout file wxml and style file wxss
(free learning recommendation: 小program development tutorial)
1. First log in to the WeChat public platform, register in the mini program column to obtain the appid, fill in the appid in the development tool, and open the development tool for coding work.
1.1. Consolidate knowledge points.
{ "pages":[ "pages/huangbaokang/huangbaokang", "pages/zhanglulu/zhanglulu" ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#baf088", "navigationBarTitleText": "幸福婚姻", "navigationBarTextStyle":"black" }, "tabBar": { "list": [ { "pagePath": "pages/huangbaokang/huangbaokang", "text": "黄宝康", "iconPath": "images/1.png", "selectedIconPath": "images/1.png" }, { "pagePath": "pages/zhanglulu/zhanglulu", "text": "张露露", "iconPath": "images/2.png", "selectedIconPath": "images/2.png" } ] } }The entrance global configuration mainly configures tabBar settings, global pages definition, header background, font, network timeout, etc. Mastering the wxml taghuangbaokang.wxml file
<!--pages/huangbaokang/huangbaokang.wxml--> <view>黄宝康的帅气照</view> <view> <!--遍历图片文件,生成各个view--> <view> <image></image> </view> </view>huangbaokang.js file
Page({ /** * 页面的初始数据 */ data: { photos_hbk: ['1.png', '2.png', '3.png', '4.png'] } })huangbaokang.wxss file
/* pages/huangbaokang/huangbaokang.wxss */ .title{ font-size: 70rpx; text-align: center; } .photo-list{ margin-top: 20rpx; } .photo-item{ width: 100%; height: 100%; margin-top: 20rpx; }Specific To develop the page, you need to learn the usage of various wxml tags, the use of the statement wx:for, and dynamic data binding (using {{}}). Event function processingFurther master event processing, etc., bind a method, and correspond to a method in the js file.
2. Upload, publish, review and go online
After coding, you can click the upload button in the upper right corner of the development tool to upload the code to the WeChat backend. As follows:
# After entering the relevant version number and confirming it, you can see the submitted version in the WeChat mini program background management office.
The picture above is after submission. After submission, it will be reviewed. Generally, the review results can be viewed in one or two days. After passing the review, it needs to be released online. .
After the above operation, you can search for the programs we developed ourselves in WeChat and Mini Programs.
Attachment: Project Architecture Diagram
######Related free learning recommendations: WeChat Mini Program Development Tutorial
The above is the detailed content of WeChat mini program online release process. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 English version
Recommended: Win version, supports code prompts!

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
