党员认证

This commit is contained in:
shijingjing
2022-11-14 14:59:36 +08:00
parent f02a10b7a9
commit 045ef0fe5b
3 changed files with 23 additions and 30 deletions

View File

@@ -69,15 +69,9 @@ export default {
idNumber, name idNumber, name
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$store.dispatch('getUserInfo')
if (res.data == 2 || res.data == 0) { if (res.data == 2 || res.data == 0) {
this.$store.dispatch('getUserInfo') uni.redirectTo({url: `./partyAuthApply`})
uni.redirectTo({
url: `./partyAuthApply?status=${res.data}`, success: () => {
if (res.data == 0) {
uni.setStorageSync("authForm", {idNumber, name})
}
}
})
} else { } else {
uni.redirectTo({url: "./partyAuthSuccess"}) uni.redirectTo({url: "./partyAuthSuccess"})
} }

View File

@@ -117,18 +117,13 @@ export default {
...mapState(['user']) ...mapState(['user'])
}, },
onShow(query) { onLoad() {
// this.$dict.load(['partyType']).then(()=> {
// this.form.reportUserId = query.id
// this.form.name = query.name
// this.form.idNumber = query.idNumber
// })
if(this.user.partyId) {
this.getDetail()
}
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '申请党员' title: '申请党员'
}); });
if(this.user.partyId.length > 0) {
this.getDetail()
}
}, },
methods: { methods: {
@@ -144,7 +139,7 @@ export default {
getDetail() { getDetail() {
this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> { this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> {
if(res?.data) { if(res?.data) {
this.form = res.data this.form = {...res.data}
} }
}) })
}, },
@@ -182,10 +177,11 @@ export default {
if (res.code == 0) { if (res.code == 0) {
uni.$emit('update') uni.$emit('update')
this.$toast('提交成功') this.$toast('提交成功')
this.$store.dispatch('getUserInfo')
uni.clearStorageSync('lastSelectedParty');
setTimeout(() => { setTimeout(() => {
this.$store.dispatch('getUserInfo')
uni.redirectTo({url: "./partyAuthSuccess"}) uni.redirectTo({url: "./partyAuthSuccess"})
}, 400) }, 500)
} }
this.$hideLoading() this.$hideLoading()
}) })

View File

@@ -9,7 +9,7 @@
<image src="https://cdn.cunwuyun.cn/pingchang/fail.png"/> <image src="https://cdn.cunwuyun.cn/pingchang/fail.png"/>
<h2 v-text="`党员认证审核未通过!`"/> <h2 v-text="`党员认证审核未通过!`"/>
<div class="feedback"> <div class="feedback">
审核意见{{}} 审核意见{{details.auditOpinion}}
</div> </div>
<div class="btn" @click="rewrite">重新提交</div> <div class="btn" @click="rewrite">重新提交</div>
</template> </template>
@@ -26,7 +26,7 @@ import {mapState} from "vuex";
export default { export default {
data() { data() {
return { return {
info: {} details: {}
} }
}, },
computed: { computed: {
@@ -46,6 +46,9 @@ export default {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '党员认证' title: '党员认证'
}); });
if(this.user.partyStatusForWX == 3) {
this.getDetail()
}
}, },
methods: { methods: {
rewrite() { rewrite() {
@@ -54,15 +57,13 @@ export default {
goBack() { goBack() {
uni.navigateBack({}) uni.navigateBack({})
}, },
getAuthResult() { getDetail() {
this.$instance.post(`/app/appresident/detailForWx`, null, { this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> {
params: {id: this.user.residentId} if(res?.data) {
}).then(res => { this.details = res.data
if (res?.data) {
this.info = res.data
} }
}) })
} },
} }
} }
</script> </script>
@@ -92,8 +93,10 @@ export default {
.feedback { .feedback {
width: 80vw; width: 80vw;
margin-left: 10vw; margin: 0 auto;
min-height: 192px; min-height: 192px;
max-height: 600px;
overflow-y: scroll;
background: #EFF5FA; background: #EFF5FA;
border-radius: 0 8px 8px 0; border-radius: 0 8px 8px 0;
text-align: left; text-align: left;