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
60244773
Commit
60244773
authored
May 12, 2021
by
郭晓清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、客户地址定位
parent
be2d69fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
detail.vue
src/pages/order/detail.vue
+36
-36
No files found.
src/pages/order/detail.vue
View file @
60244773
...
@@ -291,48 +291,48 @@
...
@@ -291,48 +291,48 @@
methods
:
{
methods
:
{
openLocation
(
address
){
openLocation
(
address
){
if
(
this
.
isAllowDianhuaAndDaohang
){
if
(
this
.
isAllowDianhuaAndDaohang
){
uni
.
getLocation
({
// uni.getLocation({
type
:
'gcj02'
,
//返回可以用于uni.openLocation的经纬度
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度
success
:
function
(
res
)
{
// success: function (res) {
const
latitude
=
res
.
latitude
;
debugger
const
longitude
=
res
.
longitude
;
const
latitude
=
this
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
contactAddressLongitud
//res.longitude;
uni
.
openLocation
({
uni
.
openLocation
({
latitude
:
latitude
,
latitude
:
Number
(
this
.
contactAddressLatitud
)
,
longitude
:
longitude
,
longitude
:
Number
(
this
.
contactAddressLongitud
)
,
success
:
function
()
{
success
:
function
()
{
console
.
log
(
'success'
);
console
.
log
(
'success'
);
}
}
});
});
},
// }
complete
:
function
(
res
)
{
// ,
console
.
log
(
'-------complete-----'
,
res
)
// complete: function(res) {
if
(
res
.
errMsg
.
indexOf
(
'auth'
)
!=
-
1
)
{
// console.log('-------complete-----', res)
uni
.
showModal
({
// if (res.errMsg.indexOf('auth') != -1) {
title
:
'提示'
,
// uni.showModal({
content
:
'获取权限失败,请到设置页面开启权限'
,
// title: '提示',
confirmText
:
'好的'
,
// content: '获取权限失败,请到设置页面开启权限',
success
(
res
)
{
// confirmText: '好的',
if
(
res
.
confirm
)
{
// success(res) {
uni
.
openSetting
({
// if (res.confirm) {
success
(
res
)
{
// uni.openSetting({
console
.
log
(
res
.
authSetting
)
// success(res) {
}
// console.log(res.authSetting)
});
}
}
})
}
else
if
(
res
.
errMsg
)
{
// uni.setClipboardData({
// data: address,
// success: function () {
// console.log('success');
// }
// }
// });
// });
}
// }
}
});
// }
// })
// } else if (res.errMsg) {
// // uni.setClipboardData({
// // data: address,
// // success: function () {
// // console.log('success');
// // }
// // });
// }
// }
}
}
},
},
phoneToCustomer
(
phone
){
// 联系客户
phoneToCustomer
(
phone
){
// 联系客户
...
...
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