提交 e8213000 编写于 作者: 砖业洋__'s avatar 砖业洋__

step4 主页添加logo图片和两个picker选择器

上级 788a1699
.container { .container1 {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 454px; width: 454px;
height: 454px; height: 454px;
}
.container2 {
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 50px;
width: 454px;
height: 250px;
}
.pv1 {
width: 30px;
height: 250px;
}
.pv2 {
width: 80px;
height: 250px;
}
.txt {
text-align: center;
width: 50px;
height: 36px;
} }
.title { .title {
font-size: 30px; font-size: 30px;
text-align: center; text-align: center;
width: 200px; width: 200px;
height: 100px; height: 100px;
}
.img {
width: 208px;
height: 208px;
margin: 0 15px;
} }
.btn { .btn {
width:200px; width: 200px;
height:50px; height: 50px;
} }
<div class="container"> <div class="container1">
<text class="title"> <div class="container2">
Hello {{title}} <picker-view class="pv1" range="{{picker1range}}"></picker-view>
</text> <text class="txt">分</text>
<image src="common/hongmeng.png" class="img"></image>
<picker-view class="pv2" range="{{picker2range}}"></picker-view>
</div>
<input type="button" value="点我" class="btn" onclick="clickAction"></input> <input type="button" value="点我" class="btn" onclick="clickAction"></input>
</div> </div>
...@@ -2,7 +2,8 @@ import router from '@system.router'; ...@@ -2,7 +2,8 @@ import router from '@system.router';
export default { export default {
data: { data: {
title: 'World' picker1range: ["1", "2", "3"],
picker2range: ["较慢", "舒缓", "较快"]
}, },
clickAction() { clickAction() {
router.replace({ router.replace({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册