Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
砖业洋__
harmony_JS_Demo_breathe
提交
e8213000
H
harmony_JS_Demo_breathe
项目概览
砖业洋__
/
harmony_JS_Demo_breathe
通知
26
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
harmony_JS_Demo_breathe
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e8213000
编写于
9月 24, 2020
作者:
砖业洋__
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
step4 主页添加logo图片和两个picker选择器
上级
788a1699
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
47 addition
and
18 deletion
+47
-18
entry/src/main/js/default/common/hongmeng.png
entry/src/main/js/default/common/hongmeng.png
+0
-0
entry/src/main/js/default/pages/index/index.css
entry/src/main/js/default/pages/index/index.css
+38
-13
entry/src/main/js/default/pages/index/index.hml
entry/src/main/js/default/pages/index/index.hml
+7
-4
entry/src/main/js/default/pages/index/index.js
entry/src/main/js/default/pages/index/index.js
+2
-1
未找到文件。
entry/src/main/js/default/common/hongmeng.png
0 → 100644
浏览文件 @
e8213000
3.7 KB
entry/src/main/js/default/pages/index/index.css
浏览文件 @
e8213000
.container
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
454px
;
height
:
454px
;
.container1
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
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
{
font-size
:
30px
;
text-align
:
center
;
width
:
200px
;
height
:
100px
;
font-size
:
30px
;
text-align
:
center
;
width
:
200px
;
height
:
100px
;
}
.img
{
width
:
208px
;
height
:
208px
;
margin
:
0
15px
;
}
.btn
{
width
:
200px
;
height
:
50px
;
width
:
200px
;
height
:
50px
;
}
entry/src/main/js/default/pages/index/index.hml
浏览文件 @
e8213000
<div class="container">
<text class="title">
Hello {{title}}
</text>
<div class="container1">
<div class="container2">
<picker-view class="pv1" range="{{picker1range}}"></picker-view>
<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>
</div>
entry/src/main/js/default/pages/index/index.js
浏览文件 @
e8213000
...
...
@@ -2,7 +2,8 @@ import router from '@system.router';
export
default
{
data
:
{
title
:
'
World
'
picker1range
:
[
"
1
"
,
"
2
"
,
"
3
"
],
picker2range
:
[
"
较慢
"
,
"
舒缓
"
,
"
较快
"
]
},
clickAction
()
{
router
.
replace
({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录