11
zhaoxiaoqiang
2022-08-04 d063f9f7e8a8150a32b8af619d38929024e2bf24
11
2 files modified
34 ■■■■ changed files
src/components/upload/uploadIdCard.vue 2 ●●● patch | view | raw | blame | history
src/views/user/login.vue 32 ●●●● patch | view | raw | blame | history
src/components/upload/uploadIdCard.vue
@@ -316,7 +316,7 @@
      console.log(this.$refs.androidInputFileCapture.click(),index);
      if (index === 0) {
        // this.$refs.androidInputFileCapture.dispatchEvent(new MouseEvent('click'))
        this.$refs.androidInputFileCapture.touch();
        this.$refs.androidInputFileCapture.ontouch();
      } else {
        // this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent('click'))
        this.$refs.androidInputFileImage.touch();
src/views/user/login.vue
@@ -114,24 +114,24 @@
    // }
  },
  created() {
    this.$api.createInitIdInfo().then(res => {
      this.idCardMation = res.body;
      if (this.idCardMation.usrIdName) {
        this.readOnlyName = true;
      }
      if (this.idCardMation.usrIdCard) {
        this.readOnlyId = true;
      }
      if (this.idCardMation.sex) {
        this.readOnlySex = true;
      }
    });
    // this.$api.createInitIdInfo().then(res => {
    //   this.idCardMation = res.body;
    //   if (this.idCardMation.usrIdName) {
    //     this.readOnlyName = true;
    //   }
    //   if (this.idCardMation.usrIdCard) {
    //     this.readOnlyId = true;
    //   }
    //   if (this.idCardMation.sex) {
    //     this.readOnlySex = true;
    //   }
    // });
  },
  beforeUpdate(){
    let _this = this
    Bus.$on('getIdUserInfo',(msg)=>{
      _this.idCardMation = msg
    })
    // let _this = this
    // Bus.$on('getIdUserInfo',(msg)=>{
    //   _this.idCardMation = msg
    // })
  },
  methods: {
    //设置时间