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
02796097
Commit
02796097
authored
May 14, 2021
by
郭晓清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、渠道标记
2、地图定位不准修复
parent
a7fd455c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
detail.vue
src/pages/order/detail.vue
+6
-6
No files found.
src/pages/order/detail.vue
View file @
02796097
...
@@ -293,12 +293,11 @@
...
@@ -293,12 +293,11 @@
// uni.getLocation({
// uni.getLocation({
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度
// success: function (res) {
// success: function (res) {
debugger
const
latitude
=
this
.
order
.
contactAddressLatitud
//res.latitude;
const
latitude
=
this
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
order
.
contactAddressLongitud
//res.longitude;
const
longitude
=
this
.
contactAddressLongitud
//res.longitude;
uni
.
openLocation
({
uni
.
openLocation
({
latitude
:
Number
(
this
.
contactAddressLatitud
),
latitude
:
Number
(
latitude
),
longitude
:
Number
(
this
.
contactAddressLongitud
),
longitude
:
Number
(
longitude
),
success
:
function
()
{
success
:
function
()
{
console
.
log
(
'success'
);
console
.
log
(
'success'
);
}
}
...
@@ -574,9 +573,9 @@
...
@@ -574,9 +573,9 @@
// 不同请求类型传递不同数据
// 不同请求类型传递不同数据
if
(
this
.
submitType
===
'orderAccept'
){
// 接单
if
(
this
.
submitType
===
'orderAccept'
){
// 接单
data
.
orderId
=
this
.
order
.
orderId
data
.
orderId
=
this
.
order
.
orderId
data
.
channel
=
'zypt'
}
else
if
(
this
.
submitType
===
'orderGan'
){
// 抢单
}
else
if
(
this
.
submitType
===
'orderGan'
){
// 抢单
data
.
orderId
=
this
.
order
.
orderId
data
.
orderId
=
this
.
order
.
orderId
data
.
channel
=
4
}
else
if
(
this
.
submitType
===
'workerAppointment'
){
// 预约
}
else
if
(
this
.
submitType
===
'workerAppointment'
){
// 预约
data
.
appointmentDatetime
=
this
.
appointmentDatetime
data
.
appointmentDatetime
=
this
.
appointmentDatetime
if
(
!
data
.
appointmentDatetime
){
if
(
!
data
.
appointmentDatetime
){
...
@@ -596,6 +595,7 @@
...
@@ -596,6 +595,7 @@
return
return
}
}
}
}
data
.
channel
=
4
data
.
exception
=
this
.
isErrorSign
data
.
exception
=
this
.
isErrorSign
data
.
coordinate
=
this
.
dataValue
?
this
.
dataValue
[
0
]
+
','
+
this
.
dataValue
[
1
]:
''
data
.
coordinate
=
this
.
dataValue
?
this
.
dataValue
[
0
]
+
','
+
this
.
dataValue
[
1
]:
''
data
.
url
=
this
.
errorSignUrl
?
this
.
errorSignUrl
:
''
data
.
url
=
this
.
errorSignUrl
?
this
.
errorSignUrl
:
''
...
...
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