Procházet zdrojové kódy

更改 getLocation 接口为 getFuzzyLocation 接口

lvjian před 2 měsíci
rodič
revize
1c4e265b9e

+ 2 - 2
wx-mall/app.json

@@ -62,7 +62,7 @@
     "pages/ucenter/crossBoundaryQuotaQuery/crossBoundaryQuotaQuery"
     "pages/ucenter/crossBoundaryQuotaQuery/crossBoundaryQuotaQuery"
   ],
   ],
   "requiredPrivateInfos": [
   "requiredPrivateInfos": [
-    "getLocation",
+    "getFuzzyLocation",
     "chooseAddress",
     "chooseAddress",
     "chooseLocation"
     "chooseLocation"
   ],
   ],
@@ -111,7 +111,7 @@
   },
   },
   "debug": true,
   "debug": true,
   "permission": {
   "permission": {
-    "scope.userLocation": {
+    "scope.userFuzzyLocation": {
       "desc": "您的位置信息将用于小程序位置接口的效果展示"
       "desc": "您的位置信息将用于小程序位置接口的效果展示"
     }
     }
   },
   },

+ 1 - 1
wx-mall/lib/qqmap/qqmap-wx-jssdk.js

@@ -52,7 +52,7 @@ var Utils = {
      * 使用微信接口进行定位
      * 使用微信接口进行定位
      */
      */
     getWXLocation(success, fail, complete) {
     getWXLocation(success, fail, complete) {
-        wx.getLocation({
+        wx.getFuzzyLocation({
             type: 'gcj02',
             type: 'gcj02',
             success: success,
             success: success,
             fail: fail,
             fail: fail,

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
wx-mall/lib/qqmap/qqmap-wx-jssdk.min.js


+ 2 - 2
wx-mall/pages/index/index.js

@@ -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);

+ 1 - 1
wx-mall/pages/shopping/addressAdd/addressAdd.js

@@ -349,7 +349,7 @@ Page({
     let that = this;
     let that = this;
     if (null == that.data.addressId || that.data.addressId == 0) {
     if (null == that.data.addressId || that.data.addressId == 0) {
 
 
-      wx.getLocation({
+      wx.getFuzzyLocation({
         success: function (res) {
         success: function (res) {
           console.log(res)
           console.log(res)
           // 调用接口
           // 调用接口

+ 1 - 1
wx-mall/pages/ucenter/addressAdd/addressAdd.js

@@ -347,7 +347,7 @@ Page({
     let that = this;
     let that = this;
     if (null == that.data.addressId || that.data.addressId == 0) {
     if (null == that.data.addressId || that.data.addressId == 0) {
 
 
-      wx.getLocation({
+      wx.getFuzzyLocation({
         success: function (res) {
         success: function (res) {
           console.log(res)
           console.log(res)
           // 调用接口
           // 调用接口

+ 1 - 0
wx-mall/pages/ucenter/userLogin/userLogin.js

@@ -244,6 +244,7 @@ Page({
     util.request(api.smscodeSend, {
     util.request(api.smscodeSend, {
       phone: that.data.phone
       phone: that.data.phone
     }, 'POST').then(function (res) {
     }, 'POST').then(function (res) {
+      console.log("发送验证码 => ", res);
       let n = 59;
       let n = 59;
       var timer = setInterval(function () {
       var timer = setInterval(function () {
         if (n == 0) {
         if (n == 0) {

+ 1 - 1
wx-mall/utils/util.js

@@ -203,7 +203,7 @@ function dateformat(micro_second) {
 }
 }
 
 
 function getLocation(callback) {
 function getLocation(callback) {
-  wx.getLocation({
+  wx.getFuzzyLocation({
     type: 'gcj02', //返回可以用于wx.openLocation的经纬度
     type: 'gcj02', //返回可以用于wx.openLocation的经纬度
     success: function (res) {
     success: function (res) {
       var latitude = res.latitude;
       var latitude = res.latitude;

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů