赞
踩
- <view class="ReleaseItem">
- <view class="ReleaseName">地址</view>
- <view class="salaryBox" @click="choiceAddress">
- <view class="salary">{
- {region?region:"请选择"}}</view>
- <u-icon name="arrow-right" color="#999"></u-icon>
- </view>
- </view>
- <script>
- export default{
- data(){
- return{
- region:"",
- latitude:"",
- longitude:"",
- }
- },
- methods:{
- choiceAddress(){
- let _this = this;
- uni.chooseLocation({
- success(res) {
- console.log(res)
- _this.region = res.address;
- _this.latitude = res.latitude;
- _this.longitude = res.longitude;
- //后端接口,解析地址
- _this.$u
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。