diff --git a/manifest.json b/manifest.json index 9383752..a26b9fc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "嗨森逛", - "appid" : "__UNI__70C9511", + "appid" : "__UNI__E807B53", "description" : "", "versionName" : "1.2.1", "versionCode" : "100", diff --git a/pages/tabBar/category/category.vue b/pages/tabBar/category/category.vue index a7d0d8a..379b5e6 100644 --- a/pages/tabBar/category/category.vue +++ b/pages/tabBar/category/category.vue @@ -82,7 +82,7 @@ + style="max-width: 50px;min-width: 50px;"> @@ -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; } \ No newline at end of file