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
c60522e2
提交
c60522e2
authored
12月 23, 2021
作者:
正反
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复
上级
d531cae8
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
72 行增加
和
26 行删除
+72
-26
order.vue
components/order.vue
+3
-3
index.vue
pages/index/index.vue
+41
-16
map.vue
pages/map/map.vue
+2
-2
orderDetails.vue
pages/orderDetails/orderDetails.vue
+22
-2
edit.vue
pages/serviceArea/edit/edit.vue
+2
-2
myTips.js
tips/myTips.js
+2
-1
没有找到文件。
components/order.vue
浏览文件 @
c60522e2
<
template
>
<view
class=
"order"
>
<view
class=
"loading"
v-if=
"state.loading"
>
<
!--
<
view
class=
"loading"
v-if=
"state.loading"
>
<u-loading></u-loading>
<view>
加载中...
</view>
</view>
<view
class=
"main"
v-else
>
</view>
-->
<view
class=
"main"
>
<order-card
v-if=
"data.length !== 0"
:cardData=
"data"
:btnText=
"btnText"
@
show=
"show"
@
handleDetails=
"handleDetails"
></order-card>
<u-empty
v-if=
"data.length === 0"
text=
"暂无数据"
font-size=
"32"
></u-empty>
</view>
...
...
pages/index/index.vue
浏览文件 @
c60522e2
...
...
@@ -25,7 +25,7 @@
<text>
{{
item
.
name
}}
</text>
<text
class=
"radius"
:class=
"
{'show': changeColor,'disaper':item.count==0}"
>
{{
item
.
count
}}
</text>
<text
class=
"radius"
:class=
"
{'show': changeColor,'disaper':item.count==0}">
{{
item
.
count
}}
</text>
</view>
</view>
</view>
...
...
@@ -44,7 +44,7 @@
</view>
<view
v-if=
"titleCurrent == 1"
>
<u-tabs
active-color=
"#ff9900"
:list=
"subTabs"
:current=
"subCurrent"
@
change=
"subTabsChange"
:offset=
"offset"
></u-tabs>
:offset=
"offset"
duration=
0.2
></u-tabs>
<order
:data=
"orderData"
></order>
</view>
<view
v-if=
"titleCurrent == 2"
>
...
...
@@ -107,7 +107,8 @@
data
()
{
return
{
offset
:
[
5
,
0
],
changeColor
:
false
,
subIndex
:
''
,
changeColor
:
false
,
btnStyle
:
{
background
:
"#7D5AFC"
,
color
:
'#FFFFFF'
...
...
@@ -296,17 +297,20 @@
this
.
titleCurrent
=
index
if
(
this
.
titleCurrent
==
1
)
{
this
.
clearCount
()
this
.
clearSubCount
()
this
.
subCurrent
=
0
let
that
=
this
let
list
=
[]
this
.
orderData
=
[]
loading
()
SFView
(
""
).
then
((
res
)
=>
{
hidden
()
if
(
res
.
data
.
code
==
0
)
{
console
.
log
(
res
)
list
=
Object
.
values
(
res
.
data
.
result
)
list
=
list
.
flat
(
Infinity
)
console
.
log
(
list
[
0
].
caption
)
for
(
let
i
=
0
,
len
=
list
.
length
;
i
<
len
;
i
++
)
{
console
.
log
(
list
[
i
].
caption
)
if
(
list
[
i
].
caption
===
"待预约"
)
{
that
.
subTabs
[
0
].
count
+=
1
console
.
log
(
list
[
i
].
caption
)
...
...
@@ -333,7 +337,7 @@
}
that
.
checkPageState
()
that
.
sfview
()
}
else
{
console
.
log
(
"出现错误"
,
res
)
}
...
...
@@ -360,8 +364,8 @@
this
.
$store
.
state
.
loading
=
true
//查询订单信息
this
.
sfview
()
},
},
showLoginModal
()
{
this
.
loginModal
=
true
},
...
...
@@ -378,7 +382,9 @@
sfview
()
{
let
that
=
this
loading
()
SFView
(
this
.
state
.
state
).
then
((
res
)
=>
{
hidden
()
that
.
$store
.
state
.
loading
=
false
console
.
log
(
"查询订单信息结果:"
,
res
)
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -386,15 +392,17 @@
if
(
Object
.
values
(
res
.
data
.
result
)[
0
]
!==
null
)
{
console
.
log
(
Object
.
values
(
res
.
data
.
result
)[
0
])
that
.
orderData
=
Object
.
values
(
res
.
data
.
result
)[
0
]
that
.
subTabs
[
that
.
subCurrent
].
count
=
0
that
.
setCount
()
if
(
that
.
titleCurrent
==
2
)
{
that
.
changeColor
=
true
}
else
{
that
.
changeColor
=
false
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
]
that
.
subTabs
[
that
.
subCurrent
].
count
=
0
that
.
setCount
()
}
}
else
{
...
...
@@ -409,7 +417,11 @@
if
(
this
.
titleCurrent
!=
1
)
{
this
.
clearCount
()
let
count
=
this
.
orderData
.
length
this
.
titleTabs
[
this
.
titleCurrent
].
count
=
count
if
(
count
>
99
)
{
this
.
titleTabs
[
this
.
titleCurrent
].
count
=
'99+'
}
else
{
this
.
titleTabs
[
this
.
titleCurrent
].
count
=
count
}
}
else
{
if
(
this
.
orderData
)
{
this
.
clearCount
()
...
...
@@ -423,7 +435,12 @@
for
(
let
i
in
this
.
titleTabs
)
{
this
.
titleTabs
[
i
].
count
=
0
}
}
},
clearSubCount
()
{
for
(
let
i
in
this
.
subTabs
)
{
this
.
subTabs
[
i
].
count
=
0
}
},
}
}
</
script
>
...
...
@@ -500,24 +517,32 @@
.radius
{
font-size
:
20
rpx
;
text-align
:
center
;
vertical-align
:
middle
;
position
:
absolute
;
top
:
-20
;
right
:
-20
;
display
:
inline-block
;
width
:
30
rpx
;
height
:
30
rpx
;
border
:
3
rpx
none
#ff9900
;
min-
width
:
30
rpx
;
min-
height
:
30
rpx
;
border
:
1
rpx
none
#ff9900
;
background-color
:
#ff9900
;
color
:
white
;
border-radius
:
50%
;
}
.u-badge.data-v-662d25bf
{
background-color
:
#ff9900
!important
;
}
.show
{
background-color
:
#00ff00
}
.disaper
{
.disaper
{
display
:
none
;
}
.deom-flex
{
padding-top
:
15
rpx
;
text-align
:
center
;
...
...
pages/map/map.vue
浏览文件 @
c60522e2
...
...
@@ -77,14 +77,14 @@
latitude
:
23.57
,
longitude
:
116.88308
,
zIndex
:
5
,
iconPath
:
'../../static/images/marks.png'
//
iconPath: '../../static/images/marks.png'
},
{
id
:
2
,
latitude
:
22.56
,
longitude
:
116.88308
,
zIndex
:
5
,
iconPath
:
'../../static/images/marks.png'
//
iconPath: '../../static/images/marks.png'
}
],
showPopup
:
false
,
...
...
pages/orderDetails/orderDetails.vue
浏览文件 @
c60522e2
...
...
@@ -578,6 +578,7 @@
this
.
yyShow
=
true
}
that
.
orderDetails
.
Maindata
[
0
].
FSFQUOTEDPRICEAMOUNTSF
=
that
.
orderDetails
.
Maindata
[
0
].
FSFQUOTEDPRICEAMOUNTSF
.
toFixed
(
2
)
that
.
orderDetails
.
Maindata
[
0
].
FAPPOINTMENTDATE
=
that
.
dateChangeFormat
(
'YYYY-mm-dd HH:MM:SS'
,
that
.
orderDetails
.
Maindata
[
0
].
FAPPOINTMENTDATE
)
}
else
{
toast
(
res
.
data
.
message
)
console
.
log
(
"查询订单详情信息失败:"
,
res
)
...
...
@@ -815,7 +816,26 @@
}
},
//分割数据的时间
dateChangeFormat
(
format
,
date
)
{
date
=
new
Date
(
date
);
const
dataItem
=
{
'Y+'
:
date
.
getFullYear
().
toString
(),
'm+'
:
(
date
.
getMonth
()
+
1
).
toString
(),
'd+'
:
date
.
getDate
().
toString
(),
'H+'
:
date
.
getHours
().
toString
(),
'M+'
:
date
.
getMinutes
().
toString
(),
'S+'
:
date
.
getSeconds
().
toString
(),
};
Object
.
keys
(
dataItem
).
forEach
((
item
)
=>
{
const
ret
=
new
RegExp
(
`(
${
item
}
)`
).
exec
(
format
);
if
(
ret
)
{
format
=
format
.
replace
(
ret
[
1
],
ret
[
1
].
length
===
1
?
dataItem
[
item
]
:
dataItem
[
item
]
.
padStart
(
ret
[
1
].
length
,
'0'
));
}
});
return
format
;
},
bottomBtn
()
{
switch
(
this
.
orderDetails
.
Maindata
[
0
].
caption
)
{
case
'待报价'
:
...
...
@@ -914,7 +934,7 @@
that
.
picUrl
.
splice
(
i
,
0
,
res
.
data
.
result
[
0
].
fileurl
)
console
.
log
(
that
.
picUrl
)
}
else
{
toast
(
res
.
data
.
message
)
//
toast(res.data.message)
}
})
}
...
...
pages/serviceArea/edit/edit.vue
浏览文件 @
c60522e2
...
...
@@ -422,8 +422,8 @@
.radius
{
display
:
inline-block
;
width
:
45
rpx
;
height
:
45
rpx
;
min-
width
:
45
rpx
;
min-
height
:
45
rpx
;
border
:
3
rpx
none
#ff1f02
;
background-color
:
#ff1f02
;
color
:
white
;
...
...
tips/myTips.js
浏览文件 @
c60522e2
export
function
loading
(){
uni
.
showLoading
({
title
:
'加载中...'
title
:
'加载中...'
,
mask
:
'true'
})
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论