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>
|
<view>
|
||||||
<input type="text" placeholder="手机号" maxlength="11" v-model="phone" />
|
<input type="text" placeholder="手机号" maxlength="11" v-model="phone" />
|
||||||
</view>
|
</view>
|
||||||
<view class="area" @click="show=true">
|
<view class="area">
|
||||||
<input type="text" placeholder="省市区" v-model="address" disabled />
|
<input type="text" placeholder="省市区" v-model="address" disabled @click="show=true" />
|
||||||
<view>
|
<!-- <view @click="chooseArea">
|
||||||
<image src="/static/image/mine/24.png"></image>
|
<image src="/static/image/mine/24.png"></image>
|
||||||
<text>定位</text>
|
<text>定位</text>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<input type="text" placeholder="详细地址" v-model="area" />
|
<input type="text" placeholder="详细地址" v-model="area" />
|
||||||
@ -80,6 +80,16 @@ export default {
|
|||||||
confirmBtn() {
|
confirmBtn() {
|
||||||
this.info ? this.editAddress() : this.addAddress();
|
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() {
|
validateValue() {
|
||||||
if(this.$u.test.isEmpty(this.name)) {
|
if(this.$u.test.isEmpty(this.name)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user