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

View File

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

View File

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