Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
JT-WXXCX-SF
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
郑帆
JT-WXXCX-SF
Commits
290b4bc3
提交
290b4bc3
authored
12月 21, 2021
作者:
正反
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
标签数字提示颜色修改
上级
9704eece
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
46 行增加
和
4 行删除
+46
-4
index.vue
pages/index/index.vue
+46
-4
没有找到文件。
pages/index/index.vue
浏览文件 @
290b4bc3
...
...
@@ -19,10 +19,15 @@
</view>
</view>
<view
class=
"tabs"
>
<u-tabs-swiper
bg-color=
"#7c59fc"
bar-width=
"200"
inactive-color=
"#ffffff"
active-color=
"#ffffff"
:is-scroll=
"false"
:current=
"titleCurrent"
:list=
"titleTabs"
@
change=
"titleTabsChange"
:class=
"
{'u-badge': titleCurrent===2}">
</u-tabs-swiper>
<view
class=
"deom-flex"
>
<view
class=
"defa"
:class=
"
{'active': titleCurrent==index}" v-for="(item,index) in titleTabs"
:key="index" @tap="titleTabsChange(index)">
<text
class=
"Tcenter"
>
{{
item
.
name
}}
</text>
<text
class=
"radius"
:class=
"
{'show': titleCurrent===2}" v-if="item.count>0">
{{
item
.
count
}}
</text>
</view>
</view>
</view>
<view
class=
"container"
>
<!--
<u-button
@
click=
"navigator('../register/register')"
>
跳转注册页(测试用)
</u-button>
-->
...
...
@@ -488,4 +493,41 @@
width
:
35
rpx
;
font-size
:
35
rpx
;
}
.defa
{
/* width: 250rpx; */
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
flex
:
1
;
margin-bottom
:
5
rpx
;
}
.active
{
/* width: 250rpx; */
border-bottom
:
2px
solid
#f7f8f9
;
}
.radius
{
margin-left
:
10
rpx
;
display
:
inline-block
;
width
:
45
rpx
;
height
:
45
rpx
;
border
:
3
rpx
none
#ff9900
;
background-color
:
#ff9900
;
color
:
white
;
border-radius
:
50%
;
}
.show
{
background-color
:
#00ff00
}
.deom-flex
{
text-align
:
center
;
vertical-align
:
middle
;
height
:
60
rpx
;
display
:
flex
;
flex-direction
:
row
;
font-size
:
35
rpx
;
background-color
:
#7D5AFC
;
color
:
#ffffff
;
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论