|
...
|
...
|
@@ -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;
|
|
|
|
}
|
...
|
...
|
|