认证
This commit is contained in:
		@@ -36,23 +36,20 @@ export default {
 | 
			
		||||
    };
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    let {status} = this.user
 | 
			
		||||
    if (status == 2) {
 | 
			
		||||
      uni.redirectTo({url: "./authInfo"})
 | 
			
		||||
    } else if (status == 0) {
 | 
			
		||||
      //停留此页
 | 
			
		||||
    } else {
 | 
			
		||||
      uni.redirectTo({url: "./authSuccess"})
 | 
			
		||||
    }
 | 
			
		||||
    // let {status} = this.user
 | 
			
		||||
    // if (status == 2) {
 | 
			
		||||
    //   uni.redirectTo({url: "./authInfo"})
 | 
			
		||||
    // } else if (status == 0) {
 | 
			
		||||
    //   //停留此页
 | 
			
		||||
    // } else {
 | 
			
		||||
    //   uni.redirectTo({url: "./authSuccess"})
 | 
			
		||||
    // }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    toAgreement() {
 | 
			
		||||
      uni.navigateTo({url: "./agreement"})
 | 
			
		||||
    },
 | 
			
		||||
    confirm() {
 | 
			
		||||
      if(this.isChecked == flase) {
 | 
			
		||||
        return this.$u.toast('请勾选用户服务及隐私协议')
 | 
			
		||||
      }
 | 
			
		||||
      let {name, idNumber} = this
 | 
			
		||||
      if (!name) {
 | 
			
		||||
        return this.$u.toast('请填写姓名')
 | 
			
		||||
@@ -64,6 +61,9 @@ export default {
 | 
			
		||||
      if (!this.$idCardNoUtil.checkIdCardNo(idNumber)) {
 | 
			
		||||
        return this.$u.toast('请输入正确的身份证号码')
 | 
			
		||||
      }
 | 
			
		||||
      if(!this.isChecked) {
 | 
			
		||||
        return this.$u.toast('请勾选用户服务及隐私协议')
 | 
			
		||||
      }
 | 
			
		||||
      this.$instance.post(`/app/appwechatuser/idNumberAttestation`, {
 | 
			
		||||
        idNumber, name
 | 
			
		||||
      }).then(res => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user