Commit 6b1520f0fb47ed3d46d7c47bcd833f9f28d7c749

Authored by vking
1 parent df523398

search

Showing 1 changed file with 3 additions and 2 deletions
... ... @@ -86,13 +86,14 @@ Page({
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
this.selectComponent('#getpos').getPos();
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.selectComponent('#getpos').getPos();
PubSub.on(
'searchParamList',
data=>{
... ... @@ -438,7 +439,7 @@ Page({
this.getList()
},
moveToLocation(){
if(!this.position || !this.position.latitude || !this.position.longitude){
if(!this.location || !this.location.latitude || !this.location.longitude){
this.selectComponent('#getpos').getPos(true);
return;
}
... ...