Mini Program Development Process
Registering Mini Programs
Binding Developers
Activating Tencent Cloud
Downloading and Installing Tools
Tencent Cloud Environment Deployment
Mini Program Directory Structure
Small program development, responsible for page display, event interaction, page logic switching, data storage and network calls.
The applet directory structure contains three files starting with app (app.js, app.json, app.wxss)
app.js is the global js. app.json is the global configuration. app.wxss is the global style.
{
"pages":[
"pages/logs/logs",
"pages/index/index"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle":"black"
}
}
For page registration in app.json, the first one is the home page by default.
The applet also includes pages and utils.
In phpstorm, add WeChat applet recognition
Support for .wxml files
Configuration of .wxss
Alt+Enter
Just remove this item.