Explorar el Código

删除弃用文件;

郭鹏飞 hace 8 meses
padre
commit
dc55dfc358
Se han modificado 2 ficheros con 0 adiciones y 56 borrados
  1. 0 13
      src/pages.json
  2. 0 43
      src/pages/my/select_position.vue

+ 0 - 13
src/pages.json

@@ -265,19 +265,6 @@
 				"navigationStyle": "custom"
 			}
 		},
-		//选择地址
-		{
-			"path": "pages/my/select_position",
-			"style": {
-				"navigationBarTitleText": "选择地址",
-				"navigationBarBackgroundColor": "#2cb8d4",
-				"navigationBarTextStyle": "white",
-				"app-plus": {
-					"softinputNavBar": "none",
-					"titleNView": false
-				}  
-			}
-		},
 		//商户评论客户
 		{
 			"path": "pages/my/js_user",

+ 0 - 43
src/pages/my/select_position.vue

@@ -1,43 +0,0 @@
-<template>
-	<view>
-		<u-form-item label="地址" borderBottom prop="pos_name">
-			<u-input border="none" v-model="pos_name" type="textarea"></u-input>
-			<u-button slot="right" type="primary" size="mini" @click="getAddress">获取定位</u-button>
-		</u-form-item>
-	</view>
-</template>
-<script>
-export default {
-	data() {
-		return {
-			pos_name: '',
-			latitude: '',
-			longitude: '',
-			address: ''
-		}
-	},
-	methods: {
-		//获取定位信息
-		getAddress() {
-			uni.chooseLocation({
-				success: res => {
-					console.log('位置名称:' + res.name);
-					console.log('详细地址:' + res.address);
-					console.log('纬度:' + res.latitude);
-					console.log('经度:' + res.longitude);
-					this.pos_name = res.name;
-					this.latitude = res.latitude;
-					this.longitude = res.longitude;
-					this.address = res.address
-				}
-			});
-		},
-	}
-}
-</script>
-<style scoped>
-#container {
-	width: 100%;
-	height: 100vh;
-}
-</style>