|
@@ -142,7 +142,7 @@ Page({
|
|
console.log('isDirectEntry-0:', wx.getStorageSync('isDirectEntry'))
|
|
console.log('isDirectEntry-0:', wx.getStorageSync('isDirectEntry'))
|
|
let storeId = wx.getStorageSync('storeId');
|
|
let storeId = wx.getStorageSync('storeId');
|
|
|
|
|
|
- wx.getLocation({
|
|
|
|
|
|
+ wx.getFuzzyLocation({
|
|
success: function(location) {
|
|
success: function(location) {
|
|
// do nothing
|
|
// do nothing
|
|
console.log('获取用户位置成功,获取附近门店');
|
|
console.log('获取用户位置成功,获取附近门店');
|
|
@@ -348,7 +348,7 @@ Page({
|
|
let that = this;
|
|
let that = this;
|
|
// console.log(wx.getStorageSync('merchSn'));
|
|
// console.log(wx.getStorageSync('merchSn'));
|
|
//获取附件门店信息
|
|
//获取附件门店信息
|
|
- wx.getLocation({
|
|
|
|
|
|
+ wx.getFuzzyLocation({
|
|
success: function(location) {
|
|
success: function(location) {
|
|
// console.log(location)
|
|
// console.log(location)
|
|
that.loadNearbyStore(location);
|
|
that.loadNearbyStore(location);
|