当前位置:网站首页>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.
边栏推荐
- File operation, serialization, recursive copy
- Read mysql45 - a simple understanding of global locks and table locks
- Message format of Modbus (PLC)
- 绕过技术聊'跨端'......
- Go language - what is critical resource security?
- 一个 TDD 示例
- Beginner bug set
- DDD概念复杂难懂,实际落地如何设计代码实现模型?
- 2021, committed to better development
- 深入浅出对话系统——自己实现Transformer
猜你喜欢

根据先序遍历和中序遍历生成后序遍历

Understanding of reflection part

Prototype chain analysis

【 apprentissage automatique】 cas de prévision et d'analyse de l'examen d'entrée à l'Université basé sur des séries chronologiques multiples

iVX低代码平台系列详解 -- 概述篇(一)

In the wechat environment, H5 jumps to the specified page of the applet

Xinlou: un voyage de sept ans de Huawei Sports Health

Unity技术手册 - 干扰/噪音/杂波(Noise)子模块

What processes are needed to build a wechat applet from scratch?

深入浅出对话系统——自己实现Transformer
随机推荐
Record learning of hystrix knowledge --20210929
Data type variable operator
Catheon Gaming任命Activision Blizzard前亚太区负责人Mark Aubrey担任首席执行官
uniapp实现图片(单张/多张)预览
完美洗牌问题
Day_ seventeen
Day_ 04
This latest research has revealed two secrets of cloudy development
Generate post order traversal according to pre order traversal and mid order traversal
有哪些新手程序员不知道的小技巧?
【精通高并发】深入理解汇编语言基础
Resolve the format conflict between formatted document and eslint
Collection overview, array encapsulation
Day_ fifteen
深入理解和把握数字经济的基本特征
Day_ 16 set
AD域登录验证
Error: homebrew core is a shallow clone
【NLP】今年英语高考,CMU用重构预训练交出134高分,大幅超越GPT3
一文带你搞懂 JWT 常见概念 & 优缺点