Commit 02796097 authored by 郭晓清's avatar 郭晓清

1、渠道标记

2、地图定位不准修复
parent a7fd455c
...@@ -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:''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment