flat: 修改地图

This commit is contained in:
Apcallover
2024-05-16 15:16:11 +08:00
parent 5d82ff12d4
commit f97bd0f232
3 changed files with 29 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
<view class="top-search">
<view class="top-input">
<input class="put" type="text" placeholder-class="put-pla" v-model="searchValue"
placeholder="搜索地点或者附近岗位">
placeholder="搜索附近岗位或任务">
<button class="input-btn" @tap="search">搜索</button>
</view>
</view>
@@ -118,6 +118,7 @@
// this.longitude = myPoint.longitude
// _this.getList(_this.longitude, _this.latitude).then((covers) => {
// _this.$api.msg('成功获得周边信息')
// console.log(covers)
// _this.$refs.uMap.addFeature(covers)
// })
// })
@@ -142,6 +143,7 @@
}
},
search() {
const _this = this
uni.getLocation({
type: 'gcj02',
success: function(res) {
@@ -152,6 +154,7 @@
_this.latitude = latitude
_this.longitude = longitude
_this.getList(longitude, latitude).then((covers) => {
_this.$api.msg('成功获得周边信息')
_this.$refs.uMap.addFeature(covers)
})
},
@@ -160,8 +163,10 @@
},
complete: function(e) {}
})
// this.getList(this.longitude, this.longitude).then((covers) => {
// this.covers = covers
// this.getList(this.longitude, this.latitude).then((covers) => {
// this.$api.msg('成功获得周边信息')
// console.log(covers)
// this.$refs.uMap.addFeature(covers)
// })
},
clickmark(cover) {