|
|
@@ -1417,22 +1417,22 @@ export default {
|
|
|
console.log('当前位置的经度:' + res.longitude)
|
|
|
console.log('当前位置的纬度:' + res.latitude)
|
|
|
|
|
|
- uni.request({
|
|
|
- url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
|
|
|
- success: res => {
|
|
|
- console.log(res,'ppp运行')
|
|
|
- that.province = res.data.result.addressComponent.province
|
|
|
- that.city = res.data.result.addressComponent.city
|
|
|
- that.district = res.data.result.addressComponent.county
|
|
|
- },
|
|
|
- fail: err => {
|
|
|
- console.log("请求超时");
|
|
|
- console.log(err);
|
|
|
- },
|
|
|
- // complete: () => { //无论成功都会调用
|
|
|
- // uni.hideLoading()
|
|
|
- // }
|
|
|
- })
|
|
|
+ // uni.request({
|
|
|
+ // url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
|
|
|
+ // success: res => {
|
|
|
+ // console.log(res,'ppp运行')
|
|
|
+ // that.province = res.data.result.addressComponent.province
|
|
|
+ // that.city = res.data.result.addressComponent.city
|
|
|
+ // that.district = res.data.result.addressComponent.county
|
|
|
+ // },
|
|
|
+ // fail: err => {
|
|
|
+ // console.log("请求超时");
|
|
|
+ // console.log(err);
|
|
|
+ // },
|
|
|
+ // // complete: () => { //无论成功都会调用
|
|
|
+ // // uni.hideLoading()
|
|
|
+ // // }
|
|
|
+ // })
|
|
|
|
|
|
// let data = {
|
|
|
// lat: res.latitude,
|
|
|
@@ -1670,22 +1670,22 @@ export default {
|
|
|
console.log('当前位置的经度:' + res.longitude)
|
|
|
console.log('当前位置的纬度:' + res.latitude)
|
|
|
|
|
|
- uni.request({
|
|
|
- url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
|
|
|
- success: res => {
|
|
|
- console.log(res,'ppp运行')
|
|
|
- that.province = res.data.result.addressComponent.province
|
|
|
- that.city = res.data.result.addressComponent.city
|
|
|
- that.district = res.data.result.addressComponent.county
|
|
|
- },
|
|
|
- fail: err => {
|
|
|
- console.log("请求超时");
|
|
|
- console.log(err);
|
|
|
- },
|
|
|
- // complete: () => { //无论成功都会调用
|
|
|
- // uni.hideLoading()
|
|
|
- // }
|
|
|
- })
|
|
|
+ // uni.request({
|
|
|
+ // url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
|
|
|
+ // success: res => {
|
|
|
+ // console.log(res,'ppp运行')
|
|
|
+ // that.province = res.data.result.addressComponent.province
|
|
|
+ // that.city = res.data.result.addressComponent.city
|
|
|
+ // that.district = res.data.result.addressComponent.county
|
|
|
+ // },
|
|
|
+ // fail: err => {
|
|
|
+ // console.log("请求超时");
|
|
|
+ // console.log(err);
|
|
|
+ // },
|
|
|
+ // // complete: () => { //无论成功都会调用
|
|
|
+ // // uni.hideLoading()
|
|
|
+ // // }
|
|
|
+ // })
|
|
|
// let data = {
|
|
|
// lat: res.latitude,
|
|
|
// lng: res.longitude
|
|
|
@@ -2182,45 +2182,105 @@ export default {
|
|
|
title: '加载中',
|
|
|
mask: true // 是否显示透明蒙层,防止触摸穿透
|
|
|
})
|
|
|
- var daa = {
|
|
|
- buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
|
|
|
- indentType: this.indentType,
|
|
|
- limit: 10,
|
|
|
- page: this.page1,
|
|
|
- receivingPattern: this.receivingPettern,
|
|
|
- riderLat: this.latitude,
|
|
|
- riderLng: this.longitude
|
|
|
- }
|
|
|
- console.log('之前', daa)
|
|
|
- this.$Request
|
|
|
- .postJson('/app/tbindent/find-new-indent-group-by-shop', {
|
|
|
- buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
|
|
|
- indentType: this.indentType,
|
|
|
- limit: 10,
|
|
|
- page: this.page1,
|
|
|
- receivingPattern: this.receivingPettern,
|
|
|
- riderLat: this.latitude,
|
|
|
- riderLng: this.longitude,
|
|
|
- city:this.city
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- uni.hideLoading()
|
|
|
- if (res.data) {
|
|
|
- if (res.data.list.length > 0) {
|
|
|
- }
|
|
|
- this.totalCount1 = res.data.totalCount
|
|
|
- if (this.page1 == 1) {
|
|
|
- this.list_shanghu = res.data.list
|
|
|
- } else {
|
|
|
- this.list_shanghu = this.list_shanghu.concat(res.data.list)
|
|
|
- }
|
|
|
- console.log(this.list_shanghu, 'this.list_shanghu')
|
|
|
+ uni.request({
|
|
|
+ url: this.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+this.longitude+',%22lat%22:'+this.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
|
|
|
+ success: res => {
|
|
|
+ console.log(res,'ppp运行')
|
|
|
+ this.province = res.data.result.addressComponent.province
|
|
|
+ this.city = res.data.result.addressComponent.city
|
|
|
+ this.district = res.data.result.addressComponent.county
|
|
|
+ var daa = {
|
|
|
+ buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
|
|
|
+ indentType: this.indentType,
|
|
|
+ limit: 10,
|
|
|
+ page: this.page1,
|
|
|
+ receivingPattern: this.receivingPettern,
|
|
|
+ riderLat: this.latitude,
|
|
|
+ riderLng: this.longitude,
|
|
|
+ city:this.city
|
|
|
}
|
|
|
- this.$forceUpdate()
|
|
|
- uni.stopPullDownRefresh()
|
|
|
- // 加载提示关闭
|
|
|
- uni.hideLoading()
|
|
|
- })
|
|
|
+ console.log('之前', daa)
|
|
|
+ this.$Request
|
|
|
+ .postJson('/app/tbindent/find-new-indent-group-by-shop', {
|
|
|
+ buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
|
|
|
+ indentType: this.indentType,
|
|
|
+ limit: 10,
|
|
|
+ page: this.page1,
|
|
|
+ receivingPattern: this.receivingPettern,
|
|
|
+ riderLat: this.latitude,
|
|
|
+ riderLng: this.longitude,
|
|
|
+ city:this.city
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ uni.hideLoading()
|
|
|
+ console.log('接单池商家',res)
|
|
|
+ if (res.data) {
|
|
|
+ if (res.data.list.length > 0) {
|
|
|
+ }
|
|
|
+ this.totalCount1 = res.data.totalCount
|
|
|
+ if (this.page1 == 1) {
|
|
|
+ this.list_shanghu = res.data.list
|
|
|
+ } else {
|
|
|
+ this.list_shanghu = this.list_shanghu.concat(res.data.list)
|
|
|
+ }
|
|
|
+ console.log(this.list_shanghu, 'this.list_shanghu')
|
|
|
+ }
|
|
|
+ this.$forceUpdate()
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
+ // 加载提示关闭
|
|
|
+ uni.hideLoading()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: err => {
|
|
|
+ console.log("请求超时");
|
|
|
+ console.log(err);
|
|
|
+ var daa = {
|
|
|
+ buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
|
|
|
+ indentType: this.indentType,
|
|
|
+ limit: 10,
|
|
|
+ page: this.page1,
|
|
|
+ receivingPattern: this.receivingPettern,
|
|
|
+ riderLat: this.latitude,
|
|
|
+ riderLng: this.longitude,
|
|
|
+ city:this.city
|
|
|
+ }
|
|
|
+ console.log('之前', daa)
|
|
|
+ this.$Request
|
|
|
+ .postJson('/app/tbindent/find-new-indent-group-by-shop', {
|
|
|
+ buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
|
|
|
+ indentType: this.indentType,
|
|
|
+ limit: 10,
|
|
|
+ page: this.page1,
|
|
|
+ receivingPattern: this.receivingPettern,
|
|
|
+ riderLat: this.latitude,
|
|
|
+ riderLng: this.longitude,
|
|
|
+ city:this.city
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ uni.hideLoading()
|
|
|
+ console.log('接单池商家',res)
|
|
|
+ if (res.data) {
|
|
|
+ if (res.data.list.length > 0) {
|
|
|
+ }
|
|
|
+ this.totalCount1 = res.data.totalCount
|
|
|
+ if (this.page1 == 1) {
|
|
|
+ this.list_shanghu = res.data.list
|
|
|
+ } else {
|
|
|
+ this.list_shanghu = this.list_shanghu.concat(res.data.list)
|
|
|
+ }
|
|
|
+ console.log(this.list_shanghu, 'this.list_shanghu')
|
|
|
+ }
|
|
|
+ this.$forceUpdate()
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
+ // 加载提示关闭
|
|
|
+ uni.hideLoading()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // complete: () => { //无论成功都会调用
|
|
|
+ // uni.hideLoading()
|
|
|
+ // }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
// 获取新任务数据
|
|
|
taskData() {
|