当前位置:网站首页>Develop small programs and official account from zero [phase III]
Develop small programs and official account from zero [phase III]
2022-07-01 14:30:00 【sky-coder】
Hello everyone , Our main content starts today , Thank you for your attention . It was originally said that it would be updated continuously these days , However, the work is too busy , I really don't have time to write an article , Here to say sorry !
Okay , No more nonsense , Go straight to our topic today : Basic configuration of applet
Be careful : Before we start again , You need to know something about the front-end just , It doesn't take much , As long as you can layout 、 Can write css Just go , Although the front-end framework does not need you to make too much adjustment , But it still needs to be based on your own business , Make some fine adjustments based on the framework . If you have vue Basic words , Help you get familiar with applets faster !
The first is the basic configuration of the applet , Mainly explain the configuration used in my project , You can focus on : Invertebrate monster Experience the full functionality of the applet
overall situation app.json To configure
entryPagePath:
Specify the default startup path of the applet ( home page ), A common scenario is to start from the wechat chat list page 、 Applet list startup, etc . If you don't fill in , Default to
pages
The first item in the list . With page path parameter... Is not supported .
pages:
Used to specify which pages the applet consists of , Each item corresponds to a page route ( Include file name ) Information . The file name does not need to be suffixed , The frame will automatically find the corresponding position
.json
,.js
,.wxml
,.wxss
Four files are processed .
window
“navigationBarBackgroundColor”: “#fff”, // Navigation bar background color , Such as
#000000
“navigationBarTitleText”: “ Invertebrate monster ”, // The name of the applet
“navigationBarTextStyle”: “black”, // Navigation bar Title Color , Support only
black
/white
tabBar
If the applet is more than one tab application ( There is... At the bottom or top of the client window tab Column can switch pages ), Can pass tabBar Configuration item assignment tab Column performance , as well as tab The corresponding page displayed when switching .
Let's write based on the desperate situation , I didn't use it, so I won't talk more here , You can refer to :https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#tabBar
usingComponents
overall situation Custom components ( In the next issue, I will talk about )
Configuration page
navigationBarBackgroundColor Navigation bar background color , Such as
#000000
navigationBarTitleText Navigation bar title text content
navigationStyle Navigation bar style , Only the following values are supported :
default
Default style ,custom
Custom navigation bar , Just keep the capsule button in the upper right corner .visualEffectInBackground When cutting into the background of the system , Hide page content , Protect user privacy . Support
hidden
/none
, If the page is set separately, the global configuration will be overwritten , See Global configuration
The above is the general configuration of my applet , Of course, some of them are not used , But it is something you may use , Also listed for everyone .
Finished talking about the basic configuration of the applet , Next is the introduction of the framework and the use of the basic layout
Everyone is looking forward to the next issue !
边栏推荐
- Use the right scene, get twice the result with half the effort! Full introduction to the window query function and usage scenarios of tdengine
- User defined annotation realizes the function of verifying information
- [repair version] imitating the template of I love watching movies website / template of ocean CMS film and television system
- Use of Oracle database objects
- C 语言基础
- Halo effect - who says that those with light on their heads are heroes
- How will the surging tide of digitalization overturn the future?
- Using CMD to repair and recover virus infected files
- Basis of target detection (NMS)
- “国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
猜你喜欢
日志中打印统计信息的方案
Basis of target detection (NMS)
[R language data science]: common evaluation indicators of machine learning
[dynamic programming] interval dp:p1005 matrix retrieval
sqlilabs less9
TexStudio使用教程
我们该如何保护自己的密码?
深度合作 | 涛思数据携手长虹佳华为中国区客户提供 TDengine 强大企业级产品与完善服务保障
Salesforce、约翰霍普金斯、哥大 | ProGen2: 探索蛋白语言模型的边界
Build your own website (21)
随机推荐
sqlilabs less13
Research Report on the development trend and competitive strategy of the global traditional computer industry
What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
Texstudio tutorial
SWT/ANR问题--如何捕获性能的trace
phpcms实现订单直接支付宝支付功能
日志中打印统计信息的方案
el-form-item 正则验证
被裁三个月,面试到处碰壁,心态已经开始崩了
sqlilabs less-11~12
既不是研发顶尖高手,也不是销售大牛,为何偏偏获得 2 万 RMB 的首个涛思文化奖?
"National defense seven sons" funding soared, with Tsinghua reaching 36.2 billion yuan, ranking second with 10.1 billion yuan. The 2022 budget of national colleges and universities was made public
“国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
MIT团队使用图神经网络,加速无定形聚合物电解质筛选,促进下一代锂电池技术开发
When the main process architecture game, to prevent calls everywhere to reduce coupling, how to open the interface to others to call?
What problems should be considered for outdoor LED display?
Fundamentals of C language
241. Design priorities for operational expressions
2022-2-15 learning the imitation Niuke project - post in Section 2
Logic is a good thing