Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
9e102e8a
提交
9e102e8a
authored
7月 04, 2022
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 调整 index page 示例效果
上级
f8b09f09
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
17 行增加
和
10 行删除
+17
-10
App.vue
src/App.vue
+5
-0
app.json
src/locales/lang/zh-Hans/app.json
+1
-1
index.vue
src/pages/index/index.vue
+11
-9
logo.png
src/static/logo.png
+0
-0
uni-logo.png
src/static/uni-logo.png
+0
-0
没有找到文件。
src/App.vue
浏览文件 @
9e102e8a
...
...
@@ -25,4 +25,9 @@
//
全局样式
@import
'./common/public.less'
;
uni-page-body
,
page
{
height
:
100%
;
}
</
style
>
src/locales/lang/zh-Hans/app.json
浏览文件 @
9e102e8a
{
"hello"
:
"你好"
"hello"
:
"你好
, 世界
"
}
src/pages/index/index.vue
浏览文件 @
9e102e8a
<
script
setup
lang=
"ts"
>
import
dayjs
from
'dayjs'
const
year
=
ref
(
dayjs
().
year
())
const
title
=
ref
(
'Hello World'
)
// TODO: 测试接口
...
...
@@ -10,34 +13,33 @@
<
template
>
<view
class=
"content"
>
<fui-avatar
src=
"/static/logo.png"
radius=
"14"
/>
<view
class=
"
text-area
"
>
<view
class=
"
info
"
>
<text
class=
"title"
>
{{
title
}}
</text>
<text
class=
"title"
>
{{
$t
(
'app.hello'
)
}}
</text>
</view>
<view
class=
"title"
>
{{
$t
(
'app.hello'
)
}}
</view>
<fui-footer
isFixed
text=
"Copyright © 2022 YiRing.com"
/>
<fui-footer
isFixed
:text=
"`Copyright © $
{year} YiRing.com`" />
</view>
</
template
>
<
style
>
page
{
height
:
100%
;
}
.content
{
height
:
100%
;
height
:
calc
(
100vh
-
100
rpx
)
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.
text-area
{
.
info
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
margin
:
50
rpx
0
30
rpx
0
;
}
.title
{
display
:
flex
;
justify-content
:
center
;
font-size
:
36
rpx
;
color
:
#8f8f94
;
}
...
...
src/static/logo.png
查看替换文件 @
f8b09f09
浏览文件 @
9e102e8a
3.9 KB
|
W:
|
H:
6.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/static/uni-logo.png
0 → 100644
浏览文件 @
9e102e8a
3.9 KB
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论