1修改地图可视化

master
杨杰 2 years ago
parent 3d9757bac9
commit 027b3445e8
  1. 2
      manifest.json
  2. 22
      pages/tabBar/category/category.vue

@ -1,6 +1,6 @@
{
"name" : "嗨森逛",
"appid" : "__UNI__70C9511",
"appid" : "__UNI__E807B53",
"description" : "",
"versionName" : "1.2.1",
"versionCode" : "100",

@ -82,7 +82,7 @@
<view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i"
@click="seeloaction(box)">
<image mode="widthFix" :src="box.logo" class="recontleft flleft border-r"
style="max-height: 60px;">
style="max-width: 50px;min-width: 50px;">
</image>
<view class="fotlt paddleft5">
<view class="text2 width100 font18 fontwig6">
@ -146,7 +146,8 @@
], //
distance: '1',
distanceName: '1km',
searchName: '' //
searchName: '', //
typeplat: 1 //
}
},
onLoad() {
@ -189,7 +190,15 @@
this.goodsSendotClassList = res.return_data[0].childIndustry;
this.selectFirst = res.return_data[0].childIndustry[0].id;
this.selectFirstName = res.return_data[0].childIndustry[0].name;
let platform = uni.getSystemInfoSync().platform;
// if (platform == 'android') {
// this.typeplat = 2;
this.getMapStore();
// }
// if (platform == 'ios') {
// this.typeplat = 1;
// this.getMapStore();
// }
}
})
},
@ -198,6 +207,7 @@
let datas = {
distance: this.distance,
name: this.searchName,
type: this.typeplat,
childId: this.selectFirst,
longitude: app.globalData.longitude,
latitude: app.globalData.latitude
@ -228,7 +238,12 @@
markertap(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() {
@ -537,7 +552,6 @@
}
.recontleft {
width: 60px;
margin-left: 10px;
}
</style>
Loading…
Cancel
Save