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
f9620873
Commit
f9620873
authored
Apr 22, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单cell 增加location传参
parent
ac5f81fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
index.vue
src/components/order/index.vue
+14
-13
No files found.
src/components/order/index.vue
View file @
f9620873
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
<u-count-down
:timestamp=
"orderData.currentWillOverTime || orderData.currentOverTime"
font-size=
"44"
<u-count-down
:timestamp=
"orderData.currentWillOverTime || orderData.currentOverTime"
font-size=
"44"
color=
"#FF930D"
@
change=
"handleChange"
ref=
"order-count-down"
></u-count-down>
color=
"#FF930D"
@
change=
"handleChange"
ref=
"order-count-down"
></u-count-down>
</view>
</view>
<u-button
class=
"right-btn"
@
click
.
stop=
"handleClick"
:custom-style=
"buttonStyle"
type=
"primary"
shape=
"circle"
>
<u-button
class=
"right-btn"
@
click
.
stop=
"handleClick"
:custom-style=
"buttonStyle"
type=
"primary"
shape=
"circle"
>
{{
orderText
}}
{{
orderText
}}
</u-button>
</u-button>
</view>
</view>
...
@@ -64,10 +65,10 @@
...
@@ -64,10 +65,10 @@
}
}
},
},
orderType
:
Number
,
// 0:待接单 1:'去预约', 2:'去签到', 3:'去完工', 4:'审核中', 5:'去处理', 6'已完工'
orderType
:
Number
,
// 0:待接单 1:'去预约', 2:'去签到', 3:'去完工', 4:'审核中', 5:'去处理', 6'已完工'
location
:
{
location
:
{
// 当前坐标
type
:
Array
,
type
:
Array
,
default
()
{
default
()
{
return
[
116.3896
,
39.91917
]
return
[
116.3896
,
39.91917
]
// 经度,纬度
}
}
}
}
},
},
...
@@ -111,7 +112,7 @@
...
@@ -111,7 +112,7 @@
}
}
return
this
.
typeTexts
[
this
.
orderType
]
return
this
.
typeTexts
[
this
.
orderType
]
},
},
buttonStyle
()
{
// 按钮样式
buttonStyle
()
{
// 按钮样式
switch
(
this
.
orderData
.
orderStatus
)
{
switch
(
this
.
orderData
.
orderStatus
)
{
case
0
:
case
0
:
if
(
this
.
orderData
.
currentWillOverTime
)
{
if
(
this
.
orderData
.
currentWillOverTime
)
{
...
@@ -145,15 +146,15 @@
...
@@ -145,15 +146,15 @@
buttonStyles
()
{
buttonStyles
()
{
return
[{
return
[{
'background-color'
:
'#2272FF'
,
'background-color'
:
'#2272FF'
,
'color'
:
'#FFFFFF'
,
'color'
:
'#FFFFFF'
,
'font-size'
:
'32rpx'
'font-size'
:
'32rpx'
},
{
},
{
'background-color'
:
'#FF930D'
,
'background-color'
:
'#FF930D'
,
'color'
:
'#FFFFFF'
,
'color'
:
'#FFFFFF'
,
'font-size'
:
'32rpx'
'font-size'
:
'32rpx'
},
{
},
{
'background-color'
:
'transparent'
,
'background-color'
:
'transparent'
,
'color'
:
'#2272FF'
,
'color'
:
'#2272FF'
,
'font-size'
:
'32rpx'
'font-size'
:
'32rpx'
}]
}]
},
},
...
@@ -294,8 +295,6 @@
...
@@ -294,8 +295,6 @@
.address-right-view
{}
.address-right-view
{}
}
}
}
}
.line-view
{
.line-view
{
...
@@ -310,6 +309,7 @@
...
@@ -310,6 +309,7 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
.bottom-left-view
{
.bottom-left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -323,16 +323,17 @@
...
@@ -323,16 +323,17 @@
font-size
:
26rpx
;
font-size
:
26rpx
;
background-color
:
#FA5A49
;
background-color
:
#FA5A49
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
&
.will
{
&
.will
{
background-color
:
#FF930D
;
background-color
:
#FF930D
;
}
}
}
}
}
}
.right-btn
{
.right-btn
{
width
:
200rpx
;
width
:
200rpx
;
height
:
80rpx
;
height
:
80rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
}
}
}
}
...
...
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