flat: 暂存

This commit is contained in:
Apcallover
2024-04-25 19:53:08 +08:00
parent 9642c98111
commit 1b3ca37c3b
2 changed files with 30 additions and 30 deletions

View File

@@ -89,35 +89,35 @@
}, },
onShow() { onShow() {
const _this = this const _this = this
// uni.getLocation({ uni.getLocation({
// type: 'gcj02', type: 'gcj02',
// success: function(res) { success: function(res) {
// const { const {
// longitude, longitude,
// latitude latitude
// } = res } = res
// _this.$api.msg('成功获得周边信息') // _this.$api.msg('成功获得周边信息')
// console.log('成功获得周边信息', res) // console.log('成功获得周边信息', res)
// _this.latitude = latitude _this.latitude = latitude
// _this.longitude = longitude _this.longitude = longitude
// _this.$api.msg('获得周边信息') // _this.$api.msg('获得周边信息')
// _this.getList(lon, lat).then((covers) => { _this.getList(longitude, latitude).then((covers) => {
// _this.covers = covers
// })
// },
// fail: function(err) {
// _this.$api.msg('无法获得周边信息')
// },
// complete: function(e) {}
// })
this.mockGetLocation().then((myPoint) => {
// this.latitude = myPoint.latitude
// this.longitude = myPoint.longitude
_this.getList(_this.longitude, _this.latitude).then((covers) => {
_this.$api.msg('成功获得周边信息')
_this.covers = covers _this.covers = covers
}) })
},
fail: function(err) {
_this.$api.msg('无法获得周边信息')
},
complete: function(e) {}
}) })
// this.mockGetLocation().then((myPoint) => {
// // this.latitude = myPoint.latitude
// // this.longitude = myPoint.longitude
// _this.getList(_this.longitude, _this.latitude).then((covers) => {
// _this.$api.msg('成功获得周边信息')
// _this.covers = covers
// })
// })
}, },
methods: { methods: {
openMap(lon, lat) { openMap(lon, lat) {

View File

@@ -632,7 +632,7 @@
z-index: 1; z-index: 1;
left: 30rpx; */ left: 30rpx; */
position: relative; position: relative;
width: 50px; width: 65px;
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
font-size: 14px; font-size: 14px;
@@ -670,7 +670,7 @@
width: 0; width: 0;
height: 0; height: 0;
border-left: 10px solid transparent; border-left: 10px solid transparent;
border-right: 10px solid #949396; border-right: 10px solid #4171f9;
/* 这里的颜色可以根据你的需要进行修改 */ /* 这里的颜色可以根据你的需要进行修改 */
border-bottom: 10px solid transparent; border-bottom: 10px solid transparent;
position: absolute; position: absolute;