This commit is contained in:
yanran200730
2022-07-02 16:23:35 +08:00
parent 58022d5154
commit 2f31efcad8
3 changed files with 16 additions and 9 deletions

View File

@@ -165,7 +165,7 @@
margin-bottom: 30px;
&:active {
background: #eee;
// background: #eee;
}
.title{
margin-bottom: 38px;

View File

@@ -5,7 +5,7 @@
<div class="border">
<span class="label">店名</span>
<span class="value">
<input type="text" placeholder="请输入" v-model="form.businessName" maxlength="10">
<input type="text" placeholder="请输入" v-model="form.businessName" maxlength="20">
</span>
</div>
</div>
@@ -16,7 +16,7 @@
</div>
</div>
<div class="text-area">
<textarea placeholder="请输入" v-model="form.businessAddress"></textarea>
<textarea placeholder="请输入" v-model="form.businessAddress" maxlength="50"></textarea>
</div>
<div class="item">
<span class="tips">*</span>
@@ -41,7 +41,7 @@
<div class="border">
<span class="label">身份证号</span>
<span class="value">
<input type="text" placeholder="请输入" v-model="form.cardId">
<input type="text" placeholder="请输入" v-model="form.cardId" maxlength="18">
</span>
</div>
</div>
@@ -95,15 +95,16 @@
computed: {...mapState(['user'])},
onLoad (query) {
this.id = query.id
this.getInfo()
if (query) {
this.id = query.id
this.getInfo()
}
},
methods: {
chooseLocation () {
uni.chooseLocation({
success: res => {
this.form.businessAddress = res.name
this.form.lat = res.latitude
this.form.lng = res.longitude
}