zhouhao
2022-01-06 f1ec2b2fef4ad07bf5fe42fbe44796d050319a81
src/views/main/addBankcard.vue
@@ -3,7 +3,9 @@
  <div class='text-main'>
    <!-- <van-nav-bar  :title="title"  left-arrow  @click-left="onClickLeft" /> -->
    <van-form validate-first ref="credRef">
      <div  class="bes-title"><div> 分销个人</div></div>
      <div class="bes-title">
        <div> 分销个人</div>
      </div>
      <!-- <van-field v-model.trim="dataForm.bankCardNo" label="银行卡号" placeholder="请输入银行卡号" :rules="bankId" name="bankId" clearable>
        <template #button>
          <van-icon name="scan" size="25" @click="imgClick()" />
@@ -54,14 +56,13 @@
  </van-popup>
    <input style="float: left;  display: none;" type="file" id='uploadFile' accept="image/*" v-on:change="readLocalFile()" v-if="ishowFile">
  </div>
  </div>
</template>
<script>
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
//例如:import 《组件名称》 from '《组件路径》';
import { repstr } from '../../../static/agreement5'
import { repstr } from '../../../static/agreement1'
import { repstrw } from '../../../static/agreement2'
export default {
  //import引入的组件需要注入到对象中才能使用
@@ -76,13 +77,14 @@
      dataObj :{},
      showPicker: false,
      agreementext: '',
      agreementextw: '', //代扣委託書
      agreementextw: repstrw(111,222), //代扣委託書
      checked: false,
      codeValue: '',
      isdisabled: false,
      show: false,
      showx: false,
      bankName:'',
      showOverlay: false,
      bizId:this.$route.query.bizId,   //订单编号 
      bizType:this.$route.query.bizType,  //订单类型
      codeText: '获取验证码',
@@ -148,13 +150,13 @@
  //监控data中的数据变化
  watch: {
    dataForm: {
    handler(newValue, oldValue) {
      handler(newValue, oldValue) {
//      if(newValue.bankCardNo==''){
             this.ishowFile = false // 销毁
// }
    },
    deep: true
  }
      },
      deep: true
    }
  },
  //方法集合
  methods: {
@@ -167,7 +169,11 @@
                     this.dataForm  =res.body
                })
            }else if(this.dataInfo.status==1 &&  Number(this.bizType)==0 || this.dataInfo.status==1 && Number(this.bizType)==1 || this.dataInfo.status==4 && Number(this.bizType)==1){
          //获取人脸识别结果页面
                this.$router.push({path:'/main/queryres',query:{...objForm}})    
        } else if(this.dataInfo.status == 2 && Number(this.bizType) == 0){
             // 完成授信个人人脸,待签署信息授权函
               this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}})
            }
          })
    },
@@ -310,7 +316,12 @@
  },
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
    console.log(process.env.NODE_ENV )
    if (!this.$route.query.bizId || !this.$route.query.bizType) return this.$toast({
        message: '请通过有效连接访问!',
        type:'fail',
        duration:0,
        overlay:true,
      })
    this.bankCardNoInit()
  },
  //生命周期 - 挂载完成(可以访问DOM元素)