目录
01 总体介绍
02 首页搭建第一部分
03 首页搭建第二部分
上一节我们开发了导航的功能,本节我们开发应用场景功能

应用场景有个向左滑动的效果,因此会用到滚动容器组件
打开首页,往里增加一个普通容器

输入如下样式
width: 710px;
height: 316px;
background: rgb(255, 255, 255);
margin-left: 20px;
padding-left: 40px;
border-radius: 16px

往里增加一个普通容器用来显示我们的标题

输入如下样式
height: 44px;
display: inline-block;
margin-top: 24px;
margin-bottom: 38px

往里添加一个文本组件

输入如下样式
height: 44px;
font-size: 32px;
font-weight: bolder;
white-space: pre-line

在标题下边增加个滚动容器

增加如下样式:
overflow-x: auto;
overflow-y: hidden;
height: 210px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-flow: row nowrap

往里边添加一个普通容器

样式设置如下:
width: 240px;
height: 170px;
display: inline-block;
flex: none;
margin-top: 10px;
background: undefined repeat-x;
margin-right: 16px;
border-radius: 16px;
background-size: 100% 100%

然后给该组件绑定循环变量

绑定如下:

然后给组件绑定样式



里边再添加一个普通容器

添加如下样式:
margin-top: 54px;
margin-left: 24px
里边添加一个文本组件

添加如下样式
color: #0F62FE;
font-size: 32px;
font-weight: normal;
white-space: pre-line
然后绑定变量,绑定为循环变量的title

在文本组件的同级添加一个普通容器,往里添加一个文本组件

设置如下样式
white-space: pre-line;
color: rgb(135, 141, 150);
font-size: 24px
最后的效果











