|
|
@ -82,7 +82,7 @@ |
|
|
|
<view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i" |
|
|
|
<view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i" |
|
|
|
@click="seeloaction(box)"> |
|
|
|
@click="seeloaction(box)"> |
|
|
|
<image mode="widthFix" :src="box.logo" class="recontleft flleft border-r" |
|
|
|
<image mode="widthFix" :src="box.logo" class="recontleft flleft border-r" |
|
|
|
style="max-height: 60px;"> |
|
|
|
style="max-width: 50px;min-width: 50px;"> |
|
|
|
</image> |
|
|
|
</image> |
|
|
|
<view class="fotlt paddleft5"> |
|
|
|
<view class="fotlt paddleft5"> |
|
|
|
<view class="text2 width100 font18 fontwig6"> |
|
|
|
<view class="text2 width100 font18 fontwig6"> |
|
|
@ -146,7 +146,8 @@ |
|
|
|
], //距离 |
|
|
|
], //距离 |
|
|
|
distance: '1', |
|
|
|
distance: '1', |
|
|
|
distanceName: '1km', |
|
|
|
distanceName: '1km', |
|
|
|
searchName: '' //搜索名称 |
|
|
|
searchName: '', //搜索名称 |
|
|
|
|
|
|
|
typeplat: 1 //手机类型 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
@ -189,7 +190,15 @@ |
|
|
|
this.goodsSendotClassList = res.return_data[0].childIndustry; |
|
|
|
this.goodsSendotClassList = res.return_data[0].childIndustry; |
|
|
|
this.selectFirst = res.return_data[0].childIndustry[0].id; |
|
|
|
this.selectFirst = res.return_data[0].childIndustry[0].id; |
|
|
|
this.selectFirstName = res.return_data[0].childIndustry[0].name; |
|
|
|
this.selectFirstName = res.return_data[0].childIndustry[0].name; |
|
|
|
|
|
|
|
let platform = uni.getSystemInfoSync().platform; |
|
|
|
|
|
|
|
// if (platform == 'android') { |
|
|
|
|
|
|
|
// this.typeplat = 2; |
|
|
|
this.getMapStore(); |
|
|
|
this.getMapStore(); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// if (platform == 'ios') { |
|
|
|
|
|
|
|
// this.typeplat = 1; |
|
|
|
|
|
|
|
// this.getMapStore(); |
|
|
|
|
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -198,6 +207,7 @@ |
|
|
|
let datas = { |
|
|
|
let datas = { |
|
|
|
distance: this.distance, |
|
|
|
distance: this.distance, |
|
|
|
name: this.searchName, |
|
|
|
name: this.searchName, |
|
|
|
|
|
|
|
type: this.typeplat, |
|
|
|
childId: this.selectFirst, |
|
|
|
childId: this.selectFirst, |
|
|
|
longitude: app.globalData.longitude, |
|
|
|
longitude: app.globalData.longitude, |
|
|
|
latitude: app.globalData.latitude |
|
|
|
latitude: app.globalData.latitude |
|
|
@ -228,7 +238,12 @@ |
|
|
|
markertap(e) {}, |
|
|
|
markertap(e) {}, |
|
|
|
//地图点击事件 |
|
|
|
//地图点击事件 |
|
|
|
callouttap(e) { |
|
|
|
callouttap(e) { |
|
|
|
console.log('地图点击事件', e) |
|
|
|
let markerId = e.markerId; |
|
|
|
|
|
|
|
for (var i = 0; i < this.marker.length; i++) { |
|
|
|
|
|
|
|
if (markerId == this.marker[i].id) { |
|
|
|
|
|
|
|
this.seeloaction(this.marker[i]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
postionIng() { |
|
|
|
postionIng() { |
|
|
@ -537,7 +552,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.recontleft { |
|
|
|
.recontleft { |
|
|
|
width: 60px; |
|
|
|
|
|
|
|
margin-left: 10px; |
|
|
|
margin-left: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |