山东移动bug

This commit is contained in:
liuye
2022-02-25 15:55:09 +08:00
parent f62eeee220
commit 89e209808b
5 changed files with 40 additions and 13 deletions

View File

@@ -197,6 +197,7 @@ export default {
} }
} }
.user-list{ .user-list{
background-color: #f5f5f5;
.item{ .item{
padding: 32px 64px 24px; padding: 32px 64px 24px;
background-color: #fff; background-color: #fff;

View File

@@ -1,8 +1,10 @@
<template> <template>
<div class="Content"> <div class="Content">
<div class="text-area"> <div class="text-area">
<div class="title">不通过理由</div> <div class="title"><span class="tips">*</span>不通过理由</div>
<textarea placeholder="请输入" maxlength="200" v-model="opinion"></textarea> <textarea placeholder="请输入" maxlength="500" v-model="opinion"></textarea>
<div class="num">{{opinion.length}}/500</div>
<!-- <u-input v-model="opinion" type="textarea" placeholder="请输入" maxlength="500" /> -->
</div> </div>
<div class="footer" @click="examine(0)"> <div class="footer" @click="examine(0)">
<div class="btn">保存</div> <div class="btn">保存</div>
@@ -27,12 +29,15 @@ export default {
}, },
methods: { methods: {
examine(pass) { examine(pass) {
if(!this.opinion) {
return this.$u.toast('请输入不通过理由')
}
this.$http.post(`/app/appresident/examine?id=${this.id}&pass=${pass}&opinion=${this.opinion}`).then((res) => { this.$http.post(`/app/appresident/examine?id=${this.id}&pass=${pass}&opinion=${this.opinion}`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast('审核成功') this.$u.toast('审核成功')
uni.$emit('updatePeople') uni.$emit('updatePeople')
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack({delta: 2})
}, 600) }, 600)
} }
}) })
@@ -52,6 +57,11 @@ export default {
color: #333; color: #333;
line-height: 44px; line-height: 44px;
margin-bottom: 32px; margin-bottom: 32px;
.tips{
font-size: 32px;
margin-right: 8px;
color: #f46;
}
} }
textarea{ textarea{
width: 100%; width: 100%;
@@ -59,6 +69,10 @@ export default {
word-break: break-all; word-break: break-all;
} }
} }
.num{
text-align: right;
color: #999;
}
.footer { .footer {
width: 100%; width: 100%;
position: fixed; position: fixed;

View File

@@ -84,23 +84,23 @@
</div> </div>
<div class="item"> <div class="item">
<span>现住址</span> <span class="label">现住址</span>
<span v-if="data.resident && data.resident.currentAreaName">{{ data.resident.currentAreaName }}</span> <span class="value" v-if="data.resident && data.resident.currentAreaName">{{ data.resident.currentAreaName }}</span>
</div> </div>
<div class="item"> <div class="item">
<span>现住详细地址</span> <span class="label">现住详细地址</span>
<span v-if="data.resident && data.resident.currentAddress">{{ data.resident.currentAddress }}</span> <span class="value" v-if="data.resident && data.resident.currentAddress">{{ data.resident.currentAddress }}</span>
</div> </div>
<div class="item"> <div class="item">
<span>户籍地址</span> <span class="label">户籍地址</span>
<span v-if="data.resident && data.resident.householdAreaName">{{ data.resident.householdAreaName }}</span> <span class="value" v-if="data.resident && data.resident.householdAreaName">{{ data.resident.householdAreaName }}</span>
</div> </div>
<div class="item"> <div class="item">
<span>户籍详细地址</span> <span class="label">户籍详细地址</span>
<span v-if="data.resident && data.resident.householdAddress">{{ data.resident.householdAddress }}</span> <span class="value" v-if="data.resident && data.resident.householdAddress">{{ data.resident.householdAddress }}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -158,7 +158,7 @@ export default {
this.$confirm('确认通过该审核?').then(() => { this.$confirm('确认通过该审核?').then(() => {
this.$http.post(`/app/appresident/examine?id=${this.id}&pass=${pass}`).then((res) => { this.$http.post(`/app/appresident/examine?id=${this.id}&pass=${pass}`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.getDetail() uni.navigateBack()
this.$u.toast('审核成功') this.$u.toast('审核成功')
} }
}) })
@@ -232,6 +232,14 @@ export default {
.phones { .phones {
color: #3d94fb; color: #3d94fb;
} }
.label{
width: 200px;
}
.value{
width: calc(100% - 200px);
text-align: right;
word-break: break-all;
}
} }
} }
} }

View File

@@ -11,7 +11,7 @@
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" /> <u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker> </AiAreaPicker>
</div> </div>
<u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#999" color="#999" height="58" @search="handerSearch" @clear="handerClear"></u-search> <u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#999" color="#999" height="58" @search="handerSearch" @clear="handerClear"></u-search>
</div> </div>
</AiTopFixed> </AiTopFixed>
<div v-if="datas && datas.length > 0" class="list-content"> <div v-if="datas && datas.length > 0" class="list-content">
@@ -82,6 +82,9 @@ export default {
this.$dict.load('householdRelation', 'auditStatus').then(() => { this.$dict.load('householdRelation', 'auditStatus').then(() => {
this.getList() this.getList()
}) })
uni.$on('updatePeople', () => {
this.getListInit()
})
}, },
onShow() { onShow() {
document.title = '居民档案审核' document.title = '居民档案审核'

View File

@@ -301,6 +301,7 @@ export default {
} }
.user-list { .user-list {
background-color: #f5f5f5;
.item { .item {
padding: 32px 64px 24px; padding: 32px 64px 24px;
background-color: #fff; background-color: #fff;