flat: 暂存
This commit is contained in:
@@ -89,35 +89,35 @@
|
||||
},
|
||||
onShow() {
|
||||
const _this = this
|
||||
// uni.getLocation({
|
||||
// type: 'gcj02',
|
||||
// success: function(res) {
|
||||
// const {
|
||||
// longitude,
|
||||
// latitude
|
||||
// } = res
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
success: function(res) {
|
||||
const {
|
||||
longitude,
|
||||
latitude
|
||||
} = res
|
||||
// _this.$api.msg('成功获得周边信息')
|
||||
// console.log('成功获得周边信息', res)
|
||||
// _this.latitude = latitude
|
||||
// _this.longitude = longitude
|
||||
_this.latitude = latitude
|
||||
_this.longitude = longitude
|
||||
// _this.$api.msg('获得周边信息')
|
||||
// _this.getList(lon, lat).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.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
|
||||
// })
|
||||
// })
|
||||
},
|
||||
methods: {
|
||||
openMap(lon, lat) {
|
||||
|
||||
@@ -632,7 +632,7 @@
|
||||
z-index: 1;
|
||||
left: 30rpx; */
|
||||
position: relative;
|
||||
width: 50px;
|
||||
width: 65px;
|
||||
text-align: center;
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
@@ -670,7 +670,7 @@
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 10px solid transparent;
|
||||
border-right: 10px solid #949396;
|
||||
border-right: 10px solid #4171f9;
|
||||
/* 这里的颜色可以根据你的需要进行修改 */
|
||||
border-bottom: 10px solid transparent;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user