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
fdd25152
提交
fdd25152
authored
12月 21, 2021
作者:
正反
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
颜色切换延缓
上级
d102598d
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
47 行增加
和
39 行删除
+47
-39
index.vue
pages/index/index.vue
+47
-39
没有找到文件。
pages/index/index.vue
浏览文件 @
fdd25152
...
...
@@ -25,7 +25,7 @@
<text>
{{
item
.
name
}}
</text>
<text
class=
"radius"
:class=
"
{'show':
titleCurrent===2}" v-if="item.count>0"
>
{{
item
.
count
}}
</text>
<text
class=
"radius"
:class=
"
{'show':
changeColor,'disaper':item.count==0}"
>
{{
item
.
count
}}
</text>
</view>
</view>
</view>
...
...
@@ -107,6 +107,7 @@
data
()
{
return
{
offset
:
[
5
,
0
],
changeColor
:
false
,
btnStyle
:
{
background
:
"#7D5AFC"
,
color
:
'#FFFFFF'
...
...
@@ -120,14 +121,15 @@
titleCurrent
:
0
,
titleTabs
:
[{
name
:
"待报价"
,
count
:
''
count
:
0
},
{
name
:
"进行中"
name
:
"进行中"
,
count
:
0
},
{
name
:
"已完成"
,
count
:
''
count
:
0
}
],
subTabs
:
[{
...
...
@@ -331,6 +333,7 @@
}
that
.
checkPageState
()
that
.
sfview
()
}
else
{
console
.
log
(
"出现错误"
,
res
)
}
...
...
@@ -341,11 +344,6 @@
//查询订单信息
this
.
sfview
()
}
if
(
this
.
titleCurrent
==
2
)
{
console
.
log
(
2
)
this
.
checkPageState
()
this
.
$store
.
state
.
loading
=
true
}
},
navigator
(
url
)
{
uni
.
navigateTo
({
...
...
@@ -389,6 +387,11 @@
console
.
log
(
Object
.
values
(
res
.
data
.
result
)[
0
])
that
.
orderData
=
Object
.
values
(
res
.
data
.
result
)[
0
]
that
.
setCount
()
if
(
that
.
titleCurrent
==
2
){
that
.
changeColor
=
true
}
else
{
that
.
changeColor
=
false
}
}
else
{
console
.
log
(
Object
.
values
(
res
.
data
.
result
)[
0
])
that
.
orderData
=
Object
.
values
(
res
.
data
.
result
)[
0
]
...
...
@@ -418,7 +421,7 @@
clearCount
()
{
for
(
let
i
in
this
.
titleTabs
)
{
this
.
titleTabs
[
i
].
count
=
''
this
.
titleTabs
[
i
].
count
=
0
}
}
}
...
...
@@ -479,6 +482,7 @@
position
:
relative
;
top
:
2px
;
}
.defa
{
/* width: 250rpx; */
position
:
relative
;
...
...
@@ -488,36 +492,40 @@
flex
:
1
;
margin-bottom
:
5
rpx
;
}
.active
{
/* width: 250rpx; */
border-bottom
:
2px
solid
#f7f8f9
;
}
.radius
{
font-size
:
20
rpx
;
position
:
absolute
;
top
:
-20
;
right
:
-20
;
display
:
inline-block
;
width
:
30
rpx
;
height
:
30
rpx
;
border
:
3
rpx
none
#ff9900
;
background-color
:
#ff9900
;
color
:
white
;
border-radius
:
50%
;
}
.show
{
background-color
:
#00ff00
}
.deom-flex
{
padding-top
:
15
rpx
;
text-align
:
center
;
vertical-align
:
middle
;
display
:
flex
;
flex-direction
:
row
;
font-size
:
30
rpx
;
background-color
:
#7D5AFC
;
color
:
#ffffff
;
}
}
.radius
{
font-size
:
20
rpx
;
position
:
absolute
;
top
:
-20
;
right
:
-20
;
display
:
inline-block
;
width
:
30
rpx
;
height
:
30
rpx
;
border
:
3
rpx
none
#ff9900
;
background-color
:
#ff9900
;
color
:
white
;
border-radius
:
50%
;
}
.show
{
background-color
:
#00ff00
}
.disaper
{
display
:
none
;
}
.deom-flex
{
padding-top
:
15
rpx
;
text-align
:
center
;
vertical-align
:
middle
;
display
:
flex
;
flex-direction
:
row
;
font-size
:
30
rpx
;
background-color
:
#7D5AFC
;
color
:
#ffffff
;
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论