|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
<div class="form">
|
|
|
<van-cell-group inset>
|
|
|
- <van-field v-model="message" rows="1" label="识别" type="textarea"
|
|
|
+ <van-field style="height: auto;" v-model="message" rows="1" label="识别" type="textarea"
|
|
|
placeholder="请粘贴,点击识别(姓名、手机号、省、市、区、详细地址间请输入空格)" />
|
|
|
</van-cell-group>
|
|
|
<div style="background-color: white;width: 100%;height: .8rem;padding-top: .2rem;">
|
|
@@ -124,6 +124,8 @@ export default {
|
|
|
this.district = res.district
|
|
|
this.town = res.town
|
|
|
this.address = res.addr_info
|
|
|
+ this.name = res.per
|
|
|
+ this.phone = res.tel
|
|
|
} else {
|
|
|
Toast('请求失败')
|
|
|
}
|
|
@@ -150,6 +152,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (this.province == '' || this.province == undefined) {
|
|
|
+ Toast('请输入省')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.city == '' || this.city == undefined) {
|
|
|
+ Toast('请输入市')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.district == '' || this.district == undefined) {
|
|
|
+ Toast('请输入区')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.city == '' || this.city == undefined) {
|
|
|
+ Toast('请输入镇')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (this.address == '' || this.address == undefined) {
|
|
|
Toast('请输入详细地址')
|
|
|
return
|
|
@@ -192,6 +211,9 @@ export default {
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
.content {
|
|
|
+ /deep/ .van-field--min-height .van-field__control {
|
|
|
+ min-height: 72px;
|
|
|
+ }
|
|
|
|
|
|
.form {
|
|
|
padding: .3rem;
|