Procházet zdrojové kódy

update:不再获取用户位置

joe před 2 roky
rodič
revize
61e7693f78

+ 0 - 4
view/xcx/app.json

@@ -143,12 +143,8 @@
         ]
     },
     "permission": {
-        "scope.userLocation": {
-            "desc": "你的位置信息将用于获取附近门店"
-        }
     },
     "requiredBackgroundModes": [
-        "location"
     ],
     "sitemapLocation": "sitemap.json"
 }

+ 2 - 2
view/xcx/config.js

@@ -1,8 +1,8 @@
 module.exports = {
     // 请求域名 格式: https://您的域名
-    // HTTP_REQUEST_URL: 'http://twong.h',
+    HTTP_REQUEST_URL: 'http://twong.h:9080',
     // HTTP_REQUEST_URL:'https://twongd.shotshock.shop',
-    HTTP_REQUEST_URL:'https://twong.shotshock.shop',
+    // HTTP_REQUEST_URL:'https://twong.shotshock.shop',
     // Socket链接 暂不做配置
     WSS_SERVER_URL: 'wss://twong.shotshock.shop',
 

+ 11 - 11
view/xcx/pages/goods_details_store/index.js

@@ -46,9 +46,9 @@ Page({
         let latitude = wx.getStorageSync(CACHE_LATITUDE); //纬度
         // this.setData({ latitude: latitude, longitude: longitude });
         if (longitude && latitude) {
-            this.getList(longitude, latitude);
+            // this.getList(longitude, latitude);
         } else {
-            this.selfLocation();
+            // this.selfLocation();
         }
     },
 
@@ -56,12 +56,12 @@ Page({
      * 授权地址
      */
     selfLocation: function () {
-        const that = this;
-        wxh.selfLocation().then(res => {
-            that.getList(res.longitude, res.latitude);
-        }).catch(() => {
-            that.getList();
-        });
+        // const that = this;
+        // wxh.selfLocation().then(res => {
+        //     that.getList(res.longitude, res.latitude);
+        // }).catch(() => {
+        //     that.getList();
+        // });
     },
 
     /**
@@ -169,8 +169,8 @@ Page({
      * 页面上拉触底事件的处理函数
      */
     onReachBottom: function () {
-        let longitude = wx.getStorageSync(CACHE_LONGITUDE); //经度
-        let latitude = wx.getStorageSync(CACHE_LATITUDE); //纬度
-        this.getList(longitude, latitude);
+        // let longitude = wx.getStorageSync(CACHE_LONGITUDE); //经度
+        // let latitude = wx.getStorageSync(CACHE_LATITUDE); //纬度
+        // this.getList(longitude, latitude);
     }
 })

+ 1 - 1
view/xcx/pages/index/index.js

@@ -154,7 +154,7 @@ Page({
             d.debug('rowHeight:', this.data.rowPxHeight, 'navH:', this.data.navH, 'navPxH:', this.data.navPxH)
         }).exec()
 
-        wxh.selfLocation(1);
+        // wxh.selfLocation(1);
         this.getCategoryData();
         // this.getCoupon();
         this.get_hot_product();

+ 1 - 1
view/xcx/pages/user/user.js

@@ -52,7 +52,7 @@ Page({
         wx.openSetting({
             success: function (res) {
                 console.log(res.authSetting)
-                wxh.selfLocation();
+                // wxh.selfLocation();
             }
         });
     },

+ 96 - 118
view/xcx/project.config.json

@@ -1,129 +1,107 @@
 {
-    "description": "项目配置文件",
-    "packOptions": {
-        "ignore": []
+  "description": "项目配置文件",
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "setting": {
+    "urlCheck": false,
+    "es6": true,
+    "enhance": false,
+    "postcss": true,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "newFeature": true,
+    "coverView": true,
+    "nodeModules": true,
+    "autoAudits": true,
+    "showShadowRootInWxmlPanel": true,
+    "scopeDataCheck": false,
+    "uglifyFileName": true,
+    "checkInvalidKey": true,
+    "checkSiteMap": false,
+    "uploadWithSourceMap": true,
+    "compileHotReLoad": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
     },
-    "setting": {
-        "urlCheck": false,
-        "es6": true,
-        "enhance": false,
-        "postcss": true,
-        "preloadBackgroundData": false,
-        "minified": true,
-        "newFeature": true,
-        "coverView": true,
-        "nodeModules": true,
-        "autoAudits": true,
-        "showShadowRootInWxmlPanel": true,
-        "scopeDataCheck": false,
-        "uglifyFileName": true,
-        "checkInvalidKey": true,
-        "checkSiteMap": false,
-        "uploadWithSourceMap": true,
-        "compileHotReLoad": false,
-        "useMultiFrameRuntime": true,
-        "useApiHook": true,
-        "useApiHostProcess": true,
-        "babelSetting": {
-            "ignore": [],
-            "disablePlugins": [],
-            "outputPath": ""
+    "enableEngineNative": false,
+    "useIsolateContext": true,
+    "userConfirmedBundleSwitch": false,
+    "packNpmManually": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true,
+    "disableUseStrict": false,
+    "showES6CompileOption": false,
+    "useCompilerPlugins": false,
+    "condition": false
+  },
+  "compileType": "miniprogram",
+  "libVersion": "2.16.0",
+  "appid": "wx2cfae9c3f26a6f21",
+  "projectname": "twong",
+  "simulatorType": "wechat",
+  "simulatorPluginLibVersion": {},
+  "condition": {
+    "miniprogram": {
+      "list": [
+        {
+          "name": "order_list",
+          "pathName": "pages/admin/order_list/index",
+          "query": "status=0"
         },
-        "enableEngineNative": false,
-        "useIsolateContext": true,
-        "userConfirmedBundleSwitch": false,
-        "packNpmManually": false,
-        "packNpmRelationList": [],
-        "minifyWXSS": true,
-        "disableUseStrict": false,
-        "showES6CompileOption": false,
-        "useCompilerPlugins": false
-    },
-    "compileType": "miniprogram",
-    "libVersion": "2.16.0",
-    "appid": "wx9562ae2eb2fb8835",
-    "projectname": "twong",
-    "debugOptions": {
-        "hidedInDevtools": []
-    },
-    "isGameTourist": false,
-    "simulatorType": "wechat",
-    "simulatorPluginLibVersion": {},
-    "condition": {
-        "search": {
-            "list": []
+        {
+          "name": "pages/user_payment/index",
+          "pathName": "pages/user_payment/index",
+          "query": "status=0",
+          "scene": null
+        },
+        {
+          "name": "pages/goods_details/index",
+          "pathName": "pages/goods_details/index",
+          "query": "id=10",
+          "scene": null
         },
-        "conversation": {
-            "list": []
+        {
+          "name": "pages/goods_details_store/index",
+          "pathName": "pages/goods_details_store/index",
+          "query": "id=10",
+          "scene": null
         },
-        "plugin": {
-            "list": []
+        {
+          "name": "pages/admin/order_statistics/index",
+          "pathName": "pages/admin/order_statistics/index",
+          "query": "start=1577808000&stop=1580486399&type=1",
+          "scene": null
         },
-        "game": {
-            "currentL": -1,
-            "list": []
+        {
+          "name": "pages/activity/goods_seckill_details/index",
+          "pathName": "pages/activity/goods_seckill_details/index",
+          "query": "id=57&time=1591329600&status=1&scene=329",
+          "scene": null
         },
-        "gamePlugin": {
-            "list": []
+        {
+          "name": "pages/activity/goods_seckill_details/index",
+          "pathName": "pages/activity/goods_seckill_details/index",
+          "query": "id=57&time=1591329600&status=1&scene=329",
+          "scene": null
         },
-        "miniprogram": {
-            "list": [
-                {
-                    "id": 0,
-                    "name": "order_list",
-                    "pathName": "pages/admin/order_list/index",
-                    "query": "status=0"
-                },
-                {
-                    "id": -1,
-                    "name": "pages/user_payment/index",
-                    "pathName": "pages/user_payment/index",
-                    "query": "status=0",
-                    "scene": null
-                },
-                {
-                    "id": 2,
-                    "name": "pages/goods_details/index",
-                    "pathName": "pages/goods_details/index",
-                    "query": "id=10",
-                    "scene": null
-                },
-                {
-                    "id": -1,
-                    "name": "pages/goods_details_store/index",
-                    "pathName": "pages/goods_details_store/index",
-                    "query": "id=10",
-                    "scene": null
-                },
-                {
-                    "id": -1,
-                    "name": "pages/admin/order_statistics/index",
-                    "pathName": "pages/admin/order_statistics/index",
-                    "query": "start=1577808000&stop=1580486399&type=1",
-                    "scene": null
-                },
-                {
-                    "id": -1,
-                    "name": "pages/activity/goods_seckill_details/index",
-                    "pathName": "pages/activity/goods_seckill_details/index",
-                    "query": "id=57&time=1591329600&status=1&scene=329",
-                    "scene": null
-                },
-                {
-                    "id": -1,
-                    "name": "pages/activity/goods_seckill_details/index",
-                    "pathName": "pages/activity/goods_seckill_details/index",
-                    "query": "id=57&time=1591329600&status=1&scene=329",
-                    "scene": null
-                },
-                {
-                    "id": -1,
-                    "name": "pages/activity/goods_seckill_details/index",
-                    "pathName": "pages/activity/goods_seckill_details/index",
-                    "query": "id=57&time=1591329600&status=1&scene=329",
-                    "scene": null
-                }
-            ]
+        {
+          "name": "pages/activity/goods_seckill_details/index",
+          "pathName": "pages/activity/goods_seckill_details/index",
+          "query": "id=57&time=1591329600&status=1&scene=329",
+          "scene": null
         }
+      ]
     }
+  },
+  "editorSetting": {
+    "tabIndent": "insertSpaces",
+    "tabSize": 2
+  }
 }