|
@@ -145,7 +145,7 @@ Page({
|
|
|
wx.getLocation({
|
|
|
success: function(location) {
|
|
|
// do nothing
|
|
|
- // console.log('获取用户位置成功,获取附近门店');
|
|
|
+ console.log('获取用户位置成功,获取附近门店');
|
|
|
},
|
|
|
fail: function() {
|
|
|
// console.log('获取用户位置失败');
|
|
@@ -353,7 +353,8 @@ Page({
|
|
|
// console.log(location)
|
|
|
that.loadNearbyStore(location);
|
|
|
},
|
|
|
- fail: function() {
|
|
|
+ fail: function(res) {
|
|
|
+ console.log("获取位置 => ", res);
|
|
|
wx.hideLoading();
|
|
|
wx.getSetting({
|
|
|
success: function(res) {
|