pull/12/head
xiaozhiyong 2 years ago
parent 6df26c7fe5
commit 5dfc59b640
  1. 7
      BagStation/pages/newRoutePlanning/chooseLocation.vue
  2. 7
      BagStation/pages/newRoutePlanning/components/screen.vue
  3. 15
      BagStation/pages/newRoutePlanning/newRoutePlanning.vue
  4. 22
      BagStation/pages/newRoutePlanning/siteList.vue

@ -144,6 +144,13 @@
})
},
getSuggestion() {
if(!this.seachValue) {
uni.showToast({
title:'还没有输入地址哦~',
icon:'none'
})
return
}
this.loding(true)
this.TXSDK.getSuggestion({
sig: 'mOPvEv4WmyaxymycTYy00pSiad2jnQil',

@ -55,12 +55,7 @@
},
selePrice: function(n, o) {
console.log(this.selePrice, 'jiage');
// this.filterData[1].lable = '' + this.selePrice.middlePrice;
// this.filterData[1].value = this.selePrice.middlePrice;
// this.filterData[2].lable = '';
// this.filterData[2].value = this.selePrice.minPrice;
// this.filterData
this.filterData = []
if (n) {
Object.keys(this.selePrice).forEach((item, index) => {

@ -94,7 +94,9 @@
latitude,
longitude
} = item
this.newMapMoveToLocation(longitude, latitude, 'reset')
setTimeout(() => {
this.newMapMoveToLocation(longitude, latitude, 'reset')
},500)
},
bindregionchange(e) {
console.log(e, '***********')
@ -209,14 +211,10 @@
} = this.$refs.addressSelector.datassFn();
let markerList = await this.mapUpdateMarkers(this.polyline[0].points, oilProductCode, juLi,
siteChannel);
console.log('newRoutePlanning markerList', markerList)
//
this.spareMarkers = this.locationProcessing(markerList);
console.log('newRoutePlanning spareMarkers', this.spareMarkers)
let markers = JSON.parse(JSON.stringify(this.spareMarkers));
console.log('markers', markers)
this.markers = await this.filterMarkers(markers);
console.log('newRoutePlanning this.markers', this.markers)
},
//
UpdateLocation(Route, type) {
@ -371,6 +369,7 @@
latitude: this.coordinate.latitude,
longitude: this.coordinate.longitude
}
console.log(JSON.stringify(data))
let taht = this;
return new Promise(function(re, rj) {
oilSiteApi.getSiteByGeoHashNew(data).then(markerList => {
@ -457,12 +456,13 @@
},
// :
newMapMoveToLocation(longitude, latitude, type) {
console.log('newMapMoveToLocation')
let that = this
this.mapContext.moveToLocation({
longitude: longitude,
latitude: latitude,
success(e) {
console.log(`%c 移动 坐标→ ${longitude}-${latitude}`, 'color:green;font-size:20px');
console.log(`移动 坐标→ ${longitude}-${latitude}`);
if (type) {
that.coordinate.latitude = latitude
that.coordinate.longitude = longitude
@ -478,6 +478,9 @@
})
}
},
fail(ee) {
console.log('ee',ee)
}
})
},
addfn(e) {

@ -1,14 +1,14 @@
<template>
<view class="site-list">
<view class="container" v-if="siteList.length">
<list >
<list>
<view class="item" v-for="item,index in siteList" :key="index">
<image
:src="item.siteImages || 'https://static.czb365.com/1647787216992.jpg?x-oss-process=image/resize,m_lfit,h_420,w_630/format,png'">
</image>
<view>{{item.siteName}}</view>
<view>
<view>{{item.address}}</view> <text>{{item.juli | adjust}}km</text>
<view>{{item.address || ''}}</view> <text>{{item.juli | adjust}}km</text>
</view>
<view>0# 7.94</view>
<view>
@ -36,20 +36,23 @@
if (!options.markers) return
let markers = JSON.parse(decodeURIComponent(options.markers))
this.siteList = markers
console.log('site markers',markers)
console.log('site markers', markers)
},
filters: {
adjust(val) {
if (!val) return '--'
val = +val
val = +val/1000
return val.toFixed(2)
}
},
methods: {
lookPosition(item) {
// console.log(getCurrentPages())
getCurrentPages()[0].$vm.perspectives(item)
uni.navigateBack()
let pageArr = getCurrentPages()
let target = pageArr[pageArr.length - 2]
if (target.$vm.perspectives) {
target.$vm.perspectives(item)
uni.navigateBack()
}
},
jump(item) {
let obj = {
@ -76,17 +79,22 @@
width: 100%;
background: #fff;
text-align: center;
image {
width: 450rpx;
height: 381rpx;
}
view {
color: #999;
}
}
.site-list {
min-height: 100vh;
.container {
min-height: 100vh;
padding: 50rpx;
background: #f0f0f0;
}

Loading…
Cancel
Save