当前位置:网站首页>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
pagesThe 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,.wxssFour 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
#000000navigationBarTitleText Navigation bar title text content
navigationStyle Navigation bar style , Only the following values are supported :
defaultDefault style ,customCustom 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 !
边栏推荐
- Texstudio tutorial
- Salesforce、约翰霍普金斯、哥大 | ProGen2: 探索蛋白语言模型的边界
- El form item regular verification
- 微服务大行其道的今天,Service Mesh是怎样一种存在?
- Why did you win the first Taosi culture award of 20000 RMB if you are neither a top R & D expert nor a sales Daniel?
- 既不是研发顶尖高手,也不是销售大牛,为何偏偏获得 2 万 RMB 的首个涛思文化奖?
- Research Report on development trend and competitive strategy of global vibration polishing machine industry
- 那个很努力的学生,高考失败了……别慌!你还有一次逆袭机会!
- 数据湖系列之一 | 你一定爱读的极简数据平台史,从数据仓库、数据湖到湖仓一体
- sqlilabs less-11~12
猜你喜欢

问题随记 —— Oracle 11g 卸载

被裁三个月,面试到处碰壁,心态已经开始崩了

【IoT毕设.下】STM32+机智云AIoT+实验室安全监控系统

Use the right scene, get twice the result with half the effort! Full introduction to the window query function and usage scenarios of tdengine

Guess lantern riddles, not programmers still can't understand?

"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

2022 PMP project management examination agile knowledge points (6)

How can we protect our passwords?

Phpcms realizes the direct Alipay payment function of orders

数据湖系列之一 | 你一定爱读的极简数据平台史,从数据仓库、数据湖到湖仓一体
随机推荐
sqlilabs less13
日志中打印统计信息的方案
数据湖系列之一 | 你一定爱读的极简数据平台史,从数据仓库、数据湖到湖仓一体
【牛客网刷题系列 之 Verilog快速入门】~ 多功能数据处理器、求两个数的差值、使用generate…for语句简化代码、使用子模块实现三输入数的大小比较
SWT / anr problem - how to open binder trace (bindertraces) when sending anr / SWT
In depth cooperation | Taosi data cooperates with changhongjia Huawei customers in China to provide tdengine with powerful enterprise level products and perfect service guarantee
Sorting learning sorting
2022 PMP project management examination agile knowledge points (6)
111. Minimum depth of binary tree
[flask] flask starts and implements a minimal application based on flask
博文推荐 | 深入研究 Pulsar 中的消息分块
QT community management system
2022-2-15 learning xiangniuke project - Section 1 filtering sensitive words
深度合作 | 涛思数据携手长虹佳华为中国区客户提供 TDengine 强大企业级产品与完善服务保障
Research Report on the development trend and competitive strategy of the global electromagnetic flowmeter industry
What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
Use of Oracle database objects
Salesforce、约翰霍普金斯、哥大 | ProGen2: 探索蛋白语言模型的边界
[NLP] pre training model - gpt1
Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry