This commit is contained in:
ghusermoon 2020-08-01 17:17:37 +08:00
parent 854976c8f0
commit 4ef16728f9

View File

@ -7,12 +7,12 @@
<view>
<input type="text" placeholder="手机号" maxlength="11" v-model="phone" />
</view>
<view class="area" @click="show=true">
<input type="text" placeholder="省市区" v-model="address" disabled />
<view>
<view class="area">
<input type="text" placeholder="省市区" v-model="address" disabled @click="show=true" />
<!-- <view @click="chooseArea">
<image src="/static/image/mine/24.png"></image>
<text>定位</text>
</view>
</view> -->
</view>
<view>
<input type="text" placeholder="详细地址" v-model="area" />
@ -80,6 +80,16 @@ export default {
confirmBtn() {
this.info ? this.editAddress() : this.addAddress();
},
chooseArea() {
uni.chooseLocation({
success: function (res) {
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
}
});
},
//
validateValue() {
if(this.$u.test.isEmpty(this.name)) {