党员认证
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB |
@@ -1,247 +1,379 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="partyAuthApply">
|
<div class="partyAuthApply">
|
||||||
<div class="card">
|
<div class="tips">党员名单中未有你的信息,请完善资料等待审核。</div>
|
||||||
<div class="item">
|
<div class="form-item__group">
|
||||||
<div class="label required" v-text="`是否户主`"/>
|
<div class="form-item">
|
||||||
<div class="flex">
|
<div class="form-item__wrapper">
|
||||||
<div class="radioBtn" v-for="op in ownerOps" :key="op.dictValue" v-text="op.dictName"
|
<div class="form-item__title">
|
||||||
:class="{current:op.dictValue==form.householdName}" @click="form.householdName=op.dictValue"/>
|
<i>*</i>
|
||||||
|
<h2>党员姓名</h2>
|
||||||
|
</div>
|
||||||
|
<div class="form-item__right">
|
||||||
|
<input placeholder="请输入" v-model="form.name" :maxlength="20"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="form.householdName==0">
|
<div class="form-item">
|
||||||
<div class="flex item">
|
<div class="form-item__wrapper">
|
||||||
<div class="label required" required v-text="`户主身份证号`"/>
|
<div class="form-item__title">
|
||||||
<u-input v-model="form.householdIdNumber" input-align="right" maxlength="18"/>
|
<i>*</i>
|
||||||
|
<h2>身份证号</h2>
|
||||||
|
</div>
|
||||||
|
<div class="form-item__right">
|
||||||
|
<input placeholder="请输入" v-model="form.idNumber" :maxlength="18"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex item">
|
</div>
|
||||||
<div class="label required" required v-text="`与户主关系`"/>
|
<div class="form-item">
|
||||||
<AiSelect v-model="form.householdRelation" dict="householdRelation"/>
|
<div class="form-item__wrapper">
|
||||||
|
<div class="form-item__title">
|
||||||
|
<i>*</i>
|
||||||
|
<h2>手机号码</h2>
|
||||||
|
</div>
|
||||||
|
<div class="form-item__right">
|
||||||
|
<input placeholder="请输入" v-model="form.idNumber" :maxlength="11"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</div>
|
||||||
|
<div class="form-item">
|
||||||
|
<div class="form-item__wrapper">
|
||||||
|
<div class="form-item__title">
|
||||||
|
<i>*</i>
|
||||||
|
<h2>党组织</h2>
|
||||||
|
</div>
|
||||||
|
<div class="form-item__right">
|
||||||
|
<input placeholder="请输入" v-model="form.idNumber" :maxlength="50"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-item">
|
||||||
|
<div class="form-item__wrapper">
|
||||||
|
<div class="form-item__title">
|
||||||
|
<i>*</i>
|
||||||
|
<h2>入党时间</h2>
|
||||||
|
</div>
|
||||||
|
<div class="form-item__right">
|
||||||
|
<div class="ai-area" @click="isShowDate = true">
|
||||||
|
<div class="ai-area__wrapper">
|
||||||
|
<span class="label" v-if="form.nucleicAcidDate">{{ form.nucleicAcidDate }}</span>
|
||||||
|
<i v-else>请选择</i>
|
||||||
|
<u-icon name="arrow-right" color="#ddd"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-item">
|
||||||
|
<div class="form-item__wrapper">
|
||||||
|
<div class="form-item__title">
|
||||||
|
<i>*</i>
|
||||||
|
<h2>党员类型</h2>
|
||||||
|
</div>
|
||||||
|
<div class="form-item__right">
|
||||||
|
<input placeholder="请输入" v-model="form.idNumber" disabled :maxlength="20"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
|
||||||
<view class="item flex spb" v-for="row in baseInfo" :key="row.prop">
|
<u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker>
|
||||||
<span class="label" :class="{required:row.required}" v-text="row.label"/>
|
|
||||||
<AiSelect v-if="row.dict" v-model="form[row.prop]" :dict="row.dict" :disabled="row.disabled"/>
|
<div class="btn-wrapper">
|
||||||
<AiDate v-else-if="row.type=='time'" @change="v=>$set(form,row.prop,v)" :value="form[row.prop]"/>
|
<div class="btn" hover-class="text-hover" @click="submit">提交</div>
|
||||||
<u-input v-else-if="row.type=='idNumber'" v-model="form[row.prop]" input-align="right" maxlength="18"/>
|
|
||||||
<u-input v-else-if="row.type=='phone'" v-model="form[row.prop]" input-align="right" maxlength="11"/>
|
|
||||||
<u-input v-else v-model="form[row.prop]" input-align="right"/>
|
|
||||||
</view>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
</div>
|
||||||
<view class="item" :class="{spb:!row.topLabel,flex:!row.topLabel}" v-for="row in contract" :key="row.prop">
|
|
||||||
<span class="label" :class="{required:row.required}" v-text="row.label"/>
|
|
||||||
<AiAreaPicker v-if="row.type=='area'" @input="v=>$set(form,row.prop,v)" :fullName.sync="form.currentAreaName" :selectRoot="false">
|
|
||||||
<u-icon name="arrow-right" :label="form.currentAreaName||'请选择'" label-pos="left" color="#ddd"/>
|
|
||||||
</AiAreaPicker>
|
|
||||||
<textarea v-else v-model="form[row.prop]" input-align="right" placeholder="请输入" placeholder-style="color:#999"
|
|
||||||
maxlength="50"/>
|
|
||||||
</view>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
|
||||||
<view class="item" :class="{spb:!row.topLabel,flex:!row.topLabel}" v-for="row in household" :key="row.prop">
|
|
||||||
<span class="label" :class="{required:row.required}" v-text="row.label"/>
|
|
||||||
<AiAreaPicker v-if="row.prop=='householdAreaId'" all @input="v=>$set(form,row.prop,v)" v-model="form[row.prop]"
|
|
||||||
:fullName.sync="form.householdAreaName" valueLevel="5" isForm :selectRoot="false"/>
|
|
||||||
<textarea v-else v-model="form[row.prop]" input-align="right" placeholder="请输入" placeholder-style="color:#999"
|
|
||||||
maxlength="50"/>
|
|
||||||
</view>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
|
||||||
<view class="item flex spb" v-for="row in extra" :key="row.prop">
|
|
||||||
<span class="label" :class="{required:row.required}" v-text="row.label"/>
|
|
||||||
<AiSelect v-if="row.dict" v-model="form[row.prop]" :dict="row.dict"/>
|
|
||||||
<AiDate v-else-if="row.type=='time'" v-model="form[row.prop]"/>
|
|
||||||
<AiAreaPicker v-else-if="row.type=='area'" all v-model="form[row.prop]"
|
|
||||||
:fullName.sync="form.birthplaceAreaName">
|
|
||||||
<u-icon name="arrow-right" :label="form.birthplaceAreaName||'请选择'" label-pos="left" color="#ddd"/>
|
|
||||||
</AiAreaPicker>
|
|
||||||
<u-input v-else v-model="form[row.prop]" input-align="right"/>
|
|
||||||
</view>
|
|
||||||
</div>
|
|
||||||
<div class="fixed-bottom">
|
|
||||||
<u-button type="primary" @click="submit">
|
|
||||||
<text style="font-size: 16px" v-text="`提交`"/>
|
|
||||||
</u-button>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "partyAuthApply",
|
name: "partyAuthApply",
|
||||||
appName: "居民档案申请",
|
data() {
|
||||||
|
return {
|
||||||
|
isShowDate: false,
|
||||||
|
dataParams: {
|
||||||
|
year: true,
|
||||||
|
month: true,
|
||||||
|
day: true
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
name: '',
|
||||||
|
idNumber: '',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user'])
|
...mapState(['user'])
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
let required = true
|
onLoad(query) {
|
||||||
return {
|
this.$dict.load(['epidemicTouchInFourteen','EP_healthType','EP_nucleicAcidResult','EP_jkmType','EP_vaccinationCount']).then(()=> {
|
||||||
ownerOps: [],
|
this.form.reportUserId = query.id
|
||||||
form: {
|
this.form.name = query.name
|
||||||
householdName: "1",
|
this.form.idNumber = query.idNumber
|
||||||
currentAreaName: "",
|
|
||||||
householdAreaName: "",
|
|
||||||
birthplaceAreaName: ""
|
|
||||||
},
|
|
||||||
baseInfo: [
|
|
||||||
{label: "姓名", prop: "name", required},
|
|
||||||
{label: "身份证号", prop: "idNumber", required, type: "idNumber"},
|
|
||||||
{label: "性别", prop: "sex", required, dict: "sex", disabled: true},
|
|
||||||
{label: "出生日期", prop: "birthDate", required, type: "time", disabled: true},
|
|
||||||
{label: "联系方式", prop: "phone", type: "phone"},
|
|
||||||
],
|
|
||||||
contract: [
|
|
||||||
{label: "现住址", prop: "currentAreaId", type: "area", required},
|
|
||||||
{label: "详细住址", prop: "currentAddress", type: 'textarea', topLabel: true},
|
|
||||||
],
|
|
||||||
household: [
|
|
||||||
{label: "户籍地址", prop: "householdAreaId", type: "area"},
|
|
||||||
{label: "详细地址", prop: "householdAddress", type: 'textarea', topLabel: true},
|
|
||||||
],
|
|
||||||
extra: [
|
|
||||||
{label: "籍贯", prop: "birthplaceAreaId", type: "area"},
|
|
||||||
{label: "民族", prop: "nation", dict: "nation"},
|
|
||||||
{label: "文化程度", prop: "education", dict: "education"},
|
|
||||||
{label: "婚姻状况", prop: "maritalStatus", dict: "maritalStatus"},
|
|
||||||
{label: "政治面貌", prop: "politicsStatus", dict: "politicsStatus"},
|
|
||||||
{label: "兵役状况", prop: "militaryStatus", dict: "militaryStatus"},
|
|
||||||
{label: "宗教信仰", prop: "faithType", dict: "faithType"},
|
|
||||||
{label: "职业", prop: "job", dict: "job"},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onLoad() {
|
|
||||||
this.$dict.load("yesOrNo", "householdRelation").then(() => {
|
|
||||||
this.ownerOps = this.$dict.getDict("yesOrNo")
|
|
||||||
})
|
})
|
||||||
this.getResident()
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
'form.idNumber'(v) {
|
|
||||||
let {birthday: birthDate, sex} = this.$idCardNoUtil.getIdCardInfo(v),
|
|
||||||
age = this.$calcAge(v)
|
|
||||||
this.form = {...this.form, birthDate, sex, age}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getResident() {
|
onDateChange(e) {
|
||||||
let {residentId: id} = this.user
|
this.form.nucleicAcidDate = `${e.year}-${e.month}-${e.day}`
|
||||||
if (id) {
|
|
||||||
this.$instance.post("/app/appresident/detailForWx", null, {
|
|
||||||
params: {id}
|
|
||||||
}).then(res => {
|
|
||||||
if (res?.data) {
|
|
||||||
this.form = res.data.resident
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else if (uni.getStorageSync("authForm")) {
|
|
||||||
let info = uni.getStorageSync("authForm"),
|
|
||||||
{birthday: birthDate, sex} = this.$idCardNoUtil.getIdCardInfo(info.idNumber)
|
|
||||||
uni.removeStorageSync("authForm")
|
|
||||||
this.form = {...this.form, ...info, birthDate, sex}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
let {baseInfo, contract, household, extra, form: {householdName, householdIdNumber, householdRelation}} = this
|
|
||||||
if (householdName == 0) {
|
if (!this.form.temperature) {
|
||||||
if (!householdIdNumber) return this.$u.toast("请输入户主身份证号")
|
return this.$toast('请输入当前体温')
|
||||||
else if (!this.$idCardNoUtil.checkIdCardNo(householdIdNumber)) return this.$u.toast("请输入正确的身份证号")
|
|
||||||
if (!householdRelation) return this.$u.toast("请输入与户主关系")
|
|
||||||
}
|
}
|
||||||
let flag = [baseInfo, contract, household, extra].flat().reverse().some(e => {
|
|
||||||
if (e.required && !this.form[e.prop]) {
|
if (!this.form.contactPatients) {
|
||||||
if (!e.dict && (['textarea', 'idNumber'].includes(e.type) || !e.type)) return this.$u.toast("请输入" + e.label) || true
|
return this.$toast('请选择14天内是否接触新冠确诊或疑似患者')
|
||||||
else return this.$u.toast("请选择" + e.label) || true
|
}
|
||||||
} else if (e.type == 'idNumber' && !this.$idCardNoUtil.checkIdCardNo(this.form[e.prop])) {
|
|
||||||
return this.$u.toast("请输入正确的身份证号") || true
|
if (!this.form.healthList.length) {
|
||||||
|
return this.$toast('请选择当前健康状况')
|
||||||
|
} else {
|
||||||
|
this.form.health = this.form.healthList.toString()
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!this.form.nucleicAcidDate) {
|
||||||
|
return this.$toast('请选择核酸检测日期')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.form.nucleicAcidResult) {
|
||||||
|
return this.$toast('请选择核酸检测结果')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.form.jkmType) {
|
||||||
|
return this.$toast('请选择健康码类型')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.form.vaccinationCount) {
|
||||||
|
return this.$toast('请选择已接种疫苗次数')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.form.jkmUrlArr.length) {
|
||||||
|
return this.$toast('请上传健康码截图')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.form.nucleicAcidUrlArr.length) {
|
||||||
|
return this.$toast('请上核酸检测结果截图')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
this.$loading()
|
||||||
|
this.$instance.post(`/app/appepidemicpreventionhealthreportinfo/addReportInfo`, {
|
||||||
|
...this.form,
|
||||||
|
jkmUrl: this.form.jkmUrlArr[0].url,
|
||||||
|
nucleicAcidUrl: this.form.nucleicAcidUrlArr[0].url,
|
||||||
|
nucleicAcidDate: this.form.nucleicAcidDate + ' 00:00:00'
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.$emit('update')
|
||||||
|
this.$toast('提交成功')
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 400)
|
||||||
}
|
}
|
||||||
|
this.$hideLoading()
|
||||||
})
|
})
|
||||||
if (!flag) {
|
|
||||||
this.$instance.post("/app/appresident/addOrUpdate", this.form).then(res => {
|
|
||||||
if (res?.code == 0) {
|
|
||||||
this.$u.toast("提交成功!")
|
|
||||||
setTimeout(() => uni.switchTab({url: "/pages/AppMine/AppMine"}), 1000)
|
|
||||||
// uni.redirectTo({url: "./authSuccess"})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss">
|
||||||
.partyAuthApply {
|
.partyAuthApply {
|
||||||
background: #F3F6F9;
|
padding-bottom: 140px;
|
||||||
min-height: 100vh;
|
|
||||||
padding-bottom: 280px;
|
|
||||||
|
|
||||||
.card {
|
.title {
|
||||||
|
padding: 16px 32px 0 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding-left: 32px;
|
font-size: 36px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips {
|
||||||
|
line-height: 1.3;
|
||||||
|
padding: 32px 32px;
|
||||||
|
color: #FF883C;
|
||||||
|
font-size: 30px;
|
||||||
|
text-align: justify;
|
||||||
|
background: #FFF8F3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item__group {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item {
|
||||||
|
padding-left: 32px;
|
||||||
|
|
||||||
.label {
|
.form-item__checkbox {
|
||||||
font-size: 34px;
|
width: 100%;
|
||||||
font-family: PingFangSC-Medium, PingFang SC;
|
|
||||||
color: #666;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 112px;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
&.required:before {
|
div {
|
||||||
content: "*";
|
width: 100%;
|
||||||
color: #FF4466;
|
height: 80px;
|
||||||
position: absolute;
|
line-height: 80px;
|
||||||
left: 0;
|
margin-bottom: 24px;
|
||||||
transform: translateX(-100%);
|
text-align: center;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16px;
|
||||||
|
color: #333333;
|
||||||
|
font-size: 28px;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background: #4181FF;
|
||||||
|
color: #fff;
|
||||||
|
border-color: #4181FF;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
// .form-item__radio {
|
||||||
width: 100%;
|
// display: flex;
|
||||||
min-height: 128px;
|
// align-items: center;
|
||||||
color: #333;
|
// flex-wrap: wrap;
|
||||||
box-shadow: inset 0px -1px 0px 0px #DDDDDD;
|
|
||||||
padding-right: 32px;
|
// div {
|
||||||
box-sizing: border-box;
|
// width: 212px;
|
||||||
|
// height: 80px;
|
||||||
|
// line-height: 80px;
|
||||||
|
// margin-right: 16px;
|
||||||
|
// margin-bottom: 8px;
|
||||||
|
// text-align: center;
|
||||||
|
// background: #FFFFFF;
|
||||||
|
// border-radius: 16px;
|
||||||
|
// color: #333333;
|
||||||
|
// font-size: 28px;
|
||||||
|
// border: 1px solid #CCCCCC;
|
||||||
|
|
||||||
|
// &:nth-of-type(3n) {
|
||||||
|
// margin-right: 0;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// &.active {
|
||||||
|
// background: #4181FF;
|
||||||
|
// color: #fff;
|
||||||
|
// border-color: #4181FF;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
.ai-area__wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-left: 100px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: #333;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #999;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 16px;
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item__wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
height: 128px;
|
||||||
|
padding-right: 28px;
|
||||||
|
border-bottom: 1px solid #DDDDDD;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
input {
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
text-align: right;
|
||||||
|
color: #333;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item__right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 32px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
max-width: 400px;
|
||||||
|
margin-right: 8px;
|
||||||
|
color: #333333;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 8px;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.radioBtn {
|
&:last-child {
|
||||||
width: 218px;
|
.form-item__wrapper {
|
||||||
height: 80px;
|
border-bottom: none;
|
||||||
background: #FFFFFF;
|
}
|
||||||
border-radius: 16px;
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
margin-right: 16px;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 80px;
|
|
||||||
margin-bottom: 48px;
|
|
||||||
|
|
||||||
&.current {
|
|
||||||
background: #4181FF;
|
|
||||||
color: #fff;
|
|
||||||
border-color: #4181ff;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.fixed-bottom {
|
.form-item__title {
|
||||||
width: 100vw;
|
display: flex;
|
||||||
height: 120px;
|
align-items: center;
|
||||||
padding: 16px 32px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
background: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
i {
|
||||||
width: 100%;
|
font-size: 32px;
|
||||||
|
color: #FF4466;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: 28px;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
padding: 0 4px;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 32px;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// &.form-item__imgs, &.form-item__textarea {
|
||||||
|
// .form-item__wrapper {
|
||||||
|
// display: block;
|
||||||
|
// height: auto;
|
||||||
|
// padding-bottom: 32px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// textarea {
|
||||||
|
// width: 100%;
|
||||||
|
// height: 90px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .form-item__title {
|
||||||
|
// padding: 32px 0;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .form-item__right {
|
||||||
|
// padding-left: 18px;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ import {mapState} from "vuex";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "partyAuthInfo",
|
name: "partyAuthInfo",
|
||||||
appName: "我的档案",
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
detail: {},
|
detail: {},
|
||||||
|
|||||||
@@ -1,34 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="partyAuthSuccess">
|
<div class="partyAuthSuccess">
|
||||||
<template v-if="isSuccess">
|
<template v-if="isSuccess">
|
||||||
<!-- <image src="https://cdn.cunwuyun.cn/img/authSuccess.png"/> -->
|
<image src="https://cdn.cunwuyun.cn/pingchang/success.png"/>
|
||||||
<image src="./img/success.png"/>
|
|
||||||
<h2 v-text="`认证成功!`"/>
|
<h2 v-text="`认证成功!`"/>
|
||||||
<div class="btn" @click="gotoInfo" v-text="`前往查看`"/>
|
<div class="btn" @click="goBack" v-text="`返回`"/>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="isFail">
|
<template v-else-if="isFail">
|
||||||
<image src="https://cdn.cunwuyun.cn/img/authFail.png"/>
|
<image src="https://cdn.cunwuyun.cn/pingchang/fail.png"/>
|
||||||
<h2 v-text="`认证失败!`"/>
|
<h2 v-text="`党员认证审核未通过!`"/>
|
||||||
<span class="flex">请先填写<div class="blue" v-text="`居民档案`"/> 进行申请</span>
|
<div class="feedback">
|
||||||
<div class="btn" @click="apply">居民档案申请</div>
|
审核意见:{{}}
|
||||||
<div class="btn plain" @click="backToHome">返回</div>
|
</div>
|
||||||
|
<div class="btn" @click="rewrite">重新提交</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="authing" v-else>
|
<div class="isReview" v-else-if="isReview">
|
||||||
<div class="result" v-text="`你发起的申请/修改`"/>
|
<image src="https://cdn.cunwuyun.cn/pingchang/review.png"/>
|
||||||
<div class="result" v-text="authingResult"/>
|
<div class="result" v-text="`认证正在审核中,请耐心等待`"/>
|
||||||
<div class="failReason" v-if="authFail">
|
<div class="btn" @click="rewrite">重新提交</div>
|
||||||
<div class="title flex spb">
|
|
||||||
<b v-text="`审核结果`"/>
|
|
||||||
<b class="red" v-text="`未通过`"/>
|
|
||||||
</div>
|
|
||||||
<b v-text="`原因`"/>
|
|
||||||
<div v-html="info.resident.auditOpinion"/>
|
|
||||||
</div>
|
|
||||||
<div class="fixed-bottom">
|
|
||||||
<u-button type="primary" @click="$linkTo('./authInfo')">
|
|
||||||
<text style="font-size: 16px" v-text="`查看填报内容`"/>
|
|
||||||
</u-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -36,40 +24,57 @@
|
|||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
appName: "实名身份认证",
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
info: {}
|
info: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
// 0未认证 1认证中 2已认证 3认证失败
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
isSuccess() {
|
isSuccess() {
|
||||||
|
return this.user.partyStatusForWX == 2
|
||||||
|
},
|
||||||
|
isFail() {
|
||||||
|
return this.user.partyStatusForWX == 3
|
||||||
|
},
|
||||||
|
isReview() {
|
||||||
return this.user.partyStatusForWX == 0
|
return this.user.partyStatusForWX == 0
|
||||||
},
|
},
|
||||||
// isFail() {
|
},
|
||||||
// return this.user.partyStatusForWX == 0
|
onShow() {
|
||||||
// },
|
// let titles = ''
|
||||||
authFail() {
|
// if(this.user.partyStatusForWX == 1){
|
||||||
return this.user.status == -1
|
// titles = '认证中'
|
||||||
},
|
// } else if(this.user.partyStatusForWX == 2) {
|
||||||
authingResult() {
|
// titles = '认证成功'
|
||||||
return this.authFail ? "审核未通过" : "正在审核中"
|
// } else if(this.user.partyStatusForWX == 3) {
|
||||||
}
|
// titles = '认证失败'
|
||||||
|
// }
|
||||||
|
uni.setNavigationBarTitle({
|
||||||
|
title: '党员认证'
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
if (!this.isSuccess && !this.isFail) this.getAuthResult()
|
let title = ''
|
||||||
|
if(this.user.partyStatusForWX == 1){
|
||||||
|
title = '认证中'
|
||||||
|
} else if(this.user.partyStatusForWX == 2) {
|
||||||
|
title = '认证成功'
|
||||||
|
} else if(this.user.partyStatusForWX == 3) {
|
||||||
|
title = '认证失败'
|
||||||
|
}
|
||||||
|
uni.setNavigationBarTitle({
|
||||||
|
title: title
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
backToHome() {
|
rewrite() {
|
||||||
|
uni.redirectTo({url: "./partyAuthApply"})
|
||||||
|
},
|
||||||
|
goBack() {
|
||||||
uni.navigateBack({})
|
uni.navigateBack({})
|
||||||
},
|
},
|
||||||
apply() {
|
|
||||||
uni.redirectTo({url: "./authApply"})
|
|
||||||
},
|
|
||||||
gotoInfo() {
|
|
||||||
uni.redirectTo({url: "./authInfo"})
|
|
||||||
},
|
|
||||||
getAuthResult() {
|
getAuthResult() {
|
||||||
this.$instance.post(`/app/appresident/detailForWx`, null, {
|
this.$instance.post(`/app/appresident/detailForWx`, null, {
|
||||||
params: {id: this.user.residentId}
|
params: {id: this.user.residentId}
|
||||||
@@ -106,6 +111,19 @@ export default {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedback {
|
||||||
|
width: 80vw;
|
||||||
|
margin-left: 10vw;
|
||||||
|
min-height: 192px;
|
||||||
|
background: #EFF5FA;
|
||||||
|
border-radius: 0 8px 8px 0;
|
||||||
|
text-align: left;
|
||||||
|
padding: 24px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 26px;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Medium, PingFang SC;
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
@@ -137,58 +155,24 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.authing {
|
.isReview {
|
||||||
margin-top: -272px;
|
margin-top: -272px;
|
||||||
padding: 224px 32px 0;
|
padding: 224px 32px 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: calc(100vh + 272px);
|
height: calc(100vh + 272px);
|
||||||
background-image: url("https://cdn.cunwuyun.cn/shandong10086/authInfoHbg.png");
|
background-color: #fff;
|
||||||
background-size: 100vw;
|
|
||||||
background-repeat: no-repeat;
|
.image {
|
||||||
background-color: #f3f6f9;
|
width: 240px;
|
||||||
|
height: 240px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.result {
|
.result {
|
||||||
font-size: 56px;
|
margin-bottom: 16px;
|
||||||
font-family: PingFangSC-Semibold, PingFang SC;
|
color: #333333;
|
||||||
font-weight: bold;
|
font-size: 40px;
|
||||||
color: #000;
|
font-weight: 700;
|
||||||
line-height: 88px;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.failReason {
|
|
||||||
margin-top: 160px;
|
|
||||||
background: #FFFFFF;
|
|
||||||
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.02);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 0 32px 34px;
|
|
||||||
font-size: 32px;
|
|
||||||
text-align: left;
|
|
||||||
|
|
||||||
.title {
|
|
||||||
height: 112px;
|
|
||||||
box-shadow: inset 0px -1px 0px 0px #DDDDDD;
|
|
||||||
}
|
|
||||||
|
|
||||||
b {
|
|
||||||
font-size: inherit;
|
|
||||||
color: #999;
|
|
||||||
line-height: 112px;
|
|
||||||
|
|
||||||
&.red {
|
|
||||||
color: #f46;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.fixed-bottom {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 16px;
|
|
||||||
width: 100vw;
|
|
||||||
height: 120px;
|
|
||||||
padding: 16px 32px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
background-color: inherit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user