党员认证

This commit is contained in:
shijingjing
2022-11-10 18:05:13 +08:00
parent 3392f5d160
commit 5053ee1654
3 changed files with 17 additions and 15 deletions

View File

@@ -36,16 +36,17 @@ export default {
};
},
onLoad() {
// let {status} = this.user
// if (status == 2) {
// uni.redirectTo({url: "./partyAuthInfo"})
// } else if (status == 0) {
//停留此页
// } else if() {
// uni.redirectTo({url: "./partyAuthSuccess"})
// } else if() {
// uni.redirectTo({url: "./partyAuthSuccess"})
// }
// 0未认证 1认证中 2已认证 3认证失败
let {partyStatusForWX} = this.user
if (partyStatusForWX == 2) {
uni.redirectTo({url: "./partyAuthInfo"})
} else if (partyStatusForWX == 0) {
// 停留此页
} else if(partyStatusForWX == 1) {
uni.redirectTo({url: "./partyAuthSuccess"})
} else if(partyStatusForWX == 3) {
uni.redirectTo({url: "./partyAuthSuccess"})
}
},
methods: {
toAgreement() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -1,7 +1,8 @@
<template>
<div class="partyAuthSuccess">
<template v-if="isSuccess">
<image src="https://cdn.cunwuyun.cn/img/authSuccess.png"/>
<!-- <image src="https://cdn.cunwuyun.cn/img/authSuccess.png"/> -->
<image src="./img/success.png"/>
<h2 v-text="`认证成功!`"/>
<div class="btn" @click="gotoInfo" v-text="`前往查看`"/>
</template>
@@ -44,11 +45,11 @@ export default {
computed: {
...mapState(['user']),
isSuccess() {
return this.user.status == 2
},
isFail() {
return this.user.status == "0"
return this.user.partyStatusForWX == 0
},
// isFail() {
// return this.user.partyStatusForWX == 0
// },
authFail() {
return this.user.status == -1
},