党员认证
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								src/project/pingchang/AppPartyAuth/img/success.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/project/pingchang/AppPartyAuth/img/success.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 29 KiB  | 
@@ -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
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user