样式调整
This commit is contained in:
parent
f5530ed767
commit
b9ce503ff0
@ -250,6 +250,7 @@
|
|||||||
.receiveInfo {
|
.receiveInfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.receiveInfo ._right {
|
.receiveInfo ._right {
|
||||||
@ -262,7 +263,7 @@
|
|||||||
|
|
||||||
._alipay,
|
._alipay,
|
||||||
._wechat {
|
._wechat {
|
||||||
height: 150px;
|
height: 128px;
|
||||||
width: 50vw;
|
width: 50vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,6 +232,8 @@ const app = new Vue({
|
|||||||
method: "GET",
|
method: "GET",
|
||||||
data: {
|
data: {
|
||||||
page: this.currentPage,
|
page: this.currentPage,
|
||||||
|
lat: this.location[0],
|
||||||
|
lng: this.location[1],
|
||||||
},
|
},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@ -251,14 +253,21 @@ const app = new Vue({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
plus.geolocation.getCurrentPosition((p) => {
|
var lat = localStorage.getItem('lat');
|
||||||
console.log(p.coords.latitude);
|
var lng = localStorage.getItem('lng');
|
||||||
console.log(p.coords.longitude);
|
if (!lat || !lng) {
|
||||||
this.location=[p.coords.latitude, p.coords.longitude];
|
plus.geolocation.getCurrentPosition((p) => {
|
||||||
|
console.log(p.coords.latitude);
|
||||||
|
console.log(p.coords.longitude);
|
||||||
|
this.location=[p.coords.latitude, p.coords.longitude];
|
||||||
|
this.loadData();
|
||||||
|
},function (err) {
|
||||||
|
mui.alert('获取当前位置失败')
|
||||||
|
waiting.close();
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.location=[lat, lng];
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},function (err) {
|
}
|
||||||
mui.alert('获取当前位置失败')
|
|
||||||
waiting.close();
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
})
|
})
|
Loading…
x
Reference in New Issue
Block a user