当前位置:网站首页>Creating a uniapp project using hbuilder x
Creating a uniapp project using hbuilder x
2022-06-25 16:39:00 【Like angels】
Use hbuilder X establish uniapp project
One 、 open hbuilder X Software , top left corner file - newly build - project , Pictured :
Two 、 In the pop-up window , Fill in the project name , Choose your own project case , You can choose according to your own needs vue edition 2/3, Pictured :
3、 ... and 、 By this time your project has been created , Automatically by the hbuilderX open , The general contents of the project documents are shown in the figure :
Four 、 Set the bottom navigation jump , open pages.json file (pages Is the route jump address ,tabBar Is to configure the bottom navigation bar ), If the top navigation wants to add the corresponding button icon , Additable ‘app-plus’ To configure , there ‘fontSrc’ The icon comes from Ali , Here are the steps to download the Alibaba icon , First look at pages.json File configuration of
{
"pages": [{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": " Everyone knows "
}
}, {
"path": "pages/message/index",
"style": {
"navigationBarTitleText": " news ",
"app-plus": {
"titleNView": {
"buttons": [{
"text": "",
"fontSrc": "/static/iconfont/iconfont.ttf",
"fontSize": "20",
"float": "right",
"color": "#7A7E83"
}]
}
}
}
}, {
"path": "pages/personel/index",
"style": {
"navigationBarTitleText": " my "
}
}, {
"path": "pages/collectInfo/index",
"style": {
"navigationBarTitleText": " information acquisition "
}
}, {
"path": "pages/messageDetails/index",
"style": {
"navigationBarTitleText": " News details "
}
}],
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#1296db",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"height": "50px",
"fontSize": "10px",
"iconWidth": "24px",
"spacing": "3px",
"iconfontSrc": "static/iconfont.ttf", // app tabbar typeface .ttf File path app 3.4.4+
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/home.png",
"selectedIconPath": "static/se_home.png",
"text": " home page "
}, {
"pagePath": "pages/message/index",
"iconPath": "static/message.png",
"selectedIconPath": "static/se_message.png",
"text": " news "
}, {
"pagePath": "pages/personel/index",
"iconPath": "static/mine.png",
"selectedIconPath": "static/se_mine.png",
"text": " my "
}]
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#fff",
"app-plus": {
"background": "#efeff4"
}
}
}
Ali icon download , Search for the icon you need , Add cart - Add to project - Download to local , This will download a compressed package , After decompressing iconfont.ttf Copy files to your own project , stay pages.json Just introduce the corresponding icon in the :
Final rendering of the page :
Change begins with persistence and commitment.
边栏推荐
- 加密潮流:时尚向元宇宙的进阶
- Hash table, generic
- 论文笔记:Generalized Random Forests
- 一文带你搞懂 JWT 常见概念 & 优缺点
- Precautions for function default parameters (formal parameter angle)
- Perfect shuffle problem
- Catheon Gaming任命Activision Blizzard前亚太区负责人Mark Aubrey担任首席执行官
- Day_ eleven
- XML usage and parsing of data storage and transmission files
- Catheon gaming appointed mark Aubrey, former Asia Pacific head of Activision Blizzard, as CEO
猜你喜欢
DOM event flow, event delegate
论文笔记:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm
Generate post order traversal according to pre order traversal and mid order traversal
The third day of mysql45
Principle analysis of ThreadLocal source code
mac php多版本管理以及安装swoole扩展
How to view the change trend of cloud database from the behind of the launch of tidb to Alibaba cloud
Xinlou: Huawei's seven-year building journey of sports health
What exactly is a handler
【蓝桥杯集训100题】scratch指令移动 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第14题
随机推荐
普通人的2022春招总结(阿里、腾讯offer)
About the use of Aidl, complex data transmission
有哪些新手程序员不知道的小技巧?
什么是骨干网
【NLP】今年英语高考,CMU用重构预训练交出134高分,大幅超越GPT3
Learning notes of rxjs takeuntil operator
Cocoapods installation in 2021
Bugly hot update usage
MySQL_ JDBC
深入浅出对话系统——自己实现Transformer
【 apprentissage automatique】 cas de prévision et d'analyse de l'examen d'entrée à l'Université basé sur des séries chronologiques multiples
千万级购物车系统缓存架构方案
What are some tricks that novice programmers don't know?
3.条件概率与独立性
炮打司令部,别让一个UI框架把你毁了
这项最新的调查研究,揭开多云发展的两大秘密
Flutter textfield setting can input multiple lines
Catheon Gaming任命Activision Blizzard前亚太区负责人Mark Aubrey担任首席执行官
10 Super VIM plug-ins, I can't put them down
Xinlou: un voyage de sept ans de Huawei Sports Health