guhongwei 2 年之前
父节点
当前提交
7aa44e3112
共有 3 个文件被更改,包括 2 次插入57 次删除
  1. 1 1
      manifest.json
  2. 1 7
      pages.json
  3. 0 49
      pagesMy/address/location.vue

+ 1 - 1
manifest.json

@@ -138,7 +138,7 @@
                 "desc" : "定位当前位置,选在收获地址"
             }
         },
-        "requiredPrivateInfos" : [ "chooseAddress", "chooseLocation", "getLocation" ],
+        "requiredPrivateInfos" : [ "chooseAddress", "chooseLocation" ],//getLocation
         "plugins" : {
             // "chooseLocation" : {
             //     "version" : "1.0.9",

+ 1 - 7
pages.json

@@ -149,13 +149,7 @@
 						"navigationBarTitleText": "新增收货地址"
 					}
 				},
-				{
-					"path": "address/location",
-					"style": {
-						"navigationBarTitleText": "定位"
-					}
-
-				}, {
+         {
 					"path": "account/index",
 					"style": {
 						"navigationBarTitleText": "账号管理"

+ 0 - 49
pagesMy/address/location.vue

@@ -1,49 +0,0 @@
-<template>
-	<mobile-frame :frameStyle="frameStyle">
-		<view class="main">
-			<view class="one">
-			</view>
-		</view>
-	</mobile-frame>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				frameStyle: {
-					useBar: false
-				},
-			};
-		},
-		onLoad: function(e) {
-			console.log('1');
-			uni.getLocation({
-				type: 'wgs84',
-				geocode: true,
-				success: function(res) {
-					console.log(res);
-					console.log('当前位置的经度:' + res.longitude);
-					console.log('当前位置的纬度:' + res.latitude);
-				}
-			});
-		},
-		onShow: function() {},
-		methods: {
-
-		}
-	}
-</script>
-
-<style lang="scss">
-	.main {
-		display: flex;
-		flex-direction: column;
-		width: 100vw;
-		height: 100vh;
-
-		.one {
-			padding: 2vw;
-		}
-	}
-</style>