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

@@ -1,5 +1,5 @@
<template>
<div class="grid">
<div class="grid" v-if="pageShow">
<div class="gird-wrapper">
<div class="gird-item">
<h2>一级网格</h2>
@@ -76,11 +76,13 @@
topGrid: [],
secondaryGrid: [],
tertiaryGrid: [],
tertiaryInfo: {}
tertiaryInfo: {},
pageShow: false
}
},
onLoad () {
this.$loading()
this.getInfo()
},
@@ -117,6 +119,10 @@
this.tertiaryGrid.push(...e.girdList)
})
}
this.$nextTick(() => {
this.pageShow = true
})
}
})
}

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
}