Merge pull request '8.1' (#95) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/95
This commit is contained in:
commit
1c16a85e18
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user