flat: 暂存
This commit is contained in:
@@ -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
|
_this.covers = covers
|
||||||
// })
|
})
|
||||||
// },
|
},
|
||||||
// fail: function(err) {
|
fail: function(err) {
|
||||||
// _this.$api.msg('无法获得周边信息')
|
_this.$api.msg('无法获得周边信息')
|
||||||
// },
|
},
|
||||||
// complete: function(e) {}
|
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.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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user