Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
东方怂天
ReaderMe
提交
d987db45
R
ReaderMe
项目概览
东方怂天
/
ReaderMe
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
ReaderMe
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d987db45
编写于
1月 12, 2020
作者:
东方怂天
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Hello world.
上级
caa3ff10
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
137 addition
and
9 deletion
+137
-9
components/BookCard.vue
components/BookCard.vue
+56
-8
components/DivLine.vue
components/DivLine.vue
+20
-0
pages.json
pages.json
+54
-0
pages/index/index.vue
pages/index/index.vue
+7
-1
未找到文件。
components/BookCard.vue
浏览文件 @
d987db45
<
template
name=
"BookCard"
>
<view>
<text>
这是一段测试文字
</text>
<view
class=
"CardContent"
>
<view
class=
"BookName"
>
{{
BookName
}}
</view>
<DivLine></DivLine>
<view
class=
"BookContent"
>
<image
class=
"BookPic"
mode=
"aspectFit"
:src=
"BookPic"
></image>
<view>
{{
BookContent
}}
</view>
</view>
</view>
</
template
>
<
script
>
import
DivLine
from
"
./DivLine.vue
"
export
default
{
name
:
"
BookCard
"
,
data
()
{
return
{
};
name
:
"
BookCard
"
,
props
:
{
BookName
:
{
type
:
String
,
default
:
"
书名
"
},
BookContent
:
{
type
:
String
,
default
:
"
这里是属于斗气的世界,没有花俏艳丽的魔法,有的,仅仅是繁衍到巅峰的斗气!新书等级制度:斗者,斗师,大斗师,斗灵,斗王,斗皇,斗宗,斗尊,斗圣,斗帝。
"
},
BookPic
:
{
type
:
String
,
default
:
"
/static/logo.png
"
}
},
components
:
{
DivLine
}
}
</
script
>
<
style
>
<
style
scoped
>
.CardContent
{
/*背景颜色*/
background
:
#007AFF
;
/*圆角设置*/
border-radius
:
15
upx
;
/*边框宽度*/
/*padding: 5upx;*/
/*宽度设置*/
width
:
95%
;
/*背景颜色*/
display
:
flex
;
flex-direction
:
column
;
}
.BookName
,
.BookContent
,
.BookPic
{
margin
:
5
upx
5
upx
5
upx
5
upx
;
}
.BookContent
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.BookPic
{
min-width
:
33%
;
max-width
:
40%
;
max-height
:
250
upx
;
}
</
style
>
components/DivLine.vue
0 → 100644
浏览文件 @
d987db45
<
template
name=
"DivLine"
>
<view
class=
"division"
>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
DivLine
"
}
</
script
>
<
style
scoped
>
.division
{
width
:
100%
;
height
:
5
upx
;
margin-top
:
10
upx
;
margin-bottom
:
10
upx
;
background-color
:
#4CD964
;
}
</
style
>
pages.json
浏览文件 @
d987db45
...
...
@@ -12,5 +12,59 @@
"navigationBarTitleText"
:
"Reader"
,
"navigationBarBackgroundColor"
:
"#5E00FF"
,
"backgroundColor"
:
"#5E00FF"
},
"tabBar"
:
{
"color"
:
"#cdcdcd"
,
"selectedColor"
:
"#39cffc"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#ffffff"
,
"list"
:
[{
"pagePath"
:
"pages/index/index"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"首页"
},
{
"pagePath"
:
"pages/find/find"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"发现"
},
{
"pagePath"
:
"pages/nav/nav"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"导航"
},
{
"pagePath"
:
"pages/person/person"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"我的"
}
]
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
1
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
"首页"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到。uid=
100
&t=
1535987051
},
{
"name"
:
"发现"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到。
},
{
"name"
:
"导航"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到。uid=
100
&t=
1535987051
},
{
"name"
:
"我的"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到。
}
]
}
}
pages/index/index.vue
浏览文件 @
d987db45
...
...
@@ -4,7 +4,7 @@
<view
class=
"text-area"
>
<text
class=
"title"
>
{{
title
}}
</text>
</view>
<BookCard></BookCard>
<BookCard
:BookName=
"BookName"
></BookCard>
</view>
</
template
>
...
...
@@ -16,6 +16,7 @@
},
data
()
{
return
{
BookName
:
"
这是一段测试书名
"
,
title
:
'
Hello
'
}
},
...
...
@@ -54,4 +55,9 @@
font-size
:
36
rpx
;
color
:
#8f8f94
;
}
BookCard
{
width
:
100%
;
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录