Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
96acdc76
Commit
96acdc76
authored
Jun 28, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待完工点按钮直接去完工
parent
69a373e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
index.vue
src/components/order/index.vue
+25
-3
order.vue
src/pages/index/order.vue
+4
-1
No files found.
src/components/order/index.vue
View file @
96acdc76
...
@@ -112,6 +112,15 @@
...
@@ -112,6 +112,15 @@
return
this
.
typeTexts
[
this
.
orderType
]
return
this
.
typeTexts
[
this
.
orderType
]
},
},
buttonStyle
()
{
// 按钮样式
buttonStyle
()
{
// 按钮样式
/** orderType
0 待接单、
1 待预约、
2 待签到、
3 待完工、
4 审核中、
5 异常单、
6 已完工
*/
switch
(
this
.
orderType
)
{
switch
(
this
.
orderType
)
{
case
0
:
case
0
:
if
(
!
this
.
isCompetition
)
{
if
(
!
this
.
isCompetition
)
{
...
@@ -198,6 +207,12 @@
...
@@ -198,6 +207,12 @@
showDistance
()
{
showDistance
()
{
return
this
.
orderType
==
0
&&
this
.
location
.
length
>=
2
&&
(
this
.
orderData
.
contactAddressLatitud
||
this
.
orderData
.
contactAddressLongitud
)
return
this
.
orderType
==
0
&&
this
.
location
.
length
>=
2
&&
(
this
.
orderData
.
contactAddressLatitud
||
this
.
orderData
.
contactAddressLongitud
)
},
},
isWaitFinish
()
{
return
this
.
orderType
==
3
},
isException
()
{
return
this
.
orderType
==
5
},
types
()
{
types
()
{
return
{
return
{
'waitAccept'
:
0
,
// 待接单、
'waitAccept'
:
0
,
// 待接单、
...
@@ -269,10 +284,17 @@
...
@@ -269,10 +284,17 @@
methods
:
{
methods
:
{
// title:标题,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
// title:标题,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
handleClick
()
{
handleClick
()
{
// if (this.buttonDisabled) return
var
func
=
'click'
if
(
this
.
isWaitFinish
||
this
.
isException
)
{
// 不是待完工、不是异常单点按钮算点cell
func
=
'action'
}
this
.
$emit
(
'action'
,
this
.
orderData
,
this
.
type
,
this
.
showCountTime
?
'show'
:
''
)
this
.
$emit
(
'action'
,
this
.
orderData
,
this
.
type
,
this
.
showCountTime
?
'show'
:
''
)
},
},
handleClickCell
()
{
handleClickCell
()
{
var
func
=
'click'
if
(
this
.
isException
)
{
// 异常单点cell算点按钮
func
=
'action'
}
this
.
$emit
(
'click'
,
this
.
orderData
,
this
.
type
,
this
.
showCountTime
?
'show'
:
''
)
this
.
$emit
(
'click'
,
this
.
orderData
,
this
.
type
,
this
.
showCountTime
?
'show'
:
''
)
},
},
handleChange
(
timestamp
)
{
handleChange
(
timestamp
)
{
...
...
src/pages/index/order.vue
View file @
96acdc76
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<template
v-else
>
<template
v-else
>
<view
v-for=
"(item, index) in orderList"
:key=
"item.orderId"
>
<view
v-for=
"(item, index) in orderList"
:key=
"item.orderId"
>
<OrderCell
:orderData=
"item"
:type=
"orderType"
:location=
"dataValue"
@
click=
"handleClick"
<OrderCell
:orderData=
"item"
:type=
"orderType"
:location=
"dataValue"
@
click=
"handleClick"
@
action=
"handleClick"
>
</OrderCell>
@
action=
"handleClick
CellButton
"
>
</OrderCell>
</view>
</view>
<view
class=
"load-more-view"
>
<view
class=
"load-more-view"
>
<u-loadmore
v-show=
"(pageNumber == 1 && loaded) || pageNumber > 2"
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
<u-loadmore
v-show=
"(pageNumber == 1 && loaded) || pageNumber > 2"
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
...
@@ -231,6 +231,9 @@
...
@@ -231,6 +231,9 @@
}
}
});
});
},
},
handleClickCellButton
(
item
)
{
this
.
filish
(
item
)
},
handleClick
(
item
,
type
,
showCountTime
)
{
// type:类型,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
handleClick
(
item
,
type
,
showCountTime
)
{
// type:类型,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
if
(
item
.
orderStatus
===
86
||
item
.
orderStatus
===
88
){
if
(
item
.
orderStatus
===
86
||
item
.
orderStatus
===
88
){
this
.
filish
(
item
)
this
.
filish
(
item
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment