新增居民
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
</div>
|
||||
|
||||
<AiEmpty class="emptyWrap" v-else></AiEmpty>
|
||||
<div style="height: 60px"></div>
|
||||
<div class="addBtn" @click="toAdd">新增居民</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -78,6 +80,9 @@ export default {
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
uni.$on('reload',()=>{
|
||||
this.getList()
|
||||
})
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
@@ -86,7 +91,6 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
var residentType = ['', 0, 1][this.currentTabs]
|
||||
console.log(residentType)
|
||||
this.$http
|
||||
.post('/app/appresident/list', null, {
|
||||
params: {
|
||||
@@ -135,6 +139,9 @@ export default {
|
||||
this.current = 1
|
||||
this.getList()
|
||||
},
|
||||
toAdd() {
|
||||
uni.navigateTo({url:'./Add'})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
@@ -231,5 +238,16 @@ uni-page-body {
|
||||
background: #f5f5f5;
|
||||
margin: 0;
|
||||
}
|
||||
.addBtn {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
background: #1365DD;
|
||||
text-align: center;
|
||||
color: #FFF;
|
||||
font-size: 32px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user